sip_to_pjsip: Write local_net, contact_acl, contact_deny, and contact_permit.
authorAlexander Traud <pabstraud@compuserve.com>
Thu, 18 Aug 2016 13:13:03 +0000 (15:13 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Thu, 18 Aug 2016 13:13:03 +0000 (15:13 +0200)
commit9907e2b1c115934d254fc79a94a54de7e3d37e0d
tree9bbb7f4878c46a2d2d55f51cd1e3c4e5caf4959a
parentb35779c6c68892e02df32f362f4e87b571b4797c
sip_to_pjsip: Write local_net, contact_acl, contact_deny, and contact_permit.

When using the migration script sip_to_pjsip.py, those keys got missing. These
keys might appear several times and the function "merge_value" tried to collect
those. However, because these keys have different names in sip.conf and
pjsip.conf, "merge_value" was not able to find the new key name in sip.conf.
This change lets "merge_value" search with the old key name in sip.conf and
write with the new key name in pjsip.conf.

ASTERISK-22374

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