Configuring DID over a BRI CME

Unanswered Question
Sep 7th, 2007

Hi. Ive been given a block of ten DDI numbers, or DID numbers for the non British :) I can see them coming into the system when I call in to one of the numbers and do an ISDN debug 1931. So happy days there.

Now. On my UC520, im not sure how to configure DID numbers. I can see there's the facility to :

ISDN asnwer 1 incoming main office number

ISDN answer 2 incoming DID number xxxxxx

and then map the ISDN 2 answer number to an ephone-dn secondary number, that works fine. But i need to impliment my 9 other DID numbers, and map them to phones. Any ideas?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Paolo Bevilacqua Fri, 09/07/2007 - 04:19

Well, two things:

1st an incoming DP with direct-inward-diale for the called number:

dial-peer voice 1 pots

incoming called-number 30206.

Then the easier method to map DID to extension is

dialplan-pattern 1 302006. extension-length 3 extension-pattern 10.

Another technique is to place the full received number as secondary as you suggested.

This will make so DID 0 to 9 are mapper to extension 100 to 109. Other extension would not receive DID.

It may be more complicated that thay so you would need to explain how do you want things to work.

Then another matter is which number you want to be presented for outgoing calls.

Hope this helps, please rate post if it does!

davieshuw Fri, 09/07/2007 - 04:43

Hey. Well what im looking to do is to have ten DID numbers on ten phones in the office.

When someone dials a DID, it goes straight to the relevant phone.

When they dial out however, I only want the main office number going out. I dont want the DID number going out, because once people get hold of those numbers it'll be a nightmare!

So reading your post, i'll need to create ten dial peers with the ten DID numbers?

Paolo Bevilacqua Fri, 09/07/2007 - 05:07

No dial-peer except the one I mentioned which only purpose is to prevent a secondary dial-tone to be given to callers.

Just configure the dialplan-pattern as I suggested adapted for your local need.

For outgoing just configure "isdn calling-number XXX" and you are set.

anderson-david Fri, 09/07/2007 - 06:25

Hi Huw,

you can use this as an example, put direct-inward-dial on your POTS dial-peers and also use a translation pattern


voice translation-rule 1

rule 1 /1231/ /1/

where 1231 are the first 4 digits of the ddi range,assuming service provider is sending 6 digits (BT send 6 by default)

voice translation-profile potsincoming

translate called 1

then apply the profile to your POTS dial peers

dial-peer voice 1 pots

translation-profile incoming potsincoming

destination-pattern 9[1-8].....

progress_ind setup enable 3

progress_ind progress enable 8

progress_ind connect enable 8

progress_ind disconnect enable 8

fax rate disable


port 0/0/0

forward-digits 6

I hope this helps


davieshuw Fri, 09/07/2007 - 07:10

Hi Dave,

So would I need to add direct-inward-dial to all of my dial peers, even ones that arn't anything to do with my DDI?

Also do I need :

progress_ind setup enable 3

progress_ind progress enable 8

progress_ind connect enable 8

progress_ind disconnect enable 8


anderson-david Fri, 09/07/2007 - 07:20

Just your POTS dial peers (not needed on all POTS dial peers but I allways do)

the progress indicators are not essential but they guarentee things such as the user getting a ringing indication in the earpiece etc rather than just silence then hearing someone say hello at the other end

I hope this helps


davieshuw Fri, 09/07/2007 - 07:36

OK ive done that (and I assume i'd have to set one of the ddi numbers as a secondary number on one of my extensions so somebody's phone rings)

So what ive done is set my secondary number of my extension to 4775xx which is one of my DDI range. But, when I call in, I get the lovley automated BT lady telling me 'this persons phone is currently unavailable'.

Paolo Bevilacqua Fri, 09/07/2007 - 08:33

Hi, as I mentioned before, using "dialplan-pattern" you don't need secondary numbers for ephone-dn.

If you want to use secondaries, use the called number that you see with "term mon" and "debug isdn q931".

davieshuw Mon, 09/10/2007 - 02:37

Hi, ive tried using the secondary number method, but the phone doesnt ring. Here's the output from the debug isdn q931 when I phone in on one of my DDI's:

*** Output Omitted ***

