[Freeswitch-users] Issue with changing phone SIP port

Raymond Chandler intralanman at freeswitch.org
Tue Jun 4 15:43:40 MSD 2013


There's am entire chapter of the FreeSWITCH 1.2 book dedicated to
NAT/PAT... it might be worth the investment for you to pick up a copy. The
e version is pretty affordable and gets delivered very fast ;-)

-Ray
On Jun 3, 2013 4:40 PM, "Oleg Stolyar" <ostolyar at netflix.com> wrote:

> Hi guys,
>
> I ran into the following problem recently:
>
> Using a softphone from a computer behind a NAT I register it with
> FreeSWITCH.
> It registers with a certain port in the Contact header.  FreeSWITCH stores
> this port in the user's registration info and uses it from then on to send
> messages to the phone.
>
> However, for some reason FreeSWITCH initially sends back an "Unauthorized"
> response.  After that some phones seem to send REGISTER again but with a*different port
> *.
> This only happen if the phone is behind a NAT.  If FreeSWITCH is on the
> same network as the phone, the phone keeps the same port.
>
> FreeSWITCH ignores that and keeps trying to contact the phone on the old
> port and of course fails.
>
> Only some phones seem to change their port after registration.  They
> include 3CXPhone, X-Lite.
> Phones that don't do this are MicroSIP and Mizu.
>
> I have a wireshark capture file of the session from the softphone machine
> if anyone would like, I'll be happy to email it or publish it.
>
> So, I have three questions:
> 1. Why does FreeSWITCH initially send "Unauthorized" reply?
> 2. Does anyone know why some phones change their port during registration
> from behind a NAT?
> 3. Should I file a Jira ticket to have FreeSWITCH change UA's registered
> contact info when the UA sends a message with a different Contact header?
>
>
> Thank you
> *Oleg*
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130604/2bc35223/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list