Zap/Sip/IAX confusion


#1

I have two trunks, a PSTN (zap) and an IAX (voipjet) and two phones, a analog (zap) and a wifi (sip). If I make a single connection with either phone thru either trunk, everything works great. If I make simultaneous calls with the sip phone calling thru the IAX trunk and zap (fxs) phone calling thru the zap (fxo) trunk, everything works great. BUT if i make simultaneous calls with the sip phone calling thru the zap trunk and the zap phone calling thru the IAX truck, then if I hang up the zap phone and thereby disconnect the zap to IAX call it also disconnects the sip to zap call. It’s like both channels of the digium card are connected so if I hang up the fxs channel the fxo channel is disconnected as well. What am I missing? Thanks.


#2

Well that sounds like a good one :frowning: maybe post the relevant part of the dial plan and the zapata file for folks to look at


#3

zaptel.conf:

loadzone = us
defaultzone=us
fxoks=1
fxsks=2


zapata.conf:
[trunkgroups]

[channels]
usecallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=no
transfer=yes
echocancel=yes
echotraining=yes
immediate=no
mailbox=1@other

switchtype=national
rxwink=300
callreturn=no
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
busydetect=yes
busycount=3
busypattern=500,500
answeronpolarityswitch=yes
hanguponpolarityswitch=yes
jitterbuffers=4

;define channels
context=internal
signalling=fxo_ks
channel => 1

context=incoming
signalling=fxs_ks
channel => 2


extensions.conf:

[internal]
exten => 13,1,Dial(${OUTBOUNDLANDLINE}/4522742)
exten => 13,2,Hangup()
exten => 13,102,Hangup()
exten => 14,1,Dial(${OUTBOUNDVOIPJET}/13144522742)
exten => 14,2,Hangup()
exten => 14,102,Hangup()


#4

Stab in the dark here but try commenting out this lines

;answeronpolarityswitch=yes
;hanguponpolarityswitch=yes