[S]TDM400P outbound calls allows just one calls at a time

[SOLVED] Hi Averyone

I use Trixbox 1.2.3 with Digium TDM400P (4 FXO modules) I have 2 POTs lines connected. In my ZAP trunk set up I put “2” in “Maximum channels” and when ONE line is occuped i have the message " All circuit are busy now" but from the outside i can receive 2 calls , 1 on each line. From the inside (outbound call) 1 can use only one channel.

Somebody cans help me?

Thank’s

Nick

i think you want to put your two zap channels into groups and dial the zaptel group instead of the zaptel channel itself…

Sorry but i dont understand, The group is for inbound calls… to ring a group of extensions. No?

I just want to make a call while a other person is on the phone. The very basic thing… I have two lines and i suppose to be able to make 2 calls at a time.

I’m sorry i’m not a king of asterisk (I use Trixbox) and my english is not to good, But i realy appreciate your help.

Can you tell me more please.

you’ll need to post your zapata.conf and zaptel.conf files. and include all the additional files that freepbx/tb links to in them.

What i noticed about trixbox which is funky. this worked for me before in
your outbound routes instead of just selecting G0 to out
add zap 1
zap 2
zap 3
and zap 4

so have five options under the outbound box

Thats how i usually got it to work.

Here my files . Thank you so much for help!
P.S. My zapata_additional.conf is empty

zapata.conf
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=fr
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-auto.conf

group=1

;Include AMP configs
#include zapata_additional.conf

zaptel.conf

Autogenerated by /usr/local/sbin/genzaptelconf – do not hand edit

Zaptel Configuration File

This file is parsed by the Zaptel Configurator, ztcfg

It must be in the module loading order

Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1”

fxsks=1
fxsks=2
fxsks=3
fxsks=4

Span 2: ZTDUMMY/1 “ZTDUMMY/1 1”

Global data

loadzone = us
defaultzone = us

[quote=“jbrock”]What i noticed about trixbox which is funky. this worked for me before in
your outbound routes instead of just selecting G0 to out
add zap 1
zap 2
zap 3
and zap 4

so have five options under the outbound box

Thats how i usually got it to work.[/quote]

Thank’s jbrock but do you meen that I must create 4 (ou 5 ) ZAP trunk ? What do you meen about : selecting G0 to out

[quote]zapata.conf
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=fr
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-auto.conf

group=1

;Include AMP configs
#include zapata_additional.conf

zaptel.conf

Autogenerated by /usr/local/sbin/genzaptelconf – do not hand edit

Zaptel Configuration File

This file is parsed by the Zaptel Configurator, ztcfg

It must be in the module loading order

Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1”

fxsks=1
fxsks=2
fxsks=3
fxsks=4

Span 2: ZTDUMMY/1 “ZTDUMMY/1 1”

Global data

loadzone = us
defaultzone = us[/quote]

Hi nickreadman

from your config above, I didn’t see any line that says channel = ? . I hope this is not a mistake. If it is, please correct it by adding your channel numbers (e.g channel=1-4 as the case may be) before you go further.

Cheers.

If you haven’t already, from the Linux CLI as root, type:

genzaptelconfig

This should create the ZAP config files.

Next, under Trunks, you need to make sure you have all 4 trunks listed. (Change g0 to just 0 if you like). Then, add 3 additional ZAP trunks 1, 2, and 3. Set the maximum channels to 4.

Now, under outbound routing, delete the default route and create a new route (for example, ALL). In this route, set the “Trunk Sequence” to all four of the trunks you created earlier.

This is the only way we were able to get our Digium TDM400P to dial out on all of our 2 channels. I just finished building a new system with the same hardware on 1.2.3 and this configuration worked perfect.

zapata.conf
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

channel=4
language=fr
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-auto.conf

group=1

;Include AMP configs
#include zapata_additional.conf

zaptel.conf

Autogenerated by /usr/local/sbin/genzaptelconf – do not hand edit

Zaptel Configuration File

This file is parsed by the Zaptel Configurator, ztcfg

It must be in the module loading order

Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1”

fxsks=1
fxsks=2
fxsks=3
fxsks=4

Span 2: ZTDUMMY/1 “ZTDUMMY/1 1”

Global data

loadzone = us
defaultzone = us

Hi nickreadman

[quote=“kayodea”]from your config above, I didn’t see any line that says channel = ? . I hope this is not a mistake. If it is, please correct it by adding your channel numbers (e.g channel=1-4 as the case may be) before you go further.

Cheers.[/quote]

Like that (above)? Under [Channels] in the zapata.conf?

I type : zap show channels :

asterisk1CLI> zap show channels
Chan Extension Context Language MusicOnHold
pseudo from-zaptel fr
1 from-zaptel fr
2 from-zaptel fr
3 from-zaptel fr
4 from-zaptel fr
asterisk1
CLI>

