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.


--
_____________________________________________________________________
-- 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

Reply via email to