I'm trying to set up translation rule on our CUBE to take incoming DID and send/translate it to a local DN. I've set up translation rule, for this instance lets say that incoming DID is 904-123-4567 and local DN that should be sent to is 5500.
I've set up this translation rule:
voice translation-rule 3
rule 1 /^9041234567$/ /55000/
rule 2 /^19041234567$/ /55500/
I have that translation rule applied to a translation profile:
voice translation-profile translate_test
translate calling 3
And from there I have the translation profile applied to outgoing dial-peer from CUBE to CUCM. However I can't seem to get this working. Any suggestions?
Under translation profile, instead of using "translate calling" you need to use "translate called". And you need to apply this translation profile on PSTN incoming dial-peer. Here is the configuration example:
voice translation-rule 1 rule 1 /^9041234567$/ /5500/ ! voice translation-profile PSTN_Incoming translate called 1 ! dial-peer voice 100 voip description *** INBOUND CALLS FROM SERVICE PROVIDER *** translation-profile incoming PSTN_Incoming incoming called-number . <Apply rest of the dial-peer configuration based on your scenario> ! dial-peer voice 101 voip description *** OUTBOUND CALLS TO CUCM *** preference 1 destination-pattern 5500$ session target ipv4:10.10.1.10 <Apply rest of the dial-peer configuration based on your scenario> !
The earlier example was for 5500. If you want it for 55000 then update the translation rule and dial-peer destination pattern. Can you post your full router configuration?
Please post "debug voice translation" while making the call.
Also, have you tried doing it on CUCM via translation pattern?