Freeswitch port numbers assigned to phones
Hi All I am looking for some insight into FS port numbers. The default internal port number is 5060 and when the IP phones register with FS, one of the phones gets assigned 5060 and the remaining phones get a random port number assigned (I am using this command to see the port numbers: "sofia status profile internal reg"). How is this random port number decided on? How can I tie a phone to a specific port number? Thanks Dion.
Dion, A endpoint registers with freeswitch to let freeswitch know how to reach it. The key piece of the registration record is the contact line Contact: "" <sip:jblogs@1.2.3.4:32768> The user is telling us his name and his ip address(street address) and suite(port number). The endpoint's port number is configured by the endpoint. Hope this helps. On Mon, Nov 10, 2014 at 8:11 AM, Dion Phillips <dion@openlogic.com.au> wrote:
Hi All
I am looking for some insight into FS port numbers.
The default internal port number is 5060 and when the IP phones register with FS, one of the phones gets assigned 5060 and the remaining phones get a random port number assigned (I am using this command to see the port numbers: "sofia status profile internal reg").
How is this random port number decided on? How can I tie a phone to a specific port number?
Thanks Dion.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Dion, The port you are seeing is the port used by the devices (phones/softphones/...) to send SIP messages to your server. I guess your phones are located behind a router on a local network. When the first phone sends SIP messages to your FS, it leaves the router with the port 5060 (it's up to the router to re-use 5060 or chose a random port from the beginning) but then for the other phones it has to map to other external ports, that's why a random one is used. Your router might be able to provide a way to configure NAT mappings manually, you should look that way. Florent 2014-11-10 14:11 GMT+01:00 Dion Phillips <dion@openlogic.com.au>:
Hi All
I am looking for some insight into FS port numbers.
The default internal port number is 5060 and when the IP phones register with FS, one of the phones gets assigned 5060 and the remaining phones get a random port number assigned (I am using this command to see the port numbers: "sofia status profile internal reg").
How is this random port number decided on? How can I tie a phone to a specific port number?
Thanks Dion.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Dion Phillips
-
Florent Krieg
-
Russell Treleaven