creating 2 did group range on one PRI line

Unanswered Question
May 3rd, 2007


i got one PRI line on cisco gateway which is terminated on mtf-e1 card.

what i wanna do is to divide this pri line into 2 groups.currently my pri line range is between 5550100-199.

but i wanna do that

if customer calls 5550100 their calls will go to the ivrA

and if they call 5550150 their calls will go to the ivrB

ivr system is not cisco. gateway is 3825 router. PRI card is mft-e1.

i wanna divide the pri range like 5550100-149

and 5550150-199

probably i will receive 2 numbers from telco.

5550100 and 5550150. both of these numbers can be terminated on the same mtf-e1? if so what kind of config should i do on the router

any idea pls



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.8 (4 ratings)
Paolo Bevilacqua Thu, 05/03/2007 - 03:28

Sure you can do that. Under the dial-peer pots you will configure "incoming called-number" for the different numbers, and that will decide what to do with the call. At that point you can change digits so that on outbpound the call is sent to the system of your choice.

Hope this helps, please rate post if it does!

senolgokhan Thu, 05/03/2007 - 03:44

thanks for your answer.

you know the standdart config

controller E1 0/0/0

pri-group timeslots 1-31

dont you think that i will need soemthing like that below ? or the telco will group timeslots

can i divide this E1 like

pri-group timeslots 1-15

pri-group timeslots 17-31

and for first group main number is 5550050

for second group main number is 5550100

can u send me example config pls

thanks a lot

Paolo Bevilacqua Thu, 05/03/2007 - 03:58

No the telco will not divide the PRI and you cannot split the controller in two. That part is not changed.

All the routing decision happens with dial-peer, and called number as I mentioned above. If you tell us how you are are connecting to other devices, one can make configuration examples.

As a courtesy to those providing answers, please rate all useful posts using the scrollbox below!

senolgokhan Thu, 05/03/2007 - 23:59 is here

sideA has the pri line which will receive the calls and according the called number it will route the call to the IVR in sideB. in IVR system there will be 2 different recorded message (recorded1 and recorded2)which will answer the calls.

sideA will route the call to recorded1 if the incoming number is xxxx

and again sideA will route the call to the recorded2 if the incoming number is yyyy

side A

3825 router and E1 card


3845 router

IVR system

side A and side B connect via MPLS by one ISP

side A pri line is connected with trunk config to the ivr system.

if it is not enough pls let me know.

side A


controller E1 0/1/0

framing NO-CRC4

pri-group timeslots 1-31

voice-port 0/1/0:15

connection trunk 9998


voice-port 0/1/1:15


dial-peer voice 401 voip

destination-pattern 9998

session target ipv4:

side B

dial-peer voice 2 pots

destination-pattern 9998


port 0/1/0:15

forward-digits all

controller E1 0/1/0

framing NO-CRC4

pri-group timeslots 1-31

Paolo Bevilacqua Fri, 05/04/2007 - 00:27


It seems to me that is SideB than has two messages, correct ? Are these AA-BACD scripts ? Side does not route to different systems, it always route to SideB, correct ?

SIdeB should configured as:

dial-peer voice 2 voip

incoming called-number 9998


And then the messages and scripts as necessary.

senolgokhan Fri, 05/04/2007 - 00:59

yes sideB has 2 messages in the same ivr system

ivr system is not cisco so cant support script.

and sideA always will route to sideB ivr system but according to called numbers , different messages should be played

all i need is this system runs with this design? what must i do in the router? if all will be done in ivr system then i will talk to the person who gives ivr support.

Paolo Bevilacqua Fri, 05/04/2007 - 01:10

Hi, I'm a little confused.

Is sideB a cisco router? Previously you have indicated that it is. Is the ivr system connected to sideB ? if yes, how ?

The routers can do many things, change numbers, route to different systems, do IVR internally, just tell us what you want to do exactly with a diagram, and chances are it can be done.

senolgokhan Fri, 05/04/2007 - 02:14

yes .ok let me explain then.

sideB is 3845 router.

and it has connection with ivr system via E1 card. ivr system also has a isdn card.

sideB config


controller E1 0/1/0

description connection to ivr system

framing NO-CRC4

pri-group timeslots 1-31

dial-peer voice 2 pots

destination-pattern 9998


port 0/1/0:15

forward-digits all

yes i know routers can do lots of thing. But the problem is that i wanna create 2 ranges in my pri range.i have already range 100 DID under the main number which telco gave me in sideA. and ppl calling this main number from pstn can access my ivr system. it already works.

but now i wanna use 2 messages in my ivr system. and insted of 100 DID under one main number i wanna use 2 main numbers each has 50 DID.(same pri in sideA)

so all calls will be routed again ivr system in sideA but for main numberA messageA will be played and for other main numberB the messageB will be played in the same ivr system

hope this will be helpful

thanks again

Paolo Bevilacqua Fri, 05/04/2007 - 03:50


thus is very simple. On sideA and B you must not use connection-trunk. side B will receive the number unchanged and pass so to ivr via E1 PRI.

This is the destination-pattern in DP2 pots:


you make a DP voip on sideA, same destinatio-pattern.

and then you are forwarding all digits that will be received unchanged by the ivr. The ivr will decide which answer to give. If you want to change the number before giving to ivr, that's also possible, but I do not think is necessary.

When you use connection trunk the number called is replace by the trunk destination instead you want to pas it trasparently to present to ivr.

Hope is clear, do not forget to rate all useful posts!

senolgokhan Fri, 05/04/2007 - 04:29

ok i will not use trunk config

sideA config will be like that below.

but what about time slots. Main problem is it.

31 timeslots for my main pri number which is 5555500.

but now i wanna have 15 timeslots for 5555000

and 15 timeslots for 5555050

this is the question. ok i can write dial-peers easily. but if i cant assing 15 timeslots then if some1 calls 5555050 then line gives busy signal for the 2nd calls an after.

dial-peer voice 401 voip

description to sideB ivr message1

destination-pattern 5500

session target ipv4:

dial-peer voice 401 voip

description to sideB ivr message2

destination-pattern 5550

session target ipv4:

Paolo Bevilacqua Fri, 05/04/2007 - 04:40

Hi, so what you want is limiting channels per called-number, just configure "max-conn 15" under your DP 401 (and 402).

Note you will also need an incoming dial peer to apply direct-inward-dial, please configure

dial-peer voice 400 pots

incoming called-number 5... <--- put as many DID digits is telco sending, or full number.


You can also apply the "max-conn" at incoming DP if you configure with a correct "incoming called-number", to match the number you want to limit.

Hope this helps, please rate all useful posts using the scrollbox below!


This Discussion