Thats how I do it. AGI makes a call to a MSSQL server. A stored proc returns an extension based on ANI and DNIS and the call continues.

Thanks,
Steve Totaro

Olivier Saulnier wrote:
Hello,

I would like to intercept each incoming call and with an awk script, search the internal phone number ask.
For example:
I have a text database as this:
External phone   Internal Phone
12345678             10
45874521             11
32544884             12

When the client 45874521 call, Asterisk must routed the incoming call to the internal phone 11 I have an awk script able to find the good internal phone, but i don't know how to interface it with Asterisk. I thought that AGI is the best way. Is it?

Best regards,


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