< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] STUN MAPPED PORT FOR RTP


Wait, are you trying to do RTP using a resip UdpTransport? This isn't going to work; the resip transports are meant for SIP only (and STUN over SIP, which is used solely for things like keeping NAT pinholes open).

Best regards,
Byron Campen


Hi everyone
     My problem with the STUN is getting complicated.We need the
UdpTransport* object to invoke the stunSendTest function.It takes  the
value returned by AddTransport and cast it to this class.Now My question is how can we use the Stun Mapped Port for the RTP data.Because by using
"udp_p=...AddTransport "
or
"udp_p=new resip::UdpTransport(fifo ,port,V4,StunEnabled,data);"
It is binding the specific port and there is no way to delete the transport
if i use AddTransport in this case.So we cannot use that port for RTP
data.I have tried it . My application is crashing.I hope this is the
reason .
So how to get the StunMapped Port for sending Audio/Video data.?
Please reply ASAP.
This is my code
//begin
resip::UdpTransport* udp_p;
Fifo<TransactionMessage> *obj=new Fifo<TransactionMessage>;
Fifo<TransactionMessage>& fifo=*obj;
Data *dataobj=new Data();
Data& data=*dataobj;
udp_p=new resip::UdpTransport(fifo ,port,V4,StunEnabled,data);
//WE MAY ALSO USE AddTransport here
resip::Tuple mapAddress = Util::GetInstance()->GetStunAddres(udp_p);
//end
Thanks
Gurpreet Singh

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel

Attachment: smime.p7s
Description: S/MIME cryptographic signature