02-09-2015 09:01 AM - edited 03-17-2019 01:54 AM
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
02-09-2015 10:45 AM
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.
02-09-2015 12:46 PM
Thanks guys,
I am out of the office now. We test it tomorrow and let you know.
MK
02-09-2015 12:09 PM
Hi mightyking,
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.
02-09-2015 06:21 PM
Hi mightyking,
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
02-11-2015 09:01 AM
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
02-11-2015 09:21 AM
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
02-11-2015 09:57 AM
Did you mean " instead of 2 after the last \ ?
Thanks,
MK
02-12-2015 05:55 AM
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
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