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
Versions:Frequency of
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.


For example, my host internal address is, 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
 STUN server:  

Now, with externaddr defined:

Network Settings:
 SIP address remapping:  Disabled, externip is
 Externhost:             <none>
 Externrefresh:          10
 STUN server:  

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 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.