Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

TCL script digit manipulation on a CUBE

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

2 REPLIES
Hall of Fame Super Gold

Re: TCL script digit manipulation on a CUBE

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.

Bronze

Re: TCL script digit manipulation on a CUBE

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

927
Views
0
Helpful
2
Replies
CreatePlease to create content