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.
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.