[asterisk-bugs] [JIRA] (ASTERISK-24474) sip_to_pjsip.py lacks documentation and does not function

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed Nov 5 13:40:28 CST 2014


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

Rusty Newton commented on ASTERISK-24474:
-----------------------------------------

I can confirm. Also, yeah there isn't really other documentation than the usage with -h.

{noformat}
Usage: sip_to_pjsip.py [options] [input-file [output-file]]

input-file defaults to 'sip.conf'
output-file defaults to 'pjsip.conf'

Options:
  -h, --help            show this help message and exit
  -p PREFIX, --prefix=PREFIX
                        output prefix for include files
{noformat}

We should add some examples of usage and results on the wiki. Also perhaps a short description of what the tool does in the -h help.

> sip_to_pjsip.py lacks documentation and does not function
> ---------------------------------------------------------
>
>                 Key: ASTERISK-24474
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24474
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Contrib/General
>    Affects Versions: 13.0.0-beta3
>            Reporter: John Kiniston
>            Severity: Trivial
>
> This is actually an issue against 13.0.0 however it is not listed in the Version dropdown.
> I assume I run sip_to_pjsip.py from /etc/asterisk with the input and output file as arguments as there are no instructions for this tool.
> The tool also appears to not work, Despite what the below error states I do have a udpbindaddr set to 0.0.0.0  in my configuration.
> {noformat}
> root at kiniston01:/etc/asterisk# /usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py sip.conf pjsip.conf
> Traceback (most recent call last):
>   File "/usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py", line 1158, in <module>
>     pjsip, non_mappings = convert(sip, pjsip_filename, dict(), False)
>   File "/usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py", line 1090, in convert
>     map_transports(sip, pjsip, nmapped)
>   File "/usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py", line 817, in map_transports
>     create_udp(sip, pjsip, nmapped)
>   File "/usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py", line 590, in create_udp
>     bind = sip.multi_get('general', ['udpbindaddr', 'bindaddr'])[0]
>   File "/usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/astconfigparser.py", line 407, in multi_get
>     (key_list, section))
> LookupError: keys ['udpbindaddr', 'bindaddr'] not found for section 'general'
> {noformat}
> I have tried it with the sip.conf.sample file and receive the same error:
> {noformat}
> www:/tmp# /usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py sip.conf pjsip.conf
> Traceback (most recent call last):
>   File "/usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py", line 1158, in <module>
>     pjsip, non_mappings = convert(sip, pjsip_filename, dict(), False)
>   File "/usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py", line 1090, in convert
>     map_transports(sip, pjsip, nmapped)
>   File "/usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py", line 817, in map_transports
>     create_udp(sip, pjsip, nmapped)
>   File "/usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/sip_to_pjsip.py", line 590, in create_udp
>     bind = sip.multi_get('general', ['udpbindaddr', 'bindaddr'])[0]
>   File "/usr/src/asterisk-13.0.0/contrib/scripts/sip_to_pjsip/astconfigparser.py", line 407, in multi_get
>     (key_list, section))
> LookupError: keys ['udpbindaddr', 'bindaddr'] not found for section 'general'
> {noformat}



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



More information about the asterisk-bugs mailing list