02-03-2020 12:34 PM
We have a problem where the leading 9 access code is not being discarded when using Call Forward All to external numbers (i.e. cell phone). Because of this, the cell phone user sees the incoming caller ID beginning with 9 followed by the 10-digit ani. Since our country code is 1, all forwarded calls look like they're coming from India, since 91 is India's country code. I ran a debug at the SIP router and found that we are indeed sending the callerID with the leading 9 still attached.
I've read a few discussions on this general topic, but none seem to have applicable solutions. The closest I've gotten is in Route Pattern Configuration page --> Calling Party Transformations section, the Use Calling Party's External Phone Number Mask is checked. However, Calling Party Transform Mask and Prefix Digits (Outgoing Calls) fields are blank. Attached is a screen grab of the settings. Running on CUCM 11.5.1. Is there something missing here? Any suggestions on where else to look?
Solved! Go to Solution.
02-04-2020 05:58 AM
As far as I can determine the "Use Calling Party's External Phone Number Mask" setting has no affect on a forwarded call, where the original external calling number will be presented on the outbound leg. The "Calling Party Transform Mask" setting seems to take effect, so if all your forwarded calls were of a consistent format you could possibly use a mask of XXXXXXXXXXX or whatever number of Xs is needed to omit the leading 9. This would mess things up if some of your redirected calls weren't from North America as it would just blindly forward the last 10 digits. Would also mess things up if the Route Pattern was used for directly dialled calls and not dedicated soley to forwarded calls.
I would still recommend stripping at the gateway, a rule there can simply remove a leading 9 leaving anything else untouched.
02-03-2020 06:00 PM
02-03-2020 08:07 PM
Yes, I checked the CDR records and, in the Destination section, it shows the "directoryNum (callingPartyNumber)" field with the 9 in front. To me, this would indicate that's what CallManager sent out.
02-03-2020 06:03 PM
Also, I started a playlist about reading CallManager traces. This may be helpful in troubleshooting the issue.
https://www.youtube.com/playlist?list=PL0TL-g5HVlo2B9QT6wFgoXtwnCFN8nH-W
02-04-2020 07:38 AM
02-04-2020 03:23 AM - edited 02-04-2020 03:24 AM
Easiest way is a translation rule on the gateway to strip the leading 9 off any calling number. The behaviour is not inherent, by which I mean that the calling number will have been originally presented without the leading 9 from the service provider, then something in your gateway or CUCM adds the 9 prefix for the convenience of your users, so they can call back a missed or received call.
I'm pretty sure the external number mask setting is irrelevant in this case, where the call didn't originate from a phone.
02-04-2020 03:34 AM
Hi,
Pls try with putting a mask in "Calling party transform mask" matching to your Calling party number on the "Route pattern" & uncheck "Use calling party external number mask" like in this following link. Once you have successful test with the local mask on the route pattern, you may apply the same mask as "External mask for calling party numbers".
02-04-2020 05:58 AM
As far as I can determine the "Use Calling Party's External Phone Number Mask" setting has no affect on a forwarded call, where the original external calling number will be presented on the outbound leg. The "Calling Party Transform Mask" setting seems to take effect, so if all your forwarded calls were of a consistent format you could possibly use a mask of XXXXXXXXXXX or whatever number of Xs is needed to omit the leading 9. This would mess things up if some of your redirected calls weren't from North America as it would just blindly forward the last 10 digits. Would also mess things up if the Route Pattern was used for directly dialled calls and not dedicated soley to forwarded calls.
I would still recommend stripping at the gateway, a rule there can simply remove a leading 9 leaving anything else untouched.
02-04-2020 07:35 AM
The route pattern is indeed dedicated to just call forwarding, so it wouldn't have any impact on direct dialing. I did change the Calling Party Transform Mask to XXXXXXXXXXX and that seems to work, leaving behind the 9 and allowing the 1+area code+7 digits. However, you make a good point about how this would impact potential calling numbers from outside North America, so creating a rule on the gateway is something i'd also like to try as well. Any chance you'd be able to give a generic example of what that rule would look like?
02-04-2020 08:17 AM
Quick example, pulled from an actual install but with irrelevant lines deleted. Dial peer 9001 is the outgoing to the service provider. (Actually that rule could just be "rule 15 /^9/ //", but I've just pasted in what's in service in that gateway) If you have any valid calling numbers starting with 9 that you don't want truncated you could revise this rule, or put earlier rules to match them. As it stands any leading 9 is dropped.
voice translation-rule 1 rule 15 /^9\(\)/ /\1/
voice translation-profile Outbound_CLI translate calling 1
dial-peer voice 9001 voip translation-profile outgoing Outbound
You can test with CLI command ...
GATEWAY# test voice translation-rule 1 915556661234 Matched with rule 15 Original number: 915556661234 Translated number: 15556661234 Original number type: none Translated number type: none Original number plan: none Translated number plan: none
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