I'm trying to build a simple accept/reject screening app for inbound calls that 
* forwards to my cell phone.  Basically I want * to announce the caller ID and 
then let me press 1 to accept the call or 2 to reject the call and send the 
outside party to voicemail.

I've been messing around with variation of the script below... can anyone tell 
me what I'm doing wrong?  It's got to be something obvious that I've overlooked.

Thanks!!!

[main]
exten => s,1,Answer
exten => s,n,Ringing
exten => s,n,Wait(1)
exten => s,n,Dial(SIP/[EMAIL PROTECTED],120,gM(screen))
exten => s,n,PlayBack(vm-goodbye)
exten => s,n,Hangup

[macro-screen]
exten => s,1,Wait(1)
;exten => s,n,SayDigits(${CALLERID(num)})
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Set(TIMEOUT(response)=30)
exten => s,n,Background(accept-reject)

exten => 1,1,Set(MACRO_RESULT=CONTINUE)
exten => 2,1,PlayBack(vm-goodbye)
exten => 2,2,Hangup

exten => s,6,Wait(10)
exten => i,1,Goto(TT_VO,s,1)


Ryan M. Colbert
Director of Information Technology
Rissman, Barrett, Hurt,
Donahue & McLain, P.A.
201 E. Pine Street, Suite 1500
Orlando, FL 32801
(407) 517-3105 - Direct Telephone
(407) 839-0120 - Main Office
(407) 841-9726 - Fax
http://www.rissman.com/



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to