02-12-2007 06:24 AM
Hi
I have reached the limit with translation profiles and i need to be able to scale the amount of numbers i can translate.
I was told i can do this in a TCL script on the POT peers so i can change the DNIS number before it then matches a DialPeer outbound on the IP leg.
Does anyone have any examples of how to do this in TCL?
Thanks
Andy
02-18-2007 11:29 AM
Hi,
yes this can be done using the TCL regular expressions and the "string" command.
Read these TCL pages:
http://www.tcl.tk/man/tcl8.5/tutorial/Tcl16a.html
http://www.tcl.tk/man/tcl8.5/tutorial/Tcl17.html
http://www.tcl.tk/man/tcl8.5/tutorial/Tcl18.html
http://www.tcl.tk/man/tcl8.5/tutorial/Tcl19.html
http://www.tcl.tk/man/tcl8.5/tutorial/Tcl20.html
Don't worry, the pages are small :)
Hope that helps!
02-20-2007 03:53 AM
Hi.
Thanks for that, i have got a script working to do what i want, the problem is i am using Parameters to pass the translations in and it does not seem to order them very well in the config so its hard to see what where your at.
i.e param1,param2, param3 it displays them in a random order.
So to cut to the chase i was think of off loading the request to a web server which could be back by a DB of numbers if there a command that lets you send a web request and parse the results i.e the page returns some xml etc.
Thanks
Andy
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide