"""
key = 'dtmf_mode'
# available pjsip.conf values: rfc4733, inband, info, none
- if val == 'inband' or val == 'info':
+ if val == 'inband' or val == 'info' or val == 'auto':
set_value(key, val, section, pjsip, nmapped)
elif val == 'rfc2833':
set_value(key, 'rfc4733', section, pjsip, nmapped)
['tonezone', set_value('tone_zone')],
['language', set_value],
['allowsubscribe', set_value('allow_subscribe')],
+ ['subscribecontext', set_value('subscribe_context')],
['subminexpiry', set_value('sub_min_expiry')],
['rtp_engine', set_value],
['mailbox', from_mailbox],
def set_tls_cipher(val, pjsip, section, nmapped):
"""Sets cipher based on sip.conf tlscipher or sslcipher"""
+ if val == 'ALL':
+ return
+ print('chan_sip ciphers do not match 1:1 with PJSIP ciphers.' \
+ ' You should manually review and adjust this.', file=sys.stderr)
+
set_value('cipher', val, section, pjsip, nmapped, 'transport')