Now i have no active calls, but in console i see this:
localhost*CLI> show channels
Channel Location State Application(Data)
SIP/303-082a1e30 (None) Up Bridged Call(SIP/215-b7079ad0)
1 active channel
12 active calls
Why channels are hanging up?
localhost*CLI> zap show channels
Chan Extension Context Language MusicOnHold
pseudo from-pstn en
1 from-pstn en
2 from-pstn en
3 from-pstn en
4 from-pstn en
5 from-pstn en
6 7574200 from-pstn en
7 from-pstn en
8 from-pstn en
9 7574200 from-pstn en
10 from-pstn en
11 from-pstn en
12 from-pstn en
13 1853211 from-pstn en
14 from-pstn en
15 7574200 from-pstn en
17 7574200 from-pstn en
18 7574200 from-pstn en
19 7574200 from-pstn en
20 from-pstn en
21 from-pstn en
22 7574206 from-pstn en
23 7574200 from-pstn en
24 7574200 from-pstn en
25 7574200 from-pstn en
26 from-pstn en
27 7574200 from-pstn en
28 from-pstn en
29 from-pstn en
30 from-pstn en
31 from-pstn en
How to clear active zaptel channels?
localhost*CLI> soft hangup SIP/303-082a1e30
Requested Hangup on channel 'SIP/303-082a1e30'
localhost*CLI> show channels
Channel Location State Application(Data)
SIP/303-082a1e30 (None) Up Bridged Call(SIP/215-b7079ad0)
1 active channel
12 active calls
When all the channels hangs up we unable to make any inside/outside calls.
I am using asterisk 1.2.15 and zaptel 1.2.13 with Tormenta 2 E400P interface card + freepbx 2.2.0.
System gentoo linux:
localhost ~ # uname -a
Linux localhost 2.6.18.5-vs2.2.0-pre5 #7 SMP Mon Jan 22 10:43:21 MSK 2007 i686 AMD Opteron(tm) Processor 246 AuthenticAMD GNU/Linux
Context:
[from-internal]
include => parkedcalls
include => from-internal-custom
include => ext-fax
include => from-internal-additional
include => ext-local-confirm
exten => s,1,Macro(hangupcall)
exten => h,1,Macro(hangupcall)
Macro:
[macro-hangupcall]
exten => s,1,ResetCDR(w)
exten => s,n,NoCDR()
; Cleanup any remaining RG flag
;
exten => s,n,GotoIf($[ "foo${USE_CONFIRMATION}" = "foo" | "foo${RINGGROUP_INDEX}" = "foo" | "${CHANNEL}" != "${UNIQCHAN}"]?skiprg)
exten => s,n,Noop(Cleaning Up Confirmation Flag: RG/${RINGGROUP_INDEX}/${CHANNEL})
exten => s,n,DBDel(RG/${RINGGROUP_INDEX}/${CHANNEL})
; Cleanup any remaining BLKVM flag
;
exten => s,n(skiprg),GotoIf($[ "foo${BLKVM_BASE}" = "foo" | "BLKVM/${BLKVM_BASE}/${CHANNEL}" != "${BLKVM_OVERRIDE}" ]?theend)
exten => s,n,Noop(Cleaning Up Block VM Flag: ${BLKVM_OVERRIDE})
exten => s,n,DBDel(${BLKVM_OVERRIDE})
exten => s,n(theend),Wait(3)
exten => s,n,Hangup
zapata.conf:
[channels]
language=en
overlapdial=yes
usecallerid=yes
hidecallerid=no
callwaiting=no
restrictcid=no
usecallingpres=yes
callwaitingcallerid=no
threewaycalling=no
transfer=yes
cancallforward=no
callreturn=no
echocancel=128
echocancelwhenbridged=128
echotraining=yes
relaxdtmf=no
rxgain=0.0
txgain=0.0
immediate=no
callerid=asreceived
amaflags=billing
busydetect=no
callprogress=yes
progzone=fi
faxdetect=both
jitterbuffers=4
priindication=outofband
facilityenable=yes
resetinterval=3600
toneduration=100
group=1
context=from-pstn
;pridialplan=international
;switchtype=euroisdn
signalling=pri_cpe
channel=>1-15,17-31
context:
[from-pstn]
include => from-pstn-custom ; create this context in extensions_custom.conf to include customizations
include => ext-did-direct ; MODIFICATOIN (PL) put before ext-did to take precedence
include => ext-did
include => from-did-direct ; MODIFICATOIN (PL) for findmefollow if enabled, should be bofore ext-local
exten => fax,1,Goto(ext-fax,in_fax,1)
Any ideas?