[asterisk-users] pattern matching DID

Thomas Perron thomas.perron at gmail.com
Sun Nov 1 17:50:38 CST 2009


Where is everyone located?  I am in Virginia, USA

On 11/1/09, Aggio Alberto <alberto.aggio at loquendo.com> wrote:
> 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?
>
>



More information about the asterisk-users mailing list