[cisco-voip] converting called numbers using TCL

Erik Goppel egoppel at gmail.com
Wed Jun 27 09:45:15 EDT 2007


Hi,

I am trying to write a TCL app, that will translate an original called
number to a full DDI number.
This because i want to build an AAR like application on CME.
So call going out a dial-peer 1000 pref 1 (no bandwith via Gatekeeper or WAN
failure), then hits my second dialpeer with pref 2, this hits the app, and
translates the original called number to a full ddi number, sets up a call
to this number and transfer it.
example:
phone calls 1000, gatekeeper rejects, hit app, convert 1000 to +4412345678
set up call and connect phone and destination if succesfull, otherwise play
message (temp failure,etc..).
Now i can do this with including all the DN`s and the DDI number within the
TCL script, however, i would like to do a db lookup to an sql server
because the entries will be around 2000 dn`s (and dynamic)
Now i am stuck, i can`t find anything that on using TCL within IOS and
connecting to a SQL DB.

Can anyone assist?


Thnx

Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://puck.nether.net/pipermail/cisco-voip/attachments/20070627/57b0f8c8/attachment.html 


More information about the cisco-voip mailing list