Hi Friends,
Distro: FreePBX 13 fresh ISO install, no customizations, Asterisk 13
I have configured a Sangoma Two port PRI Card and everything works fine.
Earlier, I have manually created extensions by editing core asterisk files two create trunks, route, even the Dahdi config etc.
I’m in a bit of a mess as I plan to achieve the same thing solely through the GUI.
Basically, I have PSTN(from provider) terminating on SPAN1 and a Legacy EPABX terminating on SPAN2.
This setup will allow the FreePBX to serve as a monitor with CDR, recording etc.
I have already managed to setup the PRI Card etc from the GUI (it was tough initially, lots of parameters to set) and I’v created to contexts and put each SPAN in a separate group.
Also, I’v created two corresponding TRUNKS but the problem I’m facing is how to manage the Routes. Also, there is an option of ascending or round-robin but if I prefer to map 1:1 , do I need to create each DID manually and map it?
If I’m creating a general Route or TRUNK, I need to put a DID, but I want the original numbers to go through without being changed.
Kindly give me a direction, much appreciated.
Never thought GUI would be so tough.
extensions.conf
[globals] TRUNKPRI=DAHDI/g0 ; TRUNKPBX=DAHDI/g1 ;
`[default] ; context for the asterisk sip extensions to dialout and reach the epabx extensions
; dialplan to dial the outside numbers (mobile or landline , prefix is 7 and number 10 digits)
exten => _7XXXXXX.,1,Dial(${TRUNKPRI}/${EXTEN:1},tTo)
exten => _7XXXXXX.,2,Hangup()
; dialplan to dial the epabx extensions - in my case epabx extensions is 3 digits (300 to 399)
exten => _3XX,1,Dial(${TRUNKPBX}/${EXTEN},TtoR)
exten => _3XX,2,Hangup()
[from-pstn] ; context to receive inbound calls from the provider ie:port1 of T1 card
; dialplan to route the inbound calls from provider
; I get sent last 3 digits from my DID like: the DID is 3003300 so I’m sent 300 , 301 …
exten => _XXX,1,Dial(SIP/${EXTEN}) ; rings asterisk sip extension which matches the 3 Digits.
exten => _XXX,2,Hangup()
exten => _XXX,1,Dial(${TRUNKPBX}/${EXTEN},TtoR)
exten => _XXX,2,Hangup()`
And a similar context for [from epbx]