[asterisk-users] [1.4] Still can't get it to call back
Gilles
codecomplete at free.fr
Fri Feb 25 08:11:11 CST 2011
On Fri, 25 Feb 2011 12:20:34 +0000 (UTC), tony at mountifield.org (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.
More information about the asterisk-users
mailing list