[Asterisk-Users] database lookup

Sean Cook scook at kinex.net
Wed May 24 16:31:11 MST 2006


a very elegant solution would be to do a Realtime lookup and match the
variable that is set.

exten => s,1,Answer()
exten => s,2,Realtime(sometag,cid,${CALLERID(num)},check_)
exten => s,3,gotoif($["${check_daughters}foo" = "foo"]?...)

Then you can just add a record to the database...

On Wed, 2006-05-24 at 15:09 -0600, Bromont - wrote:
> Hi all,
>  
>      I'm looking for an easy way to lookup numbers from the database so I can fork calls from my daughters friends onto her IP phone/answering system. I'm looking for something very similar to LookupBlacklist, but I'm already using LookupBlackist to filter out telemarketers. What I'm doing now is adding multiple exten=> lines to my extensions.conf file to match those numbers. I'd like to just add her friends numbers to the database, then do a "lookup" to match and branch off. Any ideas? Thanks, Marc.
> 
> 
> _______________________________________________
> --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




More information about the asterisk-users mailing list