On Fri, 25 Feb 2011 12:20:34 +0000 (UTC), [email protected] (Tony Mountifield) wrote: >os.execute("(sleep 2;mv /var/tmp/callback.call /var/tmp/asterisk/outgoing)&") > >The important parts are the ( before the sleep and the )& at the end. The >brackets create a subshell to do the sleep and move, and the & puts that >subshell in the background, so the os.execute will return immediately >without waiting for the sleep to execute. By the time the mv is executed, >the channel should have been hung up properly.
Thanks for the tip. The script now waits 10s and it's long enough for Zaptel to hang up the original call. The next step is checking that the remote party has actually gone off-hook before playing a message. I tried WaitForSilence() in extensions.conf and "callprogress=yes" + "progzone=fr" in zapata.conf, but that doesn't work (when my cellphone goes off-hook, Asterisk remains silent, and tries calling again after I hang up). www.voip-info.org/wiki/index.php?page=Asterisk+auto-dial+out#Tipsandhints Does it mean that there's no way for Zaptel to know the status of a call (ring, answered, busy, etc.), and the only way is to use Wait() and hope for the best? Thank you. -- _____________________________________________________________________ -- 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
