]> git.ipfire.org Git - thirdparty/asterisk.git/commit
contrib/sip_to_pjsip: add a --quiet option to avoid prints
authorPascal Cadotte Michaud <pcm@wazo.io>
Fri, 26 Oct 2018 15:53:40 +0000 (11:53 -0400)
committerPascal Cadotte Michaud <pcm@wazo.io>
Thu, 1 Nov 2018 12:38:21 +0000 (08:38 -0400)
commit0a4e8a43e391376db3ccfec2b6565a8611d3e2d5
treeb1caf013ac78e8aa33e851280605f20b44fd1819
parent5605928db0ab428f67fc36466ecc15aba234a0b4
contrib/sip_to_pjsip: add a --quiet option to avoid prints

Using the --quiet or -q option in conjonction with /dev/stdout as the output
file allow the output to be used as a valid configuration.

Given a script that generates a valid sip.conf I can pipe the output of that
script into `sip_to_pjsip.py -q /dev/stdin /dev/stdout`. This allow me to use
that piped command in my pjsip.conf using the `exec` command.

ASTERISK-28136

Change-Id: I7b0e2e90e2549f3f8e01dc96701f111b5874c88d
contrib/scripts/sip_to_pjsip/sip_to_pjsip.py