contrib/script/sip_to_pjsip: add support for realtime

Add a new script that can read from legacy realtime peers & generate
an sql file for populating pjsip endpoints, identify, and aor records.

ASTERISK-27348 #close

Change-Id: Idd3d7968a3c9c3ee7936d21acbdaf001b429bf65
This commit is contained in:
Torrey Searle
2017-10-16 14:36:50 +02:00
committed by Matthew Fredrickson
parent 4568894d2a
commit 976afd26ab
3 changed files with 151 additions and 1 deletions

View File

@@ -1203,7 +1203,7 @@ def convert(sip, filename, non_mappings, include):
map specific sections from sip.conf into it.
Returns the new pjsip.conf object once completed
"""
pjsip = astconfigparser.MultiOrderedConfigParser()
pjsip = sip.__class__()
non_mappings[filename] = astdicts.MultiOrderedDict()
nmapped = non_mapped(non_mappings[filename])
if not include: