No subject


Thu Jul 12 09:23:04 CDT 2007


Use the astDB. Add entries like:

   /vipMap/custNumber: Target number

eg.

   /vipMap/441364698123: 07712191046

In this case, 441364123123 is my VIP customers number, and 07712191046 is 
my mobile number..

You can do a little bit of webby stuff to maintain this via the manager 
interface. If you can't find any, drop me an email - I have some I 
modified after finding some ideas online. (I use this way to manage 100's 
of number to name mappings)

To use:

   exten => s,n,Noop(Testing for VIP - caller is ${CALLERID(number)})
   exten => s,n,Set(vipTarget=${DB(vipMap/${CALLERID(number)})})
   exten => s,n,GotoIf($["${vipTarget}" = ""]?notVip)
   exten => s,n,Noop(We got a VIP - lets call their contact on ${vipTarget})
   exten => s,n,Dial(SIP/${OUT}/{vipTarget}) ; or whatever

   exten => s,n(notVip),Noop(Not a VIP - dump to answering machine)
   ...


Gordon



More information about the asterisk-users mailing list