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: [email protected] 
[mailto:[email protected]] On Behalf Of Thomas Perron
Sent: domenica 1 novembre 2009 21.46
To: [email protected]
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?

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

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

Reply via email to