[Asterisk-code-review] sip to pjsip: Write cos and tos. (asterisk[13])
Joshua Colp
asteriskteam at digium.com
Thu Aug 18 18:55:29 CDT 2016
Joshua Colp has submitted this change and it was merged.
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(-)
Approvals:
George Joseph: Looks good to me, but someone else must approve
Anonymous Coward #1000019: Verified
Joshua Colp: Looks good to me, approved
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/3615
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id245ebadf70ab9776eb280c026288540af3af5c2
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
More information about the asterisk-code-review
mailing list