Fix port setting of external address in SIP.
authorMark Michelson <mmichelson@digium.com>
Mon, 19 Jul 2010 17:16:23 +0000 (17:16 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 19 Jul 2010 17:16:23 +0000 (17:16 +0000)
commitcb5892bb67d334fc53bcfc54471ca781097bade4
tree402bfd239387f0a25130c090f689842fd5d50c1a
parentd6cc7dd982e5e74be7ff0871015da00935703d39
Fix port setting of external address in SIP.

There are two changes here:

1. Since the externip setting can now have a port attached
to it, calling it "externip" is misleading. The option is now
documented and parsed as "externaddr." This also extends to the
"matchexterniplocally" setting. It is now documented and parsed
as "matchexternaddrlocally." The old names for the options may
still be used, but they are no longer used in the sip.conf.sample
file.

2. If no port is set for the externaddr, and UDP is the transport
to be used, then we will set the port of the externaddr to that of
the udpbindaddr. This was how things worked prior to the IPv6 merge,
so this is a regression fix.

(closes issue #17665)
Reported by: mmichelson
Patches:
      17665.diff#2 uploaded by pprindeville (license 347)
Tested by: pprindeville

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@277873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
channels/sip/include/sip.h
configs/sip.conf.sample