[Help] "Circuit-busy" problem


#1

Using Asterisk 1.2.7.1 (Asterisk@HOME 2.8), bristuff 0.3.0-PRE-1o and a Junghanns quadBRI ISDN card, I am trying to pass-through a call from Asterisk to PBX (and eventually to phone).

|ISDN NT| — |Asterisk@HOME| — |PBX| — |Phone|

When I dial, I keep getting the message:

Zap/7-1 is circuit-busy

Asterisk configuration is as follows:

/etc/zaptel.conf

defaultzone=gr

span=1,1,3,ccs,ami
bchan=1,2
dchan=3

span=3,0,3,ccs,ami
bchan=7,8
dchan=9

/etc/asterisk/zapata.conf

[channels]
switchtype = euroisdn

pridialplan = local
prilocaldialplan = local

echotraining=no
echocancel = yes
immediate=yes

signalling = bri_cpe_ptmp
context=isdn_in

group = 1
; S/T port 1
channel => 1-2

signalling = bri_cpe_ptmp
context=isdn_pbx

group = 3
; S/T port 3
channel => 7-8

/etc/asterisk/extensions.conf

[general]
static=yes
writeprotect=yes

[isdn_in]
exten => _.,1,Dial(Zap/g3/${EXTEN})

/var/log/asterisk/full

May 15 17:11:06 VERBOSE[4393] logger.c:     -- Going to extension s|1 because of immediate=yes
May 15 17:11:06 VERBOSE[4393] logger.c:     -- Accepting voice call from 'XXXXXXXXXX' to 's' on channel 0/1, span 1
May 15 17:11:06 DEBUG[4393] chan_zap.c: Enabled echo cancellation on channel 1
May 15 17:11:06 VERBOSE[4447] logger.c:     -- Executing Dial("Zap/1-1", "Zap/g3/s") in new stack
May 15 17:11:06 VERBOSE[4447] logger.c:     -- Requested transfer capability: 0x10 - 3K1AUDIO
May 15 17:11:06 VERBOSE[4447] logger.c:     -- Called g3/s
May 15 17:11:10 VERBOSE[4394] logger.c:     -- Channel 0/1, span 3 got hangup, cause 42
May 15 17:11:11 VERBOSE[4447] logger.c:     -- Zap/7-1 is circuit-busy
May 15 17:11:11 DEBUG[4447] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/7-1
May 15 17:11:11 DEBUG[4447] chan_zap.c: Hangup: channel: 7 index = 0, normal = 16, callwait = -1, thirdcall = -1
May 15 17:11:11 DEBUG[4447] chan_zap.c: Already hungup...  Calling hangup once, and clearing call
May 15 17:11:11 DEBUG[4447] chan_zap.c: disabled echo cancellation on channel 7
May 15 17:11:11 DEBUG[4447] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/7-1
May 15 17:11:11 DEBUG[4447] chan_zap.c: Updated conferencing on 7, with 0 conference users
May 15 17:11:11 DEBUG[4447] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/7-1
May 15 17:11:11 DEBUG[4447] chan_zap.c: disabled echo cancellation on channel 7
May 15 17:11:11 VERBOSE[4447] logger.c:     -- Hungup 'Zap/7-1'
May 15 17:11:11 VERBOSE[4447] logger.c:   == Everyone is busy/congested at this time (1:0/1/0)
May 15 17:11:11 DEBUG[4447] app_dial.c: Exiting with DIALSTATUS=CONGESTION.
May 15 17:11:18 VERBOSE[4393] logger.c:     -- Channel 0/1, span 1 got hangup, cause 31
May 15 17:11:18 VERBOSE[4447] logger.c:     -- Executing Dial("Zap/1-1", "Zap/g3/h") in new stack
May 15 17:11:18 VERBOSE[4447] logger.c:     -- Requested transfer capability: 0x10 - 3K1AUDIO
May 15 17:11:18 VERBOSE[4447] logger.c:     -- Called g3/h
May 15 17:11:18 DEBUG[4447] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/7-1
May 15 17:11:18 DEBUG[4447] chan_zap.c: Hangup: channel: 7 index = 0, normal = 16, callwait = -1, thirdcall = -1
May 15 17:11:18 DEBUG[4447] chan_zap.c: Not yet hungup...  Calling hangup once with icause, and clearing call
May 15 17:11:18 DEBUG[4447] chan_zap.c: disabled echo cancellation on channel 7
May 15 17:11:18 DEBUG[4447] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/7-1
May 15 17:11:18 DEBUG[4447] chan_zap.c: Updated conferencing on 7, with 0 conference users
May 15 17:11:18 DEBUG[4447] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/7-1
May 15 17:11:18 DEBUG[4447] chan_zap.c: disabled echo cancellation on channel 7
May 15 17:11:18 VERBOSE[4447] logger.c:     -- Hungup 'Zap/7-1'
May 15 17:11:18 DEBUG[4447] app_dial.c: Exiting with DIALSTATUS=CANCEL.
May 15 17:11:18 VERBOSE[4447] logger.c:   == Spawn extension (isdn_in, h, 1) exited non-zero on 'Zap/1-1'
May 15 17:11:18 DEBUG[4447] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/1-1
May 15 17:11:18 DEBUG[4447] chan_zap.c: Hangup: channel: 1 index = 0, normal = 14, callwait = -1, thirdcall = -1
May 15 17:11:18 DEBUG[4447] chan_zap.c: Already hungup...  Calling hangup once, and clearing call
May 15 17:11:18 DEBUG[4447] chan_zap.c: disabled echo cancellation on channel 1
May 15 17:11:18 DEBUG[4447] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1
May 15 17:11:18 DEBUG[4447] chan_zap.c: Updated conferencing on 1, with 0 conference users
May 15 17:11:18 DEBUG[4447] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/1-1
May 15 17:11:18 DEBUG[4447] chan_zap.c: disabled echo cancellation on channel 1
May 15 17:11:18 VERBOSE[4447] logger.c:     -- Hungup 'Zap/1-1'
May 15 17:11:30 WARNING[4394] chan_zap.c: Call specified, but not found?
May 15 17:11:48 WARNING[4394] chan_zap.c: Call specified, but not found?

