mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
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
This commit is contained in:
@@ -534,14 +534,14 @@ def set_transport_common(section, pjsip, nmapped):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
set_value('tos', sip.get('general', 'sip_tos')[0], 'general', pjsip,
|
set_value('tos', sip.get('general', 'tos_sip')[0], section, pjsip,
|
||||||
nmapped, 'transport', section)
|
nmapped, 'transport')
|
||||||
except LookupError:
|
except LookupError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
set_value('cos', sip.get('general', 'sip_cos')[0], 'general', pjsip,
|
set_value('cos', sip.get('general', 'cos_sip')[0], section, pjsip,
|
||||||
nmapped, 'transport', section)
|
nmapped, 'transport')
|
||||||
except LookupError:
|
except LookupError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user