[asterisk-users] bypass menu for certain numbers?

Anselm Martin Hoffmeister anselm at hoffmeister-online.de
Thu Jan 4 14:14:56 MST 2007


Am Donnerstag, den 04.01.2007, 12:27 -0500 schrieb Matt Gibson:
> Thanks Tzafrir,
> 
> I knew about the ex girlfriend logic - but does that allow to be
> looked up from the callerid database instead? 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.
> 
> Thanks!
> Matt G

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 ---


BR
Anselm



More information about the asterisk-users mailing list