[asterisk-users] "Problems" with System() application

Jorge Gutiérrez jgutierrez at palosanto.com
Wed Jul 20 13:03:36 CDT 2011



Are you able to execute: log.sh through the asterisk user?


On Wed, 20 Jul 2011 14:53:53 -0300, Antonio Modesto
<modesto at isimples.com.br> wrote:
> Good afternoon,
> 
>     I am trying to use the System() application but it is always
> returning APPERROR in the ${SYSTEMSTATUS} variable, I am trying to run
> this command:
> 
>     System(/bin/sh /var/spool/asterisk/calllog/log.sh ${FromExt}
> ${exten});
> 
>     This is the content of the /var/spool/asterisk/calllog/log.sh: 
>     
> #!/bin/sh
> #
> #
> 
> TIME=$(date "+%d-%m-%Y-%HH-%MM")
> 
> SOURCE="$1"
> DST="$2"
> 
> echo "$TIME - $SOURCE - $DST" >> teste.log
> 
> I tried to insert some info direct into the file using echo but i've got
> the same error.
> 
> Is there some secret to use this? haha

-- 
Jorge Gutiérrez



More information about the asterisk-users mailing list