[asterisk-users] bypass menu for certain numbers?

Noah Miller noahisaacmiller at gmail.com
Thu Jan 4 15:47:23 MST 2007


> Let's say you use the Asterisk DB() stuff for your caller ids, storing
> them in a branch called "book" like
> book/16175551234 "John Doe"
> book/12125559876 "Jane Miller"
>
> Then you could go with a logic like
>
> exten => s,1,Set(CALLERID(name)=${DB(book/${CALLERID(num)})})
> exten => s,2,GotoIf($["${CALLERID(name)}" = ""]?3:100)
> exten => s,3,---your business customers go here---
>
> exten => s,100,--- friends go here ---

I don't think this would do what you want it to do.  I think you
should leave the caller id name out of it, and just use numbers.
Also, I don't think you really want to change the CALLERID of the
channel at all, just use it to compare.    I like Tzafrir's
ex-girlfriend method.

> I'd like to have it only
> be one "goto" for direct dial, and one for the main menu instead of
> having to manually input all those numbers, and add new ones when
> required.

Whether you enter them into the dialplan with the ex-girlfriend
method, put them in a DB, or put them in a goto statement, you're
going to have to add the new numbers at least once.  I think it's the
same amount of work to add new numbers using any method.  The
ex-girlfriend method seems a little more in tune with the 1.4 style
(non-jumping) dialplans.

- Noah


More information about the asterisk-users mailing list