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
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
Hi Stefan,
You might use AGI instead of SHELL, it's better because you can interact
with the call via AGI and you don't have a risk of remote execution you
might have if you add arguments that come from outside, for example via a
SIP header.
Regards.
--
Ludovic Gasc (GMLudo)
Le ven. 27 juil.
Hi Guys
Just feedback on this particular thread, this issue is SOLVED.
The reason why SYSTEM() and SHELL() was not working for me was that I was
passing a linefeed character (\n, hex 0x0a) in one of the channel variables
in Asterisk that was then parsed in the call to SYSTEM() and SHELL().
It
With thanks to Ludovic Gasc
---
Turns out there is nothing wrong with the SYSTEM() or SHELL() dialplan
functions in Asterisk 13.22.0.
After several hours of painstaking debugging, the problem turned out to be a
linefeed (\n character, 0x0a hex) in the first parameter passed from Asterisk
to