01-10-2018 10:10 PM - edited 03-19-2019 01:03 PM
How to find out numbers of direct lines and which directory number is DID assigned in CUCM?
CUCM version 7.1.5.30000-1
01-11-2018 05:07 AM
Depends on how the direct lines are configured. Check your translation patterns (Call Routing > Translation Pattern in CUCM admin). You may have one pattern for each DID. You may have a wildcard pattern that matches multiple DIDs such as 1234567XXX. Click on the translation pattern and look at the Called Party Transform Mask. This will tell you which DN the pattern is translated to. This translation could also be done with a translation rule on your gateway. Multiple places it can be done. Will have to start narrowing down. Also may need to check with your carrier regarding which DIDs you own.
Brandon
01-11-2018 08:09 AM
If you're asking if you can ask CUCM a report for the DIDs, that's impossible, the concept of DID is abstract and CUCM is unaware of it. CUCM has no idea of what a DID is, he's just aware of DN/patterns.
You would need to have a list of the DIDs you own to begin with, then look at the GW that handles them to look at the configuration you have and if you're doing any digit manipulation, how many digits you get from the telco, etc.
Then you move on to CUCM with that info to determine how they're routed in CUCM, if you do any other digit manipulation, etc. to finally determine what is the actual number on the phone.
01-12-2021 03:31 PM
You probably are looking for the External Phone Number Mask, which is in the Line Appearance of the Device/Phone you are searching after.
It is a common misconception from Cisco not to try to understand the system for the casual administrator.
The only table that has it is devicenumplanmap under e164mask
You can search for it via
run sql select * from devicenumplanmap
01-13-2021 05:02 AM
@franciscofossa wrote:It is a common misconception from Cisco not to try to understand the system for the casual administrator.
In what way do you mean that it's a common misconception from Cisco?
@franciscofossa wrote:The only table that has it is devicenumplanmap under e164mask
You can search for it via
run sql select * from devicenumplanmap
Depending on how big the system is I would not recommend you to run that query as it's pretty generic and can produce a ton of output.
@franciscofossa wrote:You probably are looking for the External Phone Number Mask, which is in the Line Appearance of the Device/Phone you are searching after.
There is no guarantee that the EPNM would be filled in, for example if you have a +E.164 dial plan it's not an absolute to have this populated.
01-13-2021 06:15 AM
I said "probably" because I have seen this many time. In my many years of experience I have seen that casual administrators don't keep track of DIDs, unless a translation is created in IOS or CUCM incoming, and not even then, because they ignore what else are free. Big companies buy bulks of numbers, then don't use a lot, sometimes.
It is a common, real life problem, always asking "do we have any free DID" etc.
Also some users think their extension is their DID, and then identify their problem via the DID, and not the extension, especially now that many people work from home, use remote profiles, share lines, etc.
It just simply takes times just to identify who is using the EPNM as DID.
The original answer from Jaime Valencia (Cisco) is conceptual: like 'go study the system'. He may be right, but in the end, that is not a solution. In my view it is a shortcoming from the system, that I cannot for example list and search properties by line appearance in the web interface.
That being said, many installations use the EPNM to represent ANI to the trunk/gateway. But there is no simple way to check that. Of course, I am still to find the first small deployment using Calling Party Transformations into the Gateways... not a chance.
The misconception from Cisco comes from expecting only the best practice, maybe e164 and sip all across the board, and number globalization. The misconception is on the understanding of casual administrators, who cannot use this, don't understand it, are using old system with just a short extensions. And get frustrated sometimes with how difficult is to do the simplest things.
BTW, instead of criticizing a command, please propose a better command. For example: Instead of select *, select "1234567890" to find this line appearance pkid. Or better, propose a better inner join command with the other table to show this with the device and extension.
Extra solution to this problem: Export the lines or device in bulk administration and analyze the CSV.
Again, not simple.
08-15-2022 10:04 AM
Exactly. Thank you.
10-12-2022 07:56 AM - edited 10-12-2022 08:12 AM
a DID to DN map is the most basic of Telecom attributes... In any Telecommunications system except for Cisco its the simplest of things to locate, however with Cisco you need a degree with a Minor in SQL to do the most basic thing, its quite formidable.
10-12-2022 08:42 AM - edited 10-12-2022 08:43 AM
Not really that hard to find in my opinion.
Simply go to the webUI and select Call Routing > Directory Number
10-12-2022 08:50 AM
That's the DN number it does not show the DID- Am I missing something here? They want to see the DID number and who its currently assigned to. A downloadable list of DID/DN association would be nice. Is this possible?
10-12-2022 10:11 AM
It does if you use E.164 directory numbers as we do.
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