Can you give me/us the output of the full log (verbose set to 5 please)? Once I hve that, I can probably help you quite quickly, I work with callfile generation often without problem<br><br>First, you're trying to copy <br>
<br><div class="gmail_quote">On Sun, Feb 6, 2011 at 9:36 AM, Gilles <span dir="ltr"><<a href="mailto:codecomplete@free.fr">codecomplete@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Sat, 05 Feb 2011 12:07:28 +0100, Gilles <<a href="mailto:codecomplete@free.fr">codecomplete@free.fr</a>><br>
wrote:<br>
>I've seen articles about Call files. Is this the easiest way to solve<br>
>this problem?<br>
<br>
For some reason, Asterisk executes Wait(10), but then hangs up without<br>
running the rest of the commands (cp, echo, mv):<br>
<br>
==========<br>
[from_fxo]<br>
exten => s,1,Wait(2)<br>
<br>
exten => s,n,Set(SOURCE_CIDNUMBER=${CALLERID(num)})<br>
exten => s,n,Set(SOURCE_CIDNAME=${CALLERID(name)})<br>
exten => s,n,NoOp(Call from ${SOURCE_CIDNAME} - ${SOURCE_CIDNUMBER})<br>
<br>
exten => s,n,GotoIf($["${SOURCE_CIDNUMBER}" = ${GSM}]?goodcid:badcid)<br>
<br>
exten => s,n(goodcid),NoOp(CID OK)<br>
;how to reliably detect that line is now quiet?<br>
exten => s,n,Wait(10)<br>
<br>
exten => s,n,NoOp(Before cp)<br>
exten => s,n,system(cp /var/spool/asterisk/skelett.call<br>
/var/tmp/skelett.call)<br>
exten => s,n,NoOp(Before echo)<br>
exten => s,n,system(echo 'Channel: ZAP/1/${IPPI}' >><br>
/var/tmp/skelett.call)<br>
exten => s,n,NoOp(Before mv)<br>
exten => s,n,system(mv /var/tmp/skelett.call<br>
/var/spool/asterisk/outgoing)<br>
<br>
;exten => s,n,Hangup<br>
<br>
;Context set in call file<br>
[callback-dialtone-auth]<br>
exten => s,1,NoOp(Call from ${CALLERIS(num)})<br>
==========<br>
<br>
FWIW, "show modules" says that pbx_spool.so is loaded.<br>
<br>
Has someone experienced this?<br>
<div><div></div><div class="h5"><br>
Thank you.<br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>