[asterisk-bugs] [JIRA] (ASTERISK-27891) Sip to PJSIP conversion scripts errors

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Fri Jun 1 14:04:54 CDT 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Mudgett closed ASTERISK-27891.
--------------------------------------

    Resolution: Won't Fix

Converting a FreePBX configuration using the sip_to_pjsip.py script is outside the scope of the script.  Even if the script worked in converting the configuration you wouldn't be able to plug that config back into FreePBX.  FreePBX generates the configuration files from its own database and wouldn't know how to read a user supplied one.  You should see if FreePBX has a way to convert their setup to using chan_pjsip from chan_sip.

> Sip to PJSIP conversion scripts errors
> --------------------------------------
>
>                 Key: ASTERISK-27891
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27891
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip
>    Affects Versions: 13.19.1
>         Environment: Sangoma Linux 7, physical hosted server running FreePBX 14.0.3.6
>            Reporter: Oscar Santos
>              Labels: pjsip
>
> My company is attempting to migrate our FreePBX phone system to a newer instance running the latest firmware version and with that migration, we are looking into converting our use of chan_sip to chan_pjsip. Came across your wiki post showing how to migrate (https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip) and the fact that I need to run the sip_to_pjsip.py conversion script. 
> Running the script in my environment completes with the following output:
> [root at XXXXX asterisk]# /var/www/html/admin/modules/core/sip_to_pjsip/sip_to_pjsip.py
> Please, report any issue at:
>     https://issues.asterisk.org/
> Reading sip.conf
> Traceback (most recent call last):
>   File "/var/www/html/admin/modules/core/sip_to_pjsip/sip_to_pjsip.py", line 1213, in <module>
>     sip.read(sip_filename)
>   File "/var/www/html/admin/modules/core/sip_to_pjsip/astconfigparser.py", line 446, in read
>     self._read(config_file, sect)
>   File "/var/www/html/admin/modules/core/sip_to_pjsip/astconfigparser.py", line 462, in _read
>     parser.read(include_name, sect)
>   File "/var/www/html/admin/modules/core/sip_to_pjsip/astconfigparser.py", line 446, in read
>     self._read(config_file, sect)
>   File "/var/www/html/admin/modules/core/sip_to_pjsip/astconfigparser.py", line 473, in _read
>     key, val = try_option(line)
>   File "/var/www/html/admin/modules/core/sip_to_pjsip/astconfigparser.py", line 250, in try_option
>     return data[0].rstrip(), data[1].lstrip()
> IndexError: list index out of range
> The output also included steps to log a request here, as I have a very vanilla FreePBX instance and I should not be running into this issue. Thanks.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list