[Home]

Summary:ASTERISK-15333: Asterisk sends port 0 in the Register message to Proxy if listen port is dynamic
Reporter:Gopalakrishnan Subramani (gopalks19)Labels:
Date Opened:2009-12-18 03:52:29.000-0600Date Closed:2011-06-07 14:08:21
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Addons/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When Asterisk is made as an UA and the listen port is mentioned as dynamic,
then the UDP port mentioned in the Contact field of REGISTER is 0 instead of the actual port bound.

OS: CentOS 5.3
Kernel - 2.6.18-164.6.1.el5

****** ADDITIONAL INFORMATION ******

I have tried configuring Asterisk as an SIP UA with listening port as Default with the following configuration in sip.conf file:


udpbindaddr=<IP Address>:dynamic
register => 8888:12345@<IP Address>/8888

I see that Asterisk is sending REGISTER message to the proxy but, the contact field in the message is having port number 0 as given below:

Contact: <sip:1000@192.168.1.92:0>
Comments:By: Leif Madsen (lmadsen) 2009-12-18 07:37:25.000-0600

I'm looking at the sip.conf.sample file for 1.6.1, and it says you can specify a port, but I don't see the 'dynamic' option.

By: Leif Madsen (lmadsen) 2009-12-18 07:42:01.000-0600

I've just gone through the chan_sip.c file, and I see no reference to setting 'dynamic' as an option to udpbindaddr -- this is either a feature request, or a feature that exists in a later version. Issue closed.