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

[reSIProcate] Stun Mapped port for RTP.


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 Sidhu

=====-----=====-----=====
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