[asterisk-users] External call press 1

carl Lougher c_lougher at yahoo.co.uk
Tue Jul 18 06:49:00 MST 2006


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



More information about the asterisk-users mailing list