aboutsummaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-19 17:16:23 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-19 17:16:23 +0000
commitaf242a2d4fece9ad54ee11517b96a42c9914c5aa (patch)
tree402bfd239387f0a25130c090f689842fd5d50c1a /configs
parent5eecddee6de892c2131c98a2b73c590e088440eb (diff)
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: http://svn.digium.com/svn/asterisk/trunk@277873 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs')
-rw-r--r--configs/sip.conf.sample20
1 files changed, 10 insertions, 10 deletions
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample
index 1ec5ae331..6014163ee 100644
--- a/configs/sip.conf.sample
+++ b/configs/sip.conf.sample
@@ -344,7 +344,7 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
;outboundproxy=tls://proxy.provider.domain ; same as '=proxy.provider.domain' except we try to connect with tls
; ; (could also be tcp,udp) - defining transports on the proxy line only
; ; applies for the global proxy, otherwise use the transport= option
-;matchexterniplocally = yes ; Only substitute the externip or externhost setting if it matches
+;matchexternaddrlocally = yes ; Only substitute the externaddr or externhost setting if it matches
; your localnet setting. Unless you have some sort of strange network
; setup you will not need to enable this.
@@ -671,7 +671,7 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; to a host outside the NAT. This information is derived by one of the
; following (mutually exclusive) config file parameters:
;
-; a. "externip = hostname[:port]" specifies a static address[:port] to
+; 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"
@@ -680,15 +680,15 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; This approach can be useful if you have a NAT device where you can
; configure the mapping statically. Examples:
;
-; externip = 12.34.56.78 ; use this address.
-; externip = 12.34.56.78:9900 ; use this address and port.
-; externip = mynat.my.org:12600 ; Public address of my nat box.
+; externaddr = 12.34.56.78 ; use this address.
+; externaddr = 12.34.56.78:9900 ; use this address and port.
+; externaddr = mynat.my.org:12600 ; Public address of my nat box.
; externtcpport = 9900 ; The externally mapped tcp port, when Asterisk is behind a static NAT or PAT.
-; ; externtcpport will default to the externip or externhost port if either one is set.
+; ; externtcpport will default to the externaddr or externhost port if either one is set.
; externtlsport = 12600 ; The externally mapped tls port, when Asterisk is behind a static NAT or PAT.
; ; externtlsport port will default to the RFC designated port of 5061.
;
-; b. "externhost = hostname[:port]" is similar to "externip" except
+; b. "externhost = hostname[:port]" is similar to "externaddr" except
; that the hostname is looked up every "externrefresh" seconds
; (default 10s). This can be useful when your NAT device lets you choose
; the port mapping, but the IP address is dynamic.
@@ -708,16 +708,16 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; externrefresh = 15
;
; Note that at the moment all these mechanism work only for the SIP socket.
-; The IP address discovered with externip/externhost/STUN is reused for
+; The IP address discovered with externaddr/externhost/STUN is reused for
; media sessions as well, but the port numbers are not remapped so you
; may still experience problems.
;
; NOTE 1: in some cases, NAT boxes will use different port numbers in
-; the internal<->external mapping. In these cases, the "externip" and
+; the internal<->external mapping. In these cases, the "externaddr" and
; "externhost" might not help you configure addresses properly, and you
; really need to use STUN.
;
-; NOTE 2: when using "externip" or "externhost", the address part is
+; NOTE 2: when using "externaddr" or "externhost", the address part is
; also used as the external address for media sessions. Even if you
; use "stunaddr", STUN queries will be sent only from the SIP port,
; not from media sockets. Thus, the port information in the SDP may be wrong!