[Asterisk-Users] Asterisk System() call error

Bob Goddard asterisk at bgcomp.co.uk
Wed Mar 9 07:11:41 MST 2005


On Wednesday 09 March 2005 13:37, Jonathan Hobbs wrote:
> I have a linux (bash) script file which is invoked via:
>
> exten => s,3,System(./BuildMsg.sh ${SFile} msg02 msg99)
>
>
> When I start asterisk with the command:   asterisk -vvvvgc
>
> This script executes as expected ('asterisk -gc' and 'asterisk -vg' also
> work).  However, when I try to start asterisk with the command:
>   'asterisk -g'  the script does not execute and I get the following error
> message in the 'messages' log file:
>
> Mar  9 08:06:55 WARNING[790]: Unable to execute './BuildMsg.sh 1-1 msg02
> msg99'

Never put in relative paths. Try /etc/asterisk/BuildMsg.sh.


B



More information about the asterisk-users mailing list