[Home]

Summary:ASTERISK-17122: sip.conf example files contains wrong example
Reporter:Nir Simionovich (GreenfieldTech - Israel) (greenfieldtech)Labels:
Date Opened:2010-12-16 14:52:56.000-0600Date Closed:2011-12-13 12:44:00.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:According to the sip.conf example file, contained in the asterisk16 RPM packages the old "externip" directive had been replaced by the "externaddr" directive. However, this appears to be wrong, as if you utilize the "externaddr" directive instead of "externip" RTP doesn't pass correctly.


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

For example, my host internal address is 172.16.2.62, while my external IP address is 62.128.XXX.XXX. Now, here is the config when using externip (grabbed via 'sip show settings'):

Network Settings:
---------------------------
 SIP address remapping:  Enabled using externip
 Externhost:             <none>
 Externip:               62.128.XXX.XXX:5060
 Externrefresh:          10
 Localnet:               172.16.2.0/255.255.255.0
 STUN server:            0.0.0.0:0

Now, with externaddr defined:

Network Settings:
---------------------------
 SIP address remapping:  Disabled, externip is 0.0.0.0
 Externhost:             <none>
 Externip:               0.0.0.0:0
 Externrefresh:          10
 Localnet:               172.16.2.0/255.255.255.0
 STUN server:            0.0.0.0:0

Here's the snip from the configuration example:

;   a. "externaddr = hostname[:port]" specifies a static address[:port] to
;      be used in SIP and SDP messages.
;      The hostname is looked up only once, when [re]loading sip.conf .
;      If a port number is not present, use the port specified in the "udpbindaddr"
;      (which is not guaranteed to work correctly, because a NAT box might remap the
;      port number as well as the address).
;      This approach can be useful if you have a NAT device where you can
;      configure the mapping statically. Examples:
Comments:By: Leif Madsen (lmadsen) 2010-12-20 08:38:46.000-0600

So you're saying if the only thing you change is:

externip --> externaddr

Then you get that problem?

Can you show the configuration you're using in sip.conf?

By: Jason Parker (jparker) 2010-12-28 14:02:08.000-0600

The 1.6.2 SIP sample config does not mention externaddr.  Did you perhaps use the config from svn trunk (where it is valid and mentioned)?

By: Jason Parker (jparker) 2010-12-28 14:02:35.000-0600

It's also possible, of course, that this was already fixed.

By: Nir Simionovich (GreenfieldTech - Israel) (greenfieldtech) 2010-12-29 02:14:43.000-0600

I installed 1.6.2.14 from the repository, and this is what it provided - maybe it was already fixed - could be.

By: Matt Jordan (mjordan) 2011-12-13 12:44:00.898-0600

This appears to be fixed in 1.8.