]> git.ipfire.org Git - thirdparty/asterisk.git/commit
sip_to_pjsip: Migrate IPv4/IPv6 (Dual Stack) configurations. 58/3658/2
authorAlexander Traud <pabstraud@compuserve.com>
Sat, 20 Aug 2016 14:04:13 +0000 (16:04 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Fri, 26 Aug 2016 11:15:43 +0000 (06:15 -0500)
commitc3ac1651ddaa740db1ce658c82735fd06cf65f64
tree98e4faf1b21efec9dfbc5f16372e0154b524ac07
parent5a488431857147dc8b4d8c0f9b831f629afc2b23
sip_to_pjsip: Migrate IPv4/IPv6 (Dual Stack) configurations.

When using the migration script sip_to_pjsip.py, and your sip.conf is
configured with bindaddr=::, two transports are written to pjsip.conf, one for
0.0.0.0 (IPv4) and one for [::] (IPv6). That way, PJProject listens on the IPv4
and IPv6 wildcards; a IPv4/IPv6 Dual Stack configuration on a single interface
like in chan_sip.

Furthermore, the script internal functions "build_host" and "split_hostport"
did not parse Literal IPv6 addresses as expected (like [::1]:5060). This change
makes sure, even such addresses are parsed correctly.

ASTERISK-26309

Change-Id: Ia4799a0f80fc30c0550fc373efc207c3330aeb48
contrib/scripts/sip_to_pjsip/sip_to_pjsip.py