[asterisk-bugs] [JIRA] (ASTERISK-29142) sip_to_pjsip.py: doesn't read globbed includes

Michael Newton (JIRA) noreply at issues.asterisk.org
Thu Oct 29 12:27:15 CDT 2020


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

Michael Newton commented on ASTERISK-29142:
-------------------------------------------

Afraid not:
{noformat}
Please, report any issue at:
    https://issues.asterisk.org/
Reading sip.conf
Converting to PJSIP...
Traceback (most recent call last):
  File "/root/sip2pjsip/sip_to_pjsip.py", line 1322, in <module>
    pjsip, non_mappings = convert(sip, pjsip_filename, dict(), False)
  File "/root/sip2pjsip/sip_to_pjsip.py", line 1243, in convert
    map_peer(sip, section, pjsip, nmapped)
  File "/root/sip2pjsip/sip_to_pjsip.py", line 1153, in map_peer
    i[1](i[0], sip.get(section, i[0])[0], section, pjsip, nmapped)
  File "/root/sip2pjsip/astconfigparser.py", line 414, in get
    return self.find_value(self.section(section), key)
  File "/root/sip2pjsip/astconfigparser.py", line 310, in find_value
    sections.sort(reverse=True)
TypeError: '<' not supported between instances of 'Section' and 'Section'
{noformat}

> sip_to_pjsip.py: doesn't read globbed includes
> ----------------------------------------------
>
>                 Key: ASTERISK-29142
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29142
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Contrib/General
>    Affects Versions: 16.14.0
>            Reporter: Michael Newton
>            Assignee: Michael Newton
>            Severity: Minor
>              Labels: patch
>         Attachments: 0001-astconfigparser.py-Handle-wildcards-in-include-s.patch
>
>
> My `sip.conf` includes `#include pbx/*.sip.conf` which is not processed properly. Output looks like this:
> {noformat}
> Please, report any issue at:
>     https://issues.asterisk.org/
> Reading sip.conf
> Could not open file pbx/*.sip.conf for reading
> Converting to PJSIP...
> Writing pjsip.conf
> Could not open file pjsip_pbx/*.sip.conf for writing
> {noformat}
> Globs should be interpreted correctly (and it should not error out when trying to create a directory.)



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



More information about the asterisk-bugs mailing list