[asterisk-bugs] [JIRA] (ASTERISK-28136) Allow the sip_to_pjsip script to be used in a pipe
Pascal Cadotte Michaud (JIRA)
noreply at issues.asterisk.org
Fri Oct 26 10:50:47 CDT 2018
Pascal Cadotte Michaud created ASTERISK-28136:
-------------------------------------------------
Summary: 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
Severity: Minor
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