Multiple dahdi trunks

Hi all,
Need your advise in fixing my issue…
I have a freePBX server configured with 4 Port Digium E1 card. All the 4 ports are filled with 4 PRI lines from a telco with different numbers (Ex: 24242385, 24244385, 24245385, 24246385).
I have 4 inbound routes to handles the calls, will go to queues and to agents.
I have only one outbound route and all the calls are routed through that.
Now am looking individual outbound route for individual PRI (E1) line.
How could I achieve that
TIA
Bain

From /etc/asterisk/extensions.conf

;*******************************************************************************
; INTERNAL MACROS & SPECIAL 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
;-------------------------------------------------------------------------------

You can first strip all the common leading DID digits first if that suits.

Hi dicko,
Thanks for the quick reply. Didn’t understood what you want me to do with the context [from-did-direct].
Hope I didn’t asked my requirement clearly.
My requirement is I would like to do outbound calls from all the PRI 's (30lines per each PRI).
Also wanted to give users a choice, that from which PRI the call should go.
EX:
If I press 9 and dial the number, the call should go through 2 PRI
If I press 8 and dial the number, the call should go through 1 PRI
If I press 7 and dial the number, the call should go through 4 PRI
If I press 6 and dial the number, the call should go through 3 PRI
TIA

Put each pri in its own channel group and use the first digit to route outbound calls through the relevant group.

Lots of Google out there , first one up. .

Hi dicko,
The following is my dahdi_channels.conf

; Span 1: TE4/0/1 “T4XXP (PCI) Card 0 Span 1” (MASTER)
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context = default
group = 63

; Span 2: TE4/0/2 “T4XXP (PCI) Card 0 Span 2”
group=0,12
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 32-46,48-62
context = default
group = 63

; Span 3: TE4/0/3 “T4XXP (PCI) Card 0 Span 3”
group=0,13
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 63-77,79-93
context = default
group = 63

; Span 4: TE4/0/4 “T4XXP (PCI) Card 0 Span 4”
group=0,14
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 94-108,110-124
context = default
group = 63

What I understood, that I should change group = 63 to 61 for span1, group=63 to 71 for span2, like wise for the rest two.
and I should create an outbound route to use that line. But where should I mention in the outbound route?

First define current group, then assign channels to it, rinse and repeat

; Span 1: TE4/0/1 “T4XXP (PCI) Card 0 Span 1” (MASTER)
group=0
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context = default
:group = 63

; Span 2: TE4/0/2 “T4XXP (PCI) Card
group = 1
.
.
channel => 32-46,48-62

.
.
Etc.

Hi dicko,
are you sure that I should remove the trailing 11, 12, 13 and 14 in the group 0,11 in production box?
And what should I mention in outbound routes?
Would appreciate a step by step, as am noob here.

Bump.

Yes. Channels can be in 1 or more groups,
[GgRr][0123]
Gg is for hunting down or up, Rr is for Round Robin CCW or CW.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.