<!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>
&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp; System(/bin/sh /var/spool/asterisk/calllog/log.sh ${FromExt} ${exten});<BR>
<BR>
&nbsp;&nbsp;&nbsp; This is the content of the /var/spool/asterisk/calllog/log.sh: <BR>
&nbsp;&nbsp;&nbsp; <BR>
#!/bin/sh<BR>
#<BR>
#<BR>
<BR>
TIME=$(date &quot;+%d-%m-%Y-%HH-%MM&quot;)<BR>
<BR>
SOURCE=&quot;$1&quot;<BR>
DST=&quot;$2&quot;<BR>
<BR>
echo &quot;$TIME - $SOURCE - $DST&quot; &gt;&gt; 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>