Asterisk outgoing calls to PSTN

hi folks, in the company I work for we have an Asterisk with an E1 card and 30 digital channels, which are used to make / receive calls to / from outside. So far so good. The Server has 8 FXO ports (2 PCI cards with 4 ports each) and we are planning to hire 6 analog lines (for the FXO ports) to use them just for the outgoing calls to PSTN, the incoming calls we need to keep coming through E1 card…is it possible what I want to do??? can somebody help me please???
Thanks in advance. BR.

From the point of view of Asterisk it is possible, but using analogue for outgoing, if you have digital, is not a good idea, as the lack of supervision signalling on analogue will bite you more on outgoing.

Whether that combination of boards is possible is a question for the vendors.

I agree with you david, but like I said is for the Company I work for and they want to give it a try to see what…
About the hardware, the FXO cards have been installed in the Asterisk for a long time and in some point we used 1 analog line, in fact the line is still connected. The configuration for that line is as follow:

in dialplan (exten_aditional.conf):

[linethree]
;extension duranguenio
exten => s,1,Dial(SIP/2001,60,tT)
exten => s,n,Hangup()

[duran]
exten => _.,1,Dial(DAHDI/34/${EXTEN},60,tT)
exten => _.,n,Hangup()

and:

dahdi-channels.conf:

;;; line="34 WCTDM/0/2 FXSKS (EC: VPMOCT032 - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=40
context=linethree
channel => 34
callerid=

chan_dahdi.conf:

group=40
signalling=fxs_ks
callwaiting=no
context=linethree
channel => 34

and like I said that configuration is for only 1 SIP extension using only 1 analog line. For all other extensions I have:

[bestel]
exten => _X.,n,Goto(menu_principal,s,1)
; among a lot of other lines

and:

exten => _9[1248]XXXXXX,1,Dial(DAHDI/g11/${EXTEN:1},50)
exten => _9[1248]XXXXXX,n,Hangup()
exten => _904[45]XXXXXXXXXX,1,Dial(DAHDI/g11/${EXTEN:1},50)
exten => _904[45]XXXXXXXXXX,n,Hangup()
exten => _901XXXXXXXXXX,1,Dial(DAHDI/g11/${EXTEN},50)
exten => _901XXXXXXXXXX,n,Hangup()

and beisdes:

dahdi-channels.conf:

; Span 1: WCT1/0 "Wildcard TE121 Card 0"
group=0,11
context=bestel
switchtype = euroisdn
signalling = mfcr2
channel => 1-15,17-31

chan_dahdi.conf:

[channels]
usecallerid=yes
context=bestel
group=11
echocancel=yes
signalling=mfcr2
mfcr2_variant=mx
mfcr2_max_ani=10
mfcr2_max_dnis=4
mfcr2_category=national_subscriber
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
channel=>1-15,17-3

So far so good…

What I need is to use all the 6 analog lines for all outgoing calls to PSTN and if 1 of them is in use then use the next one and so on. The problem is that I don’t know how to do that. Can anybody help me please?? Thanks in advance.

PS: I don’t know if I made myself clear. Sorry for my English

I believe you define a group and use dahdi/g

1 Like

ok, by define a group you mean make the 6 FXOs part of the same group, right??

Yes they all should be part of same group