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

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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

Reply via email to