cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
309
Views
20
Helpful
8
Replies

Translation Rule

mightyking
Level 6
Level 6

Hi,

The dialer sends an empty externtal number mask field to the GW. I would like to translate what I am receiving from the dialer (which is nothing) to 1888-234-12345. I am trying:

Voice translation-rule 100

rule 1 /^$/ /18881231234/

Router#test voice translation-rule 100 ( I put nothing and just do enter)
% Incomplete command.

How can I accoplish this?

 

Thanks,

 

MK

8 Replies 8

Can you include a debug of what are you receiving? like the "debug isdn q931"

/^$/ --> should work.

 

the command "test voice translation-rule" requires an input string, and that is why doesn't work when you test.

Can you try to make a live test or something? during non-business hours maybe?

 

Rolando Valenzuela.

Thanks guys,

I am out of the office now. We test it tomorrow and let you know.

 

MK

Hi ,

 beyond what Rolando Valenzuela said ...

 Although your expression is correct, you cannot test it via the 'test voice translation-rule' because you cannot simulate a NULL character.

 You can use the 'debug voice translation' to check this in a real scenario.

 

Hope this helps.

Mohammed Khan
Cisco Employee
Cisco Employee

Hi

If you dialer is SIP, Then you can use SIP Normalization Script on IOS Gateway.

For more info on SIP Normalization Script on IOS Gateway refer below link.

http://www.cisco.com/c/en/us/support/docs/voice-unified-communications/unified-border-element/105624-cube-sip-normalization.html

In SIP Invite modify anonymous to number and privacy to yes.

HTH,

Regards,

Mohammed Noor

Hi Mohammed,

Could you please give me a configuration example of sending 1-888-123-1234 as an external mask in the SIP header?

 

Thanks,

 

MK

Hi MK,

Try below script, in case if that don't work can you below debug

debug ccsip messages

debug voice ccapi inout

show tech voice

voice class sip-profiles 1
request INVITE sip-header From modify "(.*)<sip:anonymous(.*)" "\1<sip:18881231234\2

Assign the voice class sip-profiles 1 to the outgoing dial peer

HTH,

Regards,

Mohammed Noor

Did you mean "  instead of 2 after the last \ ?

 

Thanks,

 

MK

Typo

Here is the right one

voice class sip-profiles 1
request INVITE sip-header From modify "(.*)<sip:anonymous(.*)" "\1<sip:18881231234\2"

HTH,

Regards,

Mohammed Noor