Help - PRI Dial Plan


I want to install a PRI card which all the channels will be used to accept calls.
I want to assign to each channel a phone number that it is going to be routed to a particular sip user. How can I do it?These 30 channels of the card will be assigned to 30 sip users.
Can you help me?

Thanks a lot!

you need to purchase additional “DID” numbers from your telco provider.
I DID number is like a telephone number. Fr example
say you get a PRI and you buy 40 DID numbers, you will reference these DID number in regards to the digits delivered in your extensions.conf… better yet… let me give you an example.

For example, let’s say your PRI is under the context "MYPRI"
and your carrier delivers 4 digits and provides you the DID numbers
(111) 222-0000 - (111) 222-0040

your extensions.conf would look something like this


exten => 0000,1,Dial(SIP/user1)
exten => 0000,1,Dial(SIP,user2)
exten => 0000,1,Dial(SIP/user3)
exten => 0040,1,Dial(SIP,user40)

hope that helps.

whoops… I forget to change the extensions/DID numbers…
should read somethign like this


exten => 0000,1,Dial(SIP/user1)
exten => 0001,1,Dial(SIP,user2)
exten => 0002,1,Dial(SIP/user3)
exten => 0039,1,Dial(SIP,user40)

Hello brzezicki,

thanks a lot for your replies! :smile:
I want to use a Digium TE110P E1 card.
I read here,, that now instead of 4 digits we use 10 digits for DIDs, so I have to put the whole number.

I want to ask something additional. I have a TDM card with 1 FXO channel for incoming calls. The number for this is (210)XXXXXXX [also10 digits].

In the zapata.conf I put the context incoming1. In the extensions.conf I route the call to a particular sip user. If I use the “s” extension, then the call is made successfully, if I put instead of “s” extensions the number “210XXXXXXX”,then I have the next error:

*CLI> – Starting simple switch on ‘Zap/2-1’
== Starting Zap/2-1 at incoming1,s,1 failed so falling back to exten ‘s’
== Starting Zap/2-1 at incoming1,s,1 still failed so falling back to context 'default’
May 7 12:12:00 WARNING[7731]: pbx.c:2377 __ast_pbx_run: Channel ‘Zap/2-1’ sent into invalid extension ‘s’ in context ‘default’, but no invalid handler
– Hungup ‘Zap/2-1’

There is no way not to use the “s” extension?, but the actual number??

I’m experiencing the same issue. I’ve got a T1 Line Card (Sangoma) connected to a PBX. When the pbx opens a channel to call, they keep going to the S extension, rather than the my dial plan. :angry:

hi kritikia,

in regards to the FXO card, yes the incoming call should use the “s” extension. I’m not a telco expert by any means, but I dont’ believe on normal POTS telephone line that any “DID” type information is sent since it’s a single channel line, there’s no reason to (at least in the old days)

now however many telco companies do offer distinctive dial which has a similar effect of letting multiple “phone numbers” ring on a single line by using a different tone to ring, as such you can key on ring tones that to determine what number has been called. I’m thinking that the whole “distinctive ring” was probably a hack by the telco’s to add this type of multi-number feature to a system that normally wouldn’t support it :wink: like I said though I’m not from the telco side of things so I’m not sure of the history of distinctive ring and why it came about.

anyway, I could be wrong, perhaps there is some signalling over the normal lines that you can read, but I’ve always used the “s” extension for regulars POTS lines.