Calling Party Number i = 0x2183, '7786268XXX'

Plan:ISDN, Type:National

Called Party Number i = 0x81, '4475XX'

Plan:ISDN, Type:Unknown

Sep 10 09:18:12.014: ISDN BR0/1/0 EVENT: process_rxstate: ces/callid 1/0x17 calL

Sep 10 09:18:12.014: ISDN BR0/1/0 EVENT: host_incoming_call: call_id 0x0017, Gu0

Sep 10 09:18:12.014: ISDN BR0/1/0 **ERROR**: host_incoming_call: answer number s

Received called number/subaddress does not match configured numbers

Sep 10 09:18:15.998: ISDN BR0/1/0 Q931: RX <- SETUP pd = 8 callref = 0x01

Sending Complete

pkentsmith Mon, 09/10/2007 - 04:03


Try a test voice translation-rule 1 4475XX to check what its being translated to on inbound. Then confirm you have a dn matching that number associated to a phone

Paolo Bevilacqua Mon, 09/10/2007 - 04:09


using secondaries, the numbers to use would be 4475xy. Or:

dialplan-pattern 1 4475.. extension-length 3 extension-pattern 2..

Note, you said that you only have 10 DIDs, so most likely you can use:

dialplan-pattern 1 44751. extension-length 2 extension-pattern 2.

I've supposed the second rightmost digit to be fixed as 1, change as needed.

davieshuw Mon, 09/10/2007 - 04:39

Using secondaries ive entered the same number thats being presented to the system, 4475XX, but no joy. If im assigning each number as a secondary I assume I can do away with dial-patterns all together?

Paolo Bevilacqua Mon, 09/10/2007 - 04:49

Hmmm, can you call secondary from a phone to another ?

dial-plan pattern would be the alternative

davieshuw Mon, 09/10/2007 - 04:53

I've got a secondary set up on the Reception phone.

Basically you call the main office number 4875XX and it rings on the reception phone as its the secondary number.

I thought i'd would be a similar sort of thing for these DID's, but aparrently not!

Paolo Bevilacqua Mon, 09/10/2007 - 05:09

The only thing I can think is that the other numbers are coming in differently.

Check again the number presented, because it the router tells you it doesn't match, well it means it doesn't!

davieshuw Mon, 09/10/2007 - 05:16

I've double checked the isdn debug, the number being presented is definatley 44751X when you call one of the DID's.

Im wondering that theres nothing to 'answer' the call. I've got an Answer statement to answer the incoming main office number 48715X, thats why my 48715X is being successfully routed to my secondary number on the reception phone.

davieshuw Mon, 09/10/2007 - 06:42

Right. Ive now got :

dial-peer voice 7 pots

incoming called-number 447511


port 0/1/0

447511 is one of my DID numbers. Where do I go from here to answer this on an existing phone?

Paolo Bevilacqua Mon, 09/10/2007 - 10:50


it should be:

incoming called-number 44751.

And, is not necessary to specify a port.

Now, as any number in thata pattern comes in, if it is secondary on and ephone-dn must ring, ditto if you configure dialplan-pattern per previous indications

davieshuw Tue, 09/11/2007 - 00:41

right ive now got:

dial-peer voice 7 pots

incoming called-number 44751.


forward-digits all

Do I apply a dialplan pattern to this now then? I wouldnt have thought id need it because ive identified im expecting a number 44751. ?

Paolo Bevilacqua Tue, 09/11/2007 - 04:10

You configure dialplan-pattern under telephony service.

The purpose is to translate from the full number to the extension format, for both for incoming and outgoing calls.

On the other hand, a number under ephone-dn that perfetly matches the called number, should ring w/oneed of dialplan-pattern.

davieshuw Tue, 09/11/2007 - 04:41

Yes for the purposes of clarity id like to declare ten individual dial peers: 447511 to 447519.

i've done this with my dial-peer 7 declaring the entire incoming number, then assigned it as a secondary on one of my phones, but it doesnt ring

Paolo Bevilacqua Tue, 09/11/2007 - 06:03

Please try "show dialplan number 447511" and check it point the automatically created for ephon-dn.

If it does, take debug isdn q931 and debug dial-peer for an incoming call.

Do you have any translation profile in place ?


This Discussion