Re: [asterisk-users] SHELL() function Asterisk 13 - can only accept one paramter in string?

2018-07-30 Thread Stefan Viljoen
: Re: [asterisk-users] SHELL() function Asterisk 13 - can only accept one paramter in string? 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

Re: [asterisk-users] SHELL() function Asterisk 13 - can only accept one paramter in string?

2018-07-27 Thread Stefan Viljoen
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

Re: [asterisk-users] SHELL() function Asterisk 13 - can only accept one paramter in string?

2018-07-27 Thread Ludovic Gasc
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.

Re: [asterisk-users] SHELL() function Asterisk 13 - can only accept one paramter in string?

2018-07-27 Thread Administrator TOOTAI
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