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

[reSIProcate] Stun info in via/contact headers


Hello,
 
here is some more info on the actual problem i am having.
Should via also be populated with ip/port on the external or should it be internal address of UA ?
 
my assumption here is that if i make message from UA behind a NAT look alike msg from a UA on the public, proxy would not treat this as a natted client and try to use relay etc. for media.
 
As mentioned in discussion on the list here is what i am doing
 
1. using addtransport( udp, 5060)
2. setting contact using overrideaddressandport() and ip:port is the external ip:port returned by stun.
3. setting via with the outside address. if i set via port (via.sentPort()) to external port also, client does not register with the proxy.
 
Still, my proxy is treating the UA as behind the NAT. Can someone please let me know if this is all reqd from the client UA as far as STUN support is concerned. if i narrow it down to UA vs proxy issue, that would be a great help..
 
THanks
Amit

 
On 10/1/05, Amit Rastogi <akrastogi@xxxxxxxxx> wrote:
Hello,
 
I am using stun to get the address/port on the nat and set the overrideaddressandport with it. is that all need to be done? I am able to register with the proxy but when i establish a session with other endpoint, only the initiator can end the session.
 
is there anything else i would need to do for STUN support ?
 
thanks,
AR