[asterisk-bugs] [JIRA] (ASTERISK-28136) Allow the sip_to_pjsip script to be used in a pipe
Friendly Automation (JIRA)
noreply at issues.asterisk.org
Mon Nov 5 05:00:47 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-28136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=245359#comment-245359 ]
Friendly Automation commented on ASTERISK-28136:
------------------------------------------------
Change 10546 merged by Joshua Colp:
contrib/sip_to_pjsip: add a --quiet option to avoid prints
[https://gerrit.asterisk.org/10546|https://gerrit.asterisk.org/10546]
> Allow the sip_to_pjsip script to be used in a pipe
> --------------------------------------------------
>
> Key: ASTERISK-28136
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28136
> Project: Asterisk
> Issue Type: Improvement
> Security Level: None
> Components: Contrib/General
> Affects Versions: 16.0.0
> Reporter: Pascal Cadotte Michaud
> Assignee: Pascal Cadotte Michaud
> Severity: Minor
> Labels: pjsip
>
> We use a binary to generate our sip.conf our sip.conf file looks like this
> #exec /usr/bin/generate_config.py asterisk/sip.conf
> I'm starting to work on the pjsip migration to get started quickly I would like to be able to pipe the output of generate_config.py to sip_to_pjsip.py
> #exec /usr/bin/generate_config.py asterisk/sip.conf | /usr/bin/sip_to_pjsip.py /dev/stdin /dev/stdout
> The only problem I got with that solution is that there are some prints during the execution of the script.
> I have a new version that introduces a -q or --quiet option that remove the prints making the output a valid configuration file.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list