]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Stop sending IPv6 link-local scope-ids in SIP messages
authorTerry Wilson <twilson@digium.com>
Wed, 22 Jun 2011 18:52:04 +0000 (18:52 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 22 Jun 2011 18:52:04 +0000 (18:52 +0000)
commit0ada0bfea3f5fd338a96ff00547ffb446f2f06b7
tree14fb286de6c1321df6dfa0937d4de672e8f5f3df
parent9de3aa9c602ae9572d2cf81aa42ec282cad967ac
Stop sending IPv6 link-local scope-ids in SIP messages

The idea behind the patch listed below was used, but in a more targeted manner.
There are now address stringification functions for addresses that are meant to
be sent to a remote party. Link-local scope-ids only make sense on the machine
from which they originate and so are stripped in the new functions.

There is also a host sanitization function added to chan_sip which is used
for when peer and dialog tohost fields or sip_registry hostnames are used to
craft a SIP message.

Also added are some basic unit tests for netsock2 address parsing.

(closes issue ASTERISK-17711)
Reported by: ch_djalel
Patches:
      asterisk-1.8.3.2-ipv6_ll_scope.patch uploaded by ch_djalel (license 1251)

Review: https://reviewboard.asterisk.org/r/1278/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@324484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
include/asterisk/netsock2.h
main/netsock2.c
tests/test_netsock2.c [new file with mode: 0644]