[asterisk-bugs] [JIRA] (ASTERISK-24474) sip_to_pjsip.py lacks documentation and does not function
Frederic Steinfels (JIRA)
noreply at issues.asterisk.org
Thu Oct 15 05:41:32 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-24474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=227881#comment-227881 ]
Frederic Steinfels edited comment on ASTERISK-24474 at 10/15/15 5:39 AM:
-------------------------------------------------------------------------
How can this script lack the functionality to strip the comments and just fail miserably without any warning? Anyway, I used this to preprocess sip.conf into an acceptable form (please remove the newlines, its all on in one line):
cat sip.conf | awk -F\; '$1!="" { print $1 ;} ' > sip.conf2
was (Author: fredo):
How can this script lack the functionality to strip the comments and just fail miserable without any warning? Anyway, I used this to preprocess sip.conf into an acceptable form (please remove the newlines, its all on in one line):
cat sip.conf | awk -F\; '$1!="" { print $1 ;} ' > sip.conf2
> 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
> Assignee: Scott Griepentrog
> Severity: Trivial
> Target Release: 13.2.0
>
>
> 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