DID routing from PRI to extensions without individual inbound route

pinto2020

New Member
Joined
Aug 25, 2016
Messages
7
Reaction score
5
I know how to setup inbound route for individual extension and DID. Need help setting up a bunch of DIDs that will point to matching extensions without me having to create these routes. Here is the scenario:

I have Asterisk 13 with a SIP trunk to a voice gateway that has 8 PRIs connected.
My Telecom sends me 5 digits for the DID numbers.
In Asterisk I have extensions built as 5 digit as well. (ext. 74000-75000)
I have 300 DIDs pointed to these PRIs and they are 74000-74299.

So idea is that 74000-74299 would be my DID extensions and rest would be NON-DID extensions. So somehow I need to tell Asterisk that if the inbound DID is 74000, ring extension 74000, if DID is 74212, ring ext 74212 etc. without having to create individual 300 inbound route. Basically I need Asterisk to see the DID and send the call to matching extension.

If anyone know how to do that and can point me in the right direction, it would be greatly appreciated.
 

dicko

Still learning but earning
Joined
Oct 30, 2015
Messages
1,634
Reaction score
846
That's what the context

[from-did-direct]

in /etc/asterisk/extensions.conf
is for just send your pri calls to that context.
 

Members online

Forum statistics

Threads
25,821
Messages
167,814
Members
19,247
Latest member
mdauck
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top