sip_to_pjsip: Add defaultexpiry, maxexpiry, and minexpiry.
authorAlexander Traud <pabstraud@compuserve.com>
Thu, 18 Aug 2016 13:04:53 +0000 (15:04 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Thu, 18 Aug 2016 13:04:53 +0000 (15:04 +0200)
When using the migration script sip_to_pjsip.py, defaultexpiry, maxexpiry, and
minexpiry were not migrated to pjsip.conf.

ASTERISK-22374

Change-Id: I007fbf543dcadc96fc3ed71c54da502bcb209b7b

contrib/scripts/sip_to_pjsip/sip_to_pjsip.py

index 8909216..a313196 100755 (executable)
@@ -440,6 +440,9 @@ peer_map = [
 
     ['host',               from_host],           # contact, max_contacts
     ['qualifyfreq',        set_value('qualify_frequency', type='aor')],
+    ['maxexpiry',          set_value('maximum_expiration', type='aor')],
+    ['minexpiry',          set_value('minimum_expiration', type='aor')],
+    ['defaultexpiry',      set_value('default_expiration', type='aor')],
 
 ############################# maps to auth#####################################
 #        type = auth