[asterisk-commits] sip to pjsip.py: Map legacy useroption parsing. (asterisk[14])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 14 15:03:48 CDT 2016
Anonymous Coward #1000019 has submitted this change and it was merged.
Change subject: sip_to_pjsip.py: Map legacy_useroption_parsing.
......................................................................
sip_to_pjsip.py: Map legacy_useroption_parsing.
Map the sip.conf general section legacy_useroption_parsing to the
new pjsip.conf global ignore_uri_user_options.
ASTERISK-26316
Reported by: Kevin Harwell
Change-Id: I78108a31995db19d41f4e1a07b3324692c5363fc
---
M contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Mark Michelson: Looks good to me, approved
George Joseph: Looks good to me, but someone else must approve
Anonymous Coward #1000019: Verified
diff --git a/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py b/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
index 4da31cb..40e9354 100755
--- a/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
+++ b/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
@@ -1102,6 +1102,12 @@
pass
try:
+ useroption_parsing = sip.get('general', 'legacy_useroption_parsing')[0]
+ set_value('ignore_uri_user_options', useroption_parsing, 'global', pjsip, nmapped, 'global')
+ except LookupError:
+ pass
+
+ try:
timer_t1 = sip.get('general', 'timert1')[0]
set_value('timer_t1', timer_t1, section, pjsip, nmapped, type)
except LookupError:
--
To view, visit https://gerrit.asterisk.org/3853
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I78108a31995db19d41f4e1a07b3324692c5363fc
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
More information about the asterisk-commits
mailing list