[asterisk-bugs] [JIRA] (ASTERISK-29499) sip_to_pjsql.py: Fails to write SQL file

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu Jul 15 12:01:33 CDT 2021


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255628#comment-255628 ] 

Asterisk Team commented on ASTERISK-29499:
------------------------------------------

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

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

> sip_to_pjsql.py: Fails to write SQL file
> ----------------------------------------
>
>                 Key: ASTERISK-29499
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29499
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Contrib/General
>    Affects Versions: 18.3.0
>         Environment: Ubuntu 18.04.5 LTS - VMWare esxi 6.7
>            Reporter: Daniel
>            Assignee: Daniel
>         Attachments: pjsip.conf, pjsip.sql, sip.conf, sqlconfigparser_moredebug.py
>
>
> when attempting to upgrade to pjsip via sip_to_pjsql.py 
> I get the below error
> Please, report any issue at:
>     https://issues.asterisk.org/
> Reading sip.conf
> Converting to PJSIP realtime sql...
> Writing pjsip.sql
> Traceback (most recent call last):
>   File "/tmp/pjsipnew/sip_to_pjsql.py", line 79, in <module>
>     write_pjsip(pjsip_filename, pjsip, non_mappings)
>   File "/tmp/pjsipnew/sip_to_pjsql.py", line 17, in write_pjsip
>     pjsip.write(fp)
>   File "/tmp/pjsipnew/sqlconfigparser.py", line 72, in write
>     print("Could not open file " + config_file + " for writing")
> TypeError: cannot concatenate 'str' and 'file' objects



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



More information about the asterisk-bugs mailing list