[asterisk-users] Re: Match a Numer - then continue with dialplan

Doug Crompton doug at crompton.com
Wed Dec 20 08:36:14 MST 2006


I haven't really been following this thread but doesn't the following
snipet kinda do this....

[out-international]
exten => _011,1,goto(process-international,s,1)

[process-international]

exten => s,1,playback(international-call)
exten => s,n,playback(please-enter-the)
exten => s,n,read(number,number)
exten => s,n,Dial(SIP/011${number}@gizmo,120,T)
exten => s,n,Macro(failann,${DIALSTATUS})


This matches 011 then could do any number of things. Here I just goto,
then it looks for more numbers (the announcement is optional) and then
dials them.

Maybe not what you are looking for but it is an example of Asterisk
matching an extension and then going on to take more digits that then
branch based on other digits. Here the 011 is prepended to the final
number.

BTW - what is a numer?

Doug



More information about the asterisk-users mailing list