[Asterisk-code-review] sip to pjsip: Write cos and tos. (asterisk[14])
Alexander Traud
asteriskteam at digium.com
Thu Aug 18 08:23:42 CDT 2016
Alexander Traud has uploaded a new change for review.
https://gerrit.asterisk.org/3616
Change subject: sip_to_pjsip: Write cos and tos.
......................................................................
sip_to_pjsip: Write cos and tos.
When using the migration script sip_to_pjsip.py, both tos_sip and cos_sip got
missed, because of a typo. Therefore, cos and tos were not written to
pjsip.conf. Furthermore, that revealed a misuse of an internal function, caused
by a copy-and-paste error.
ASTERISK-22374
Change-Id: Id245ebadf70ab9776eb280c026288540af3af5c2
---
M contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/16/3616/1
diff --git a/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py b/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
index 8909216..72fd6bb 100755
--- a/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
+++ b/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
@@ -534,14 +534,14 @@
pass
try:
- set_value('tos', sip.get('general', 'sip_tos')[0], 'general', pjsip,
- nmapped, 'transport', section)
+ set_value('tos', sip.get('general', 'tos_sip')[0], section, pjsip,
+ nmapped, 'transport')
except LookupError:
pass
try:
- set_value('cos', sip.get('general', 'sip_cos')[0], 'general', pjsip,
- nmapped, 'transport', section)
+ set_value('cos', sip.get('general', 'cos_sip')[0], section, pjsip,
+ nmapped, 'transport')
except LookupError:
pass
--
To view, visit https://gerrit.asterisk.org/3616
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id245ebadf70ab9776eb280c026288540af3af5c2
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
More information about the asterisk-code-review
mailing list