06-24-2016 02:47 PM - edited 03-17-2019 07:21 AM
Afternoon, everyone.
I have been trying to strip the e.164 numbers to just send 10 digits to the UCM.
I have a CUBE that is receiving +1 and 10 digits.I am looking to strip the =1 on the
I have configured translation rule that strips the +1. Rule 1 /.+1/ //. when I run the voice translation rule, the +1 is stripped. I apply the rule to a translation profile and apply to inbound dial-peer using incoming number.
The rules do not seem to apply and the debug s show calling and called with +1 and number. I have tried to use a SIP Profile to strip out the +1 in the header.
voice class sip-profiles 1
response ANY sip-header Allow-Header modify "UPDATE," ""
request ANY sip-header From modify "ip:+1" "ip:
voice translation-rule 1
rule 1 /\+1./ //
!
!
voice translation-profile IN
translate calling 1
translate called 1
If anyone can look at my configuration and provide any pointers i would appreciate it.
06-24-2016 03:08 PM
Hi John,
I believe you just need to put the rule as below without a dot as dot is removing an extra digit.
rule 1 /\+1/ //
Also make sure you are applying this correct direction .thanks
06-25-2016 07:51 AM
Hi, Deepak.
Thanks, I tried the settings and I have adjusted the rule.
When I run a test voice translation-rule 1
the +1 is stripped.
I placed the rule in the following manner.
voice translation-profile IN
translate called 1
!
dial-peer voice 1000 voip
translation-profile incoming In
incoming number .
Running the following debugs:
debug voice ccapi inout
debug ccsip mess
debug voic dial-p
I can verify the gateway receives the call via SDP messages. I do not see that it looks for an outbound dial-peer.
To me this is something basic I am missing.
06-25-2016 10:31 AM
Hi John,
I can see translation profile "IN" is in caps and the one you have defined in dial-peer is using small letter "In". It has to match otherwise it wont take affect.
Also attach above debug's if still no go.thanks
06-27-2016 06:48 AM
Hi, Deepak.
I ended up preforming a reload of the gateway. The gateway began working correctly afterwards.
06-27-2016 06:51 AM
Good job and thank you for update.
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