[asterisk-users] pattern matching DID

Aggio Alberto alberto.aggio at loquendo.com
Sun Nov 1 16:38:12 CST 2009


Hi,
it's quite straightforward: you can do your dialplan like this (default is the default context answered when inbound calls happen) - remember the underscores! -


[default]

exten => _1703XXXXXXXX,1,Goto(place-IVR,s,1)

exten => _1567 XXXXXXXX,1,Goto(place-other,s,1)



[place-IVR]

exten => s,1,Answer

exten => s,2,Background(menu-file)

exten => 1,1,Goto(submenu,1)

exten => 2,1,Goto(submenu,2)

 (...)





[place-other]

exten => s,1,Answer

exten => s,n,...

(...)

exten => s,n,Hangup

If you want to jump into a specific part of context, you should put a label near the 'n' priority where you want to jump to (eg. exten => s,n(jumphere),<application/function>) then specify that label into Goto() application.

Cheers,
//Al.



________________________________
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Thomas Perron
Sent: domenica 1 novembre 2009 21.46
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] pattern matching DID

I have two DID numbers.
I want callers who dial 1 703 xxxxxxxx to get placed in a specific part of IVR
I want other callers who dial 1 567 xxxxxxxx to get placed in a different area.
How do I do this please?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091101/1df595c3/attachment.htm 


More information about the asterisk-users mailing list