cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
594
Views
5
Helpful
5
Replies

CUCM calls from extern to certain DN blocked with message

NazgulNr5
Level 1
Level 1

Hello,

In our Call Manager, calls from extern to certain directory numbers are blocked. When you call the number a voice message says that this number is not available.

My Call Manager knowledge is pretty basic. Can someone point out where I can edit the numbers that are blocked like that?

5 Replies 5

sudaggar
Cisco Employee
Cisco Employee
check the call flow hop by hop.
If you have below call flow:
PSTN-->PRI-->Voice gateway --> SIP/MGCP/H323 --> CUCM --> IP phone
check on voice gateway, if call is reaching to voice gateway by using below debug commands:
debug isdn q931
debug voice ccapi inout
it will provide you the details of calling and called number and also provide the details who is disconnecting the call (is it from cucm).

If the disconnect from cucm, check the disconnect reason such as unallocated number. check inbound css on gateway trunk in cucm if it has partition of directory number.

Accordingly check the call disconnection reason.

Regards

Awsome, thank you for the second debug command. I did run 'debug isdn q931' before and it said the call is terminated because of an incomplete number. Now I found that the blocked numbers get translated to XX while all others get translated to 50XX (which is the correct DN).

However, I can't find the translation rule that does it. I checked the Voice router and it has some translation rules configured for incoming calls but none that seemed to match the blocked number I tried.

Is there a way to find out where the translation happens and what rule is matched? When I ran the 'debug voice ccapi inout' it seemed already past translation.

 

Edit: I did run test voice translation-rule 1 XXXXXXXXXXXX on the voice router with a blocked number and the cutting off of two digits does not happen there. Where else could I check?

@NazgulNr5 

can you please post show run from the problematic router to check for translation rule and profile?

Your question is at broad level so to narrow down I would appreciate if you share the calling extension and called number details so it bcomes easier to understand and solve the issue quickly.

 

regards,

Ritesh Desai

*** Please rate helpful post. Please mark as answer if it solves your problem/query.
regards, Ritesh Desai

Sorry, it's a mess. I think most of these rules have been put in place as numbers on outgoing calls where not display correctly on the called party's phone. The issue has been fixed but we haven't had time yet to remove the rules...

Calls from external numbers are blocked for DN 5021 to 5029.

 

voice translation-rule 1
rule 1 /^XXXXXXX0000$/ /5001/
rule 2 /^XXXXXXX0001/ /5001/
rule 3 /^0XXXXXXX005001/ /5001/
rule 4 /^0XXXXXXX005002/ /5002/
rule 5 /^0XXXXXXX005003/ /5003/
rule 6 /^0XXXXXXX005005/ /5005/
rule 7 /^0XXXXXXX005006/ /5006/
rule 8 /^0XXXXXXX005010/ /5010/
rule 9 /^XXXXXXX000$/ /5001/
rule 10 /^0XXXXXXX005020/ /5020/
rule 11 /^0XXXXXXX005051/ /5051/
rule 12 /^0XXXXXXX005022/ /5022/
rule 13 /^0XXXXXXX005023/ /5023/
rule 14 /^0XXXXXXX005024/ /5024/
rule 15 /^0XXXXXXX005025/ /5025/
rule 16 /^0XXXXXXX005026/ /5026/
rule 17 /^0XXXXXXX005027/ /5027/
rule 18 /^0XXXXXXX005028/ /5028/
rule 19 /^0XXXXXXX005029/ /5029/
rule 50 /^0XXXXXXX005120/ /5120/
rule 51 /^0XXXXXXX005121/ /5121/
rule 22 /^0XXXXXXX005101/ /5101/
rule 23 /^0XXXXXXX005103/ /5103/
rule 24 /^0XXXXXXX005105/ /5105/
rule 25 /^0XXXXXXX005152/ /5152/
rule 26 /^0XXXXXXX005153/ /5153/
rule 27 /^0XXXXXXX005154/ /5154/
rule 28 /^0XXXXXXX005155/ /5155/
rule 29 /^0XXXXXXX005156/ /5156/
rule 30 /^0XXXXXXX005300/ /5300/
rule 31 /^0XXXXXXX005301/ /5301/
rule 32 /^0XXXXXXX0020/ /5020/
rule 33 /^XXXXXXX0020/ /5020/
rule 34 /^0XXXXXXX0021/ /5021/
rule 35 /^0XXXXXXX0022/ /5022/
rule 36 /^0XXXXXXX0023/ /5023/
rule 37 /^0XXXXXXX0024/ /5024/
rule 38 /^0XXXXXXX0025/ /5025/
rule 39 /^0XXXXXXX0026/ /5026/
rule 40 /^0XXXXXXX0027/ /5027/
rule 41 /^0XXXXXXX0028/ /5028/
rule 42 /^0XXXXXXX0029/ /5029/
rule 43 /^0XXXXXXX0500/ /5000/
rule 44 /^XXXXXXX002/ /2/
rule 45 /^0XXXXXXX00/ /20/
rule 46 /^XXXXXXX00/ /20/
rule 47 /^XXXXXXX01/ /21/
rule 48 /^0XXXXXXX01/ /21/
rule 49 /^XXXXXXX021/ /21/
rule 50 /^0XXXXXXX021/ /21/
rule 51 /^XXXXXXX03/ /23/
rule 52 /^0XXXXXXX03/ /23/
rule 53 /^XXXXXXX023/ /23/
rule 54 /^0XXXXXXX023/ /23/
rule 55 /^0XXXXXXX20/ /20/
rule 56 /^0XXXXXXX21/ /21/
rule 57 /^0XXXXXXX23/ /23/
rule 58 /^XXXXXXX0/ /2/
rule 59 /^XXXXXXX2/ /2/
rule 60 /^0XXXXXXX002/ /2/
!
voice translation-rule 2
rule 1 /^2\(.*\)/ /\1/
rule 3 /^/ /0/
!
!
voice translation-profile IN
translate calling 2
translate called 1
!
voice translation-profile OUT
translate calling 2

One of the things in your configuration that makes your configuration messy is that you use the same translation rules for manipulation of calling number for both in and outbound directions. Really recommend you to split these apart.

Besides this OMG your rule 1 is likely the most ugly thing ever. Do yourself a favour and rewrite it from scratch. Below would be a good start to shorten this rule.

Combine rule 3 to 8 and 10 to 31
rule 1 /^0XXXXXXX00\(5...\)$/ /\1/

Combine rule 32 and 34 to 42
rule 2 /^0XXXXXXX00\(2.\)$/ /50\1/

Apart from this recommend you to look at how you get called number sent to you inbound from the Telco, this is usually done in a specific format that doesn't alter based on call scenarious. What I mean is that it's a fixed formated string that you aught to be able to quite easily modify with a regex string. Have a look at these documents to learn more about how this operates in IOS.
https://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/14074-in-dial-peer-match.html
https://www.cisco.com/c/en/us/support/docs/voice/ip-telephony-voice-over-ip-voip/211306-In-Depth-Explanation-of-Cisco-IOS-and-IO.html
https://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/61083-voice-transla-rules.html

I would recommend you to run these debugs simultaneously to see how you receive and translate called number inbound from PSTN.

debug isdn q931
debug voip dial
debug voip translation

Do you know how your Telco send called number to you? This would help immensely to clean up rule 1 and also to fix this problem.



Response Signature


Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: