Helllo, i have a PRI E1 with 30 channels with one numerve that use as main numer, and 1 hundrend DIDs that are contiguos, our telco calls this GNR, not sure this is a common term.
In the past with my very old freepbx i was able to forward calls coming from GNR DIDs directly to extensions.
When i upgraded to version 14 i’m not able anymore to receive dids, i only receive an “s” and all calls are forwared to ivr.
anyone that have an advice?
No, the context of the PRI trunk, not the routing if the DID, there is one called [from-did-direct] which is designed to do what I think you are trying to do.
Sorry I don’t use the GUI for DAHDI It should be in chan_dahdi.conf but editing it by hand is not for you . Maybe someone who does use the dahdi helper can help.
Create 100 inbound routes. A bit repetitive, but works.
If the extensions are contiguous and have some logic with the DID numbers, you can have only one inbound route. My extensions are 4-digit that match the last 4 of the DID.
This is an extract from extensions.conf ( which comes with raw asterisk and thus pre any FreePBX’ additional contexts)
;-------------------------------------------------------------------------------
; from-did-direct:
;
; forces ext-findmefollow to take precedence over ext-local. Also exposed to
; the public side to allow an extension number to be used as an external DID
; without requiring inbound routes to be created, common in many PRI installations
; where the last 4 digits are used as the extnension and DIDs are delivered in
; 4 digit formats.
;
[from-did-direct]
include => ext-findmefollow
include => ext-local
;-------------------------------------------------------------------------------
This maps, no matter what , any “DID/DDI” apparent from the carrier. Very often this is not a complete phone number but just the last ‘N’ LSD’s (least significant digits) of the complete Number as seen by the PSTN, traditionally 4 in the US, but often now electable by the purchaser.
There needs to be a direct mapping between the DID number as received from the PRI and an endpoint first found in :-
rasterisk -x 'dialplan show @ext-findmefollow'|grep "'[0-9]*'"
then
rasterisk -x ‘dialplan show @ext-local’|grep “‘[0-9]*’”
If there is no match it will return ‘s’ otherwise it will go to the endpoint matched, be it an extension an IVR a queue or whatever.
The only way to proceed is to find out what exactly the carrier is sending (and confirm that the call is actually entering the system via [from-did-direct] )