<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
Using John Todd's example for recording, from his cleanup/conversion macro...<br>
<br>
<font face="Courier New, Courier, monospace"><small>; Turn the two in/out
.wav files into a single .wav file with both channels<br>
exten =&gt; s,3,System(/usr/local/bin/wmix ${MONITORDIR}/${CALLFILENAME}-in.wav
${\<br>
MONITORDIR}/${CALLFILENAME}-out.wav &gt; ${MONITORDIR}/${CALLFILENAME})<br>
;<br>
; Remove the old .wav files - we don't need them anymore.<br>
exten =&gt; s,4,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-in.wav ${MONITORDIR}/\<br>
${CALLFILENAME}-out.wav)<br>
;<br>
; This part of the routine compresses the .wav files into a .gsm file for<br>
;&nbsp; better storage (about 1/5 the size of a .wav file).&nbsp; Use "untoast" to
restor\<br>
e<br>
;&nbsp; to normal wav file format. (toast and untoast are fairly standard on Linux
s\<br>
ystems)<br>
;<br>
exten =&gt; s,5,System(/usr/bin/toast -F ${MONITORDIR}/${CALLFILENAME})<br>
</small></font><br>
The wmix runs successfully (it produces the mixed file), and running "by
hand" from the shell indicates that it returns 0 to the shell. &nbsp;But the *
console log seems to think it failed...<br>
<br>
<font face="Courier New, Courier, monospace"><small>&nbsp;&nbsp;&nbsp; -- Executing System("SIP/248379-fe6e",
"/usr/local/bin/wmix /var/spool/asterisk/monitor/20040220-121235-111-916095326873-in.wav
/var/spool/asterisk/monitor/20040220-121235-111-916095326873-out.wav &gt;
/var/spool/asterisk/monitor/20040220-121235-111-916095326873") in new stack<br>
Feb 20 12:12:56 WARNING[1209214528]: app_system.c:57 system_exec: Unable
to execute '/usr/local/bin/wmix /var/spool/asterisk/monitor/20040220-121235-111-916095326873-in.wav
/var/spool/asterisk/monitor/20040220-121235-111-916095326873-out.wav &gt;
/var/spool/asterisk/monitor/20040220-121235-111-916095326873'<br>
&nbsp; == Spawn extension (macro-record-cleanup, s, 3) exited non-zero on 'SIP/248379-fe6e'
in macro 'record-cleanup'<br>
&nbsp; == Spawn extension (intern-post, s, 1) exited non-zero on 'SIP/248379-fe6e'<br>
</small></font><br>
Any ideas why?<br>
</body>
</html>