Hi,
Running asterisk ver 1-0-9

Trying to send a call to a mobile phone and playback a
message to the user to press one to accept the call. 
If 1 isn't pressed then the call needs to be re-routed
back into the asterisk dialplan.

Tried various macros etc but if one isn't pressed the
call still gets accepted?

Any clues???

exten => 333,1,Macro(test)
exten => 333,2,Hangup

exten => 334,1,Dial(SIP/XXX)


[macro-test]
exten => s,1,Wait(1)
exten => s,2,Read(ACCEPT|press-one |1)
exten => s,3,GotoIf($[${ACCEPT} = 1 ]?4:5)
exten => s,4,NoOp(Caller accepted)
exten => s,5,Goto(client,334,1)

exten => i,1,Set(MACRO_RESULT=CONTINUE)
exten => t,1,Set(MACRO_RESULT=CONTINUE)



                
___________________________________________________________ 
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy 
and free. http://uk.docs.yahoo.com/trueswitch2.html
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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

Reply via email to