[Home]

Summary:ASTERISK-27890: Sip to PJSIP conversion scripts errors
Reporter:Oscar Santos (osantos@ramsoft.com)Labels:pjsip
Date Opened:2018-06-01 12:54:17Date Closed:2020-01-14 11:26:01.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:pjproject/pjsip
Versions:13.19.1 Frequency of
Occurrence
Related
Issues:
Environment:Sangoma Linux 7, physical hosted server running FreePBX 14.0.3.6Attachments:
Description: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 scrip in my environment completes with the following output:

[root@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, so I am hoping to gain some insight into why the conversion script is not completing properly. Thanks!
Comments:By: Asterisk Team (asteriskteam) 2018-06-01 12:54:18.143-0500

We appreciate the difficulties you are facing, however information request type issues would be better served in a different forum.

The Asterisk community provides support over IRC, mailing lists, and forums as described at http://asterisk.org/community. The Asterisk issue tracker is used specifically to track issues concerning bugs and documentation errors.

If this issue is actually a bug please use the Bug issue type instead.

Please see the Asterisk Issue Guidelines [1] for instruction on the intended use of the Asterisk issue tracker.

Thanks!

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines

By: Asterisk Team (asteriskteam) 2018-06-01 12:54:18.490-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].