[asterisk-users] SHELL() function Asterisk 13 - can only accept one paramter in string?
Administrator TOOTAI
admin at tootai.net
Fri Jul 27 03:24:56 CDT 2018
Le 27/07/2018 à 09:36, Stefan Viljoen a écrit :
> Hi all
>
> This is a followup on my post "Asterisk 13 - system() dialplan app cannot call bash scripts" from yesterday
>
> I've given up trying to use system() to call BASH scripts with parameters from Asterisk 13.
>
> Turned out under Asterisk 13.22.0 System() DOES work, but only if you do NOT attempt to pass any parameters to the called script.
[...]
*CLI> core show version
Asterisk 13.22.0 built by root @ pabx on a x86_64 running Linux on
2018-07-14 13:36:49 UTC
This works for us
same = n,system(/bin/echo "To: ${CALLED_CHANNEL} From: ${ORI_CALL}" |
/usr/bin/mail -s "TOOTAiAudio - Congestion Gateway ${CONGESTION_GW}
used" ${AUDIO_ADMIN})
--
Daniel
More information about the asterisk-users
mailing list