From * CLI:

asterisk1*CLI>
    -- Going to extension s|1 because of immediate=yes
    -- Accepting voice call from 'XXXXXXXXXX' to 's' on channel 0/1, span 1
    -- Executing Dial("Zap/1-1", "Zap/g3/s") in new stack
    -- Requested transfer capability: 0x10 - 3K1AUDIO
    -- Called g3/s
    -- Channel 0/1, span 3 got hangup, cause 42
    -- Zap/7-1 is circuit-busy
    -- Hungup 'Zap/7-1'
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Channel 0/1, span 1 got hangup, cause 31
    -- Executing Dial("Zap/1-1", "Zap/g3/h") in new stack
    -- Requested transfer capability: 0x10 - 3K1AUDIO
    -- Called g3/h
    -- Hungup 'Zap/7-1'
  == Spawn extension (isdn_in, h, 1) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'
asterisk1*CLI> pri show span 1
Primary D-channel: 3
Status: Provisioned, Up, Active
Switchtype: EuroISDN
Type: CPE (PtMP)
Window Length: 0/7
Sentrej: 0
SolicitFbit: 0
Retrans: 0
Busy: 0
Overlap Dial: 0
T200 Timer: 1000
T203 Timer: 10000
T305 Timer: 30000
T308 Timer: 4000
T313 Timer: 4000
N200 Counter: 3

asterisk1*CLI> pri show span 3
Primary D-channel: 9
Status: Provisioned, Up, Active
Switchtype: EuroISDN
Type: CPE (PtMP)
Window Length: 0/7
Sentrej: 0
SolicitFbit: 0
Retrans: 0
Busy: 0
Overlap Dial: 0
T200 Timer: 1000
T203 Timer: 10000
T305 Timer: 30000
T308 Timer: 4000
T313 Timer: 4000
N200 Counter: 3

Any ideas what’s wrong?

Thanks for your time,

Michael


#2

Hy,

Which PBX are you connecting with? I assume the connection with the PBX is through T0?!

Regards.


#3

The PBX is an Auerswald COMpact 4410 USB. It is directly connected to Asterisk (quadBRI ISDN card).


#4

Have you tried to use immediate=no in /etc/asterisk/zapata.conf?

Regards,
Mircea.


#5

Yes, I tried that, no luck!