]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Turn off warning message when bind address is set to any.
authorMichael L. Young <elgueromexicano@gmail.com>
Tue, 17 Apr 2012 14:53:04 +0000 (14:53 +0000)
committerMichael L. Young <elgueromexicano@gmail.com>
Tue, 17 Apr 2012 14:53:04 +0000 (14:53 +0000)
commit50f4d48c0c17b64e4bd4b66ab12d56180b76e3d1
tree9d2030e3d763c62842f6f9b7faa93bd9d19f4468
parent3c6ba6fa5a6942a9894ec169e6fd00523aa9684d
Turn off warning message when bind address is set to any.

When a bind address is set to an ANY address (udpbindport=::), a warning message
is displayed stating that "Address remapping activated in sip.conf but we're
using IPv6, which doesn't need it.  Please remove 'localnet' and/or 'externaddr'
settings."  But if one is running dual stack, we shouldn't be told to turn those
settings off.

This patch checks if the bind address is an ANY address or not.  The warning
message will now only be displayed if the bind address is NOT an ANY address and
IPv6 is being used.

Also, updated the copyright year.

(closes issue ASTERISK-19456)
Reported by: Michael L. Young
Tested by: Michael L. Young
Patches:
  chan_sip_ipv6_message.diff uploaded by Michael L. Young (license 5026)
........

Merged revisions 362253 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@362264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c