help with Digium TDM410p and multiple FXO

ccrum
Posts: 7
Member Since:
2007-03-22

I've got a Trixbox setup and working with all IP based calling. I just bought a Digium TDM410P with 2 FXO ports. I want to route my outbound calls through these two analog lines and failover to the IP terminations. I followed the steps in Trixbox without tears and got the Digium card set up, recognized, and can even make calls with the ports...sort of. Here is the problem. I have two analog lines so I have set up two Trunks ZAP/g0 and Zap/2. In my outbound routes, I can make calls on both lines, but only if I only have one in the trunk sequence. If I put both lines in the trunk sequence, the first outbound call I make works, but a 2nd simultaneous call fails with "Call cannot be completed as dialed," almost like I took the phone off the hook and never dialed a number (it takes about 20 seconds to get the recording). If I switch the order, I get the same result. However, putting only one Zap line in the Trunk Sequence along with my IP Trunk, I can make as many simultaneous calls as I want. So, the quetion is, what do I need to do to route calls through both analog lines simultaneously? Here are my conf files:

zapata.conf

;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=en
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

____________________________________
and zapata-auto.conf

; Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;

; Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
;;; line="1 WCTDM/0/0"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
context=default

;;; line="2 WCTDM/0/1"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
context=default

Thanks,

Cameron



jingxi02
Posts: 74
Member Since:
2007-05-19
Remove Zap/g2

You only need to have Zap/g0 and your Voip trunk in the outbound Sequence. "g0" is refering to Group=0 in your zapata-auto.conf file. Because both of your FXO ports are belong to Group0, Zap/g0 will handle both ports for your outgoing calls. When both ports in Group0 are busy, it will roll to the next trunk. if you have Zap/g2 as the second trunk, the system will not able to find the Grouup2 anywhere in the zapata-auto.conf and it will give you circuit busy signal.



ccrum
Posts: 7
Member Since:
2007-03-22
So should I set g0 to have 2

So should I set g0 to have 2 channels in the trunk? Right now I only have it set to 1.



ccrum
Posts: 7
Member Since:
2007-03-22
OK, I changed my g0 to 2

OK, I changed my g0 to 2 channels, and removed g2. Now calls go out, but I get the telco recording every time. Sometimes it says I need to dial a 1 or 0 before the number and sometimes it says "call can't be completed as dialed". It worked before I made the change...any ideas on why it isn't dialing correctly with this config?



SkykingOH
Posts: 2597
Member Since:
2007-12-17
Dialplan perhaps? Bring up

Dialplan perhaps?

Bring up the asterisk CLI with asterisk -rvvvvvvv

Watch the exact number that is sent out the zap channel.

I am assuming you are getting a telco intercept and not the asterisk recording.

Scott

--

Scott

aka "Skyking"



ccrum
Posts: 7
Member Since:
2007-03-22
OK...figured it out. It

OK...figured it out. It turns out that one of the lines did not have long distance on it. What a PITA to track down. Sometimes calls would work (local) and some wouldn't ...accross town, but telco still wants me to dial 1 first. Go figure. Thanks for the help.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.