[asterisk-users] [1.4] Call progress for Zaptel 1.4.3.1?

Gilles codecomplete at free.fr
Wed Mar 2 03:54:14 CST 2011


Hi

	With an FXO module + Zaptel, I'd like to know if there are ways to
know when the remote party has answered the phone, whether calling
through a callfile or by sending DTMF's.

I read about {CHANNEL(state), ChanIsAvail(), and ${DIALSTATUS}: Are
those reliable ways to know when the channel is available for dialing
out and the call has been answered?

www.voip-info.org/wiki/view/Asterisk+func+channel
www.voip-info.org/wiki/view/Asterisk+cmd+ChanIsAvail
www.voip-info.org/wiki/view/Asterisk+variable+DIALSTATUS

==============
[callback]
exten => start,1,NoOp(DialStatus is ${DIALSTATUS})

;how to pause until party has answered?
;Down, Rsrvd, OffHook, Dialing, Ring, Ringing, Up, Busy, Dialing
Offhook, Pre-ring, Unknown
exten => start,n,While([${CHANNEL(state) != "OffHook"])
exten => start,n,NoOp(Channel still ringing)
exten => start,n,EndWhile()

exten => start,n,Answer(500)
exten => start,n,Playback(please-wait)

exten => start,n,Flash()

exten => start,n,SendDTMF(${GSM},500)
;how to pause until party has answered?
exten => start,n,Wait(5)
==============

Thank  you.




More information about the asterisk-users mailing list