07-25-2012 08:30 AM - edited 03-16-2019 12:22 PM
Hi
I have two cases to manipulate digits on a dial-peer on a IOS cube:
1)
eq. 35400 -> 5400
this case is simple, I can use translation rules on the dial-peer.
2)
eq. 48600 -> 5400
I have a lot of numbers to translate in an other number don't followed any rules. Here I can't use the voice translation rules to do this. Now, I want to create a TCL script to translate this called numbers.
draft config:
voice translation-rule 1
rule 1 /^.\(....\)$/ /\1/
voice translation-profile 5to4digits
translate called 1
dial-peer voice 100 voip
description *** INCOMING from Avaya side dial-peer ***
translation-profile outgoing 5to4digits
incoming called-number .
session protocol sipv2
destination-pattern [3-4]....
voice-class sip bind control source <IP Add. Avaya>
voice-class sip bind media source <IP Add. Avaya>
service digit_manipulation
dial-peer voice 3001 voip
description *** OUTGOING to CUCM ***
destination-pattern ....
session protocol sipv2
session target ipv4:<CUCM>
voice-class codec 1
dtmf-relay rtp-nte
no vad
*do you have a tcl example scrip with similar digit manipulation?
*what is first executed, the translation rule or the tcl script?
*can I bind the dial-peer on the source ip adress of the avaya pbx, I just want to manipulate digit if it is coming from avaya and I have other dial peers matching to the 5-digits?
Thanks a lot for all the hints!
Best regards,
Christian
07-25-2012 08:51 AM
Writing TCL(IVR scripts is not so easy, you can judge by yourself:
http://www.cisco.com/en/US/docs/ios/voice/tcl/developer/guide/tclivrv2.html
You can send further questions on the matter to developer.cisco.com, TCL/IVR forum.
07-25-2012 11:02 AM
Can't you just do is in cucm?
Put a special CSS on the trunk that handles the incoming calls from the cube and put in all translations you need.
Regards,
Erik
Sent from Cisco Technical Support iPad App
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