<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Good afternoon,<BR>
<BR>
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:<BR>
<BR>
System(/bin/sh /var/spool/asterisk/calllog/log.sh ${FromExt} ${exten});<BR>
<BR>
This is the content of the /var/spool/asterisk/calllog/log.sh: <BR>
<BR>
#!/bin/sh<BR>
#<BR>
#<BR>
<BR>
TIME=$(date "+%d-%m-%Y-%HH-%MM")<BR>
<BR>
SOURCE="$1"<BR>
DST="$2"<BR>
<BR>
echo "$TIME - $SOURCE - $DST" >> teste.log<BR>
<BR>
I tried to insert some info direct into the file using echo but i've got the same error.<BR>
<BR>
Is there some secret to use this? haha
</BODY>
</HTML>