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

Antonio Modesto modesto at isimples.com.br
Wed Jul 20 12:53:53 CDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110720/a55c0a2d/attachment.htm>


More information about the asterisk-users mailing list