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
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users