Re: Dial Plan - Routing via Caller ID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Here is an example.


Let’s say that I want to send all calls to a context that would answer the call via voicemail.

Let’s say that I want to only right a SIP phone if calls cam from a particular Area Code (maybe the Area Codes in your state).

Let’s say that I would want to send calls from a particular A/C and certain NNX’s to a particular sales group.


Does that help define the purpose of directing calls *from* different Area Codes and NNX’s?


I wanted to come up with total control to do with an incoming call depended upon *where* that call came from whether it be a whole A/C, A/C with particular NNX’s or even down to a particular A/C/NNX/number.


Hope that clarifies what I was looking help with.


From: asterisk-users-bounces@xxxxxxxxxxxxxxxx [mailto:asterisk-users-bounces@xxxxxxxxxxxxxxxx] On Behalf Of John Kiniston
Sent: Thursday, April 05, 2012 1:53 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: Dial Plan - Routing via Caller ID



On Thu, Apr 5, 2012 at 10:35 AM, <lists65@xxxxxxxxx> wrote:

If I wanted to route a call from a particular DID and the CALLERID from a
specific A/C this doesn't seem to work for me:

exten => 6140000000/_702XXXXXXX,n,Goto(context1,s,1)
exten => 6140000000/6149999999,n,Goto(context2,s,1)
exten => 6140000000/6149999998,n,Goto(context3,s,1)
exten => 6140000000/6149999997,n,Dial(SIP/7777,25)

You are pretty close, I  think it's your priorities that are the problem. When I use "Ex Girl Friend Logic" I write my extensions this way:

exten => 6140000000/6149999999,1,Goto(context2,s,1)
exten => 6140000000/6149999998,1,Goto(context3,s,1)
exten => 6140000000,1,Dial(SIP/7777,25)

I have never used a wildcard match like you are attempting to do with the 702 prefix but according to it should work

A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.

-- Bandwidth and Colocation Provided by --
New to Asterisk? Join us for a live introductory webinar every Thurs:

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

[Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [DCCP]     [Gimp]     [100% Free Online Dating]     [Yosemite News]     [Arts & Crafts]     [Yosemite Photos]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]

Add to Google Powered by Linux