[Asterisk-code-review] sip to pjsip.py: Map legacy useroption parsing. (asterisk[14])

Richard Mudgett asteriskteam at digium.com
Thu Sep 8 19:23:44 CDT 2016


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/3853

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(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/53/3853/1

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: newchange
Gerrit-Change-Id: I78108a31995db19d41f4e1a07b3324692c5363fc
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list