Maybe it can help you to help me :smile:

Thanks to try ro help me izawacki!

[quote=“jzawacki”]If you haven’t already, from the Linux CLI as root, type:

genzaptelconfig

This should create the ZAP config files.

Next, under Trunks, you need to make sure you have all 4 trunks listed. (Change g0 to just 0 if you like). Then, add 3 additional ZAP trunks 1, 2, and 3. Set the maximum channels to 4.

Now, under outbound routing, delete the default route and create a new route (for example, ALL). In this route, set the “Trunk Sequence” to all four of the trunks you created earlier.

This is the only way we were able to get our Digium TDM400P to dial out on all of our 2 channels. I just finished building a new system with the same hardware on 1.2.3 and this configuration worked perfect.[/quote]

Do you mean to create 4 ZAP trunk (one par channel) AND put 4 on max. channels on each of them? I try that to night!

I feed back you tomorrow. Thank’s

Yes, that is correct, or at least how I have it setup in mine. I actually called the trunks 3 and 4 (because module 3 and 4 are installed on the TDM400P), so I have 2 trunks listed like this:

Trunk ZAP/3
Trunk ZAP/4

Each have the the Maximum channels set to 2.

Is this the proper way? I doubt it, but it works.

odd, i’d have thought that you should have N trunks, each with a max call count of 1, no?

Great! izawacki. It works!!! Like you said , I don’t thing either that is the right way but… the result before the way :wink: Imagine with a 23 channels T1…

Maybe IronHelix or baconbuttie can tell us more about the “proper way”

I what to thank’s you all for your help! What a great product : Trixbox!

Nick
Québec, Canada.

you post the concatenated zapata.conf and i’ll have a look. there’s no need to create individual trunks for every channel you have, just assign them to a group, set the order and dial. imagine if you have a quad-span E1 card and you had to add 120 trunks just so it could roll-over on busy !!

baconbuttie is right :smiley:

To give you an Example, but may not really be right for your situation, have a look at the way My Zaptel and Zapata is set out, keep in mind though that with Sangoma cards you run a Wizard that guides you through the setup, but i stress you will need to edit the conf files after though as some default settings may cause problems with your carrier and their network settings.

Zaptel Conf File:

loadzone=sg #Change this to fr as per your settings
defaultzone=sg #Change this to fr as per your settings

#Sangoma A104 port 1 [slot:8 bus:2 span: 1]
span=1,1,0,ccs,hdb3,crc4
bchan=1-15,17-31
dchan=16

#Sangoma A104 port 2 [slot:8 bus:2 span: 2]
span=2,0,0,ccs,hdb3,crc4
bchan=32-46,48-62
dchan=47

#Sangoma A104 port 3 [slot:8 bus:2 span: 3]
span=3,0,0,ccs,hdb3,crc4
bchan=63-77,79-93
dchan=78

#Sangoma A104 port 4 [slot:8 bus:2 span: 4]
span=4,0,0,ccs,hdb3,crc4
bchan=94-108,110-124
dchan=109

Zapata Conf File:

[trunkgroups]

[channels]
context=default
resetinterval=1800
usecallerid=yes
hidecallerid=no
callwaiting=no
usecallingpres=yes
callwaitingcallerid=no
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
progzone=sg #Change this to fr as per your settings
group=1
callgroup=1
pickupgroup=1

relaxdtmf=yes

immediate=no

;Sangoma A104 port 1 [slot:8 bus:2 span: 1]
switchtype=euroisdn
context=zap-incoming
signalling=pri_cpe
channel => 1-15,17-31

;Sangoma A104 port 2 [slot:8 bus:2 span: 2]
channel => 32-46,48-62

;Sangoma A104 port 3 [slot:8 bus:2 span: 3]
channel => 63-77,79-93

;Sangoma A104 port 4 [slot:8 bus:2 span: 4]
channel => 94-108,110-124

As i said, may not be the best suited way for your situation but you can use it as a rough guide.

Cheers,

David.

Yeah, but for some reason, it doesn’t work that way.

Remember, we are talking about Trixbox and using a web GUI (FreePBX) to configure it, so who really knows what is going on in the background. Also, if you manually change .conf files, the GUI might change them back, so you need to make sure if that is the case that you “hack” the GUI as well.

i didn’t mean hacking files manually - the trunk screen in freepbx allows specifying how many calls to allow (e.g. maximum channels).

Sorry, I do this from time to time… I agree with you, and you’d think it would work that way, but it doesn’t. If you leave it as just 1, you will get “all circuits are busy” messages once you use the first trunk, even if they are listed in order for the outbound routing. This is just what we had to do to get it working properly. And to tell you the truth, I think it was just with later A@H (like 2.6+) and Trixbox because I don’t remember doing it with 2.5, which was the most stable version of A@H (IMHO) of any of them.

The rest of my comments were toward everyone else talking about posting the .conf files.