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
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users