On Tue, 26 Aug 2008, JR Richardson wrote:

> Hi All,
>
> I received a request for a special application and need some guidance.
> Cust has there own Asterisk PBX with SIP phones, pretty standard
> setup.
>
> They want an after hours application that checks inbound caller ID
> numbers and matches them to a list, say 5 to 10 numbers of special VIP
> customers, if there is a match on the list, then forward the call
> straight to a cell phone, instead of ringing local extension and then
> to voicemail.
>
> The customer also wants to be able to manage this VIP list and the
> call forward cell phone number themselves, so it needs to be
> configured, numbers added and deleted, through a web page on the PBX.
>
> So I'm thinking I need a dialplan app that has to interface with a
> MySQL database that holds the list of numbers, so I can build a
> webpage to add/delete the numbers.
>
> Any ideas would be much appreciated.

>From the Keep It Simple Stupid Department:

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

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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

Reply via email to