sip_to_pjsip: Write media_encryption.
authorAlexander Traud <pabstraud@compuserve.com>
Thu, 18 Aug 2016 13:03:24 +0000 (15:03 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Thu, 18 Aug 2016 13:03:24 +0000 (15:03 +0200)
When using the migration script sip_to_pjsip.py, encryption=yes got missing and
media_encryption=sdes was not written to pjsip.conf, because of a typo.

ASTERISK-22374

Change-Id: I0fc3e55dc512a57603ae0fef41baacccf2a35c05

contrib/scripts/sip_to_pjsip/sip_to_pjsip.py

index 8909216..faa9a56 100755 (executable)
@@ -396,7 +396,7 @@ peer_map = [
     ['trustpid',           set_value('trust_id_inbound')],
     ['sendrpid',           from_sendrpid],       # send_pai, send_rpid
     ['send_diversion',     set_value],
-    ['encrpytion',         set_media_encryption],
+    ['encryption',         set_media_encryption],
     ['avpf',               set_value('use_avpf')],
     ['recordonfeature',    set_record_on_feature],  # automixon
     ['recordofffeature',   set_record_off_feature],  # automixon