Max channels used up but asterisk sez none used

This particular Trixbox pbx had been working without issues for months, but now…

Internal calls are working as are incoming calls from my SIP trunk, but all external calls result it “All circuits busy”. Reviewing the log file I see that “max channels used up”, but according to the asterisk cli, I see that my registration and peers are ok and no core channels are being used, but a sip channels is in use to my provider which has a "Owner Channel ID: .

I’m not sure if this channel should be active, but given no channel ID, I can’t figure out how to do a ‘soft hangup’.

I’ve rebooted the system with no effect.

‘x’ in logs and output mask sensitive info which was correct in all cases.

Gotta admit I’m rather confused here…

Asterisk 1.4.21.2-2
Trixbox 2.6.1.13

From the asterisk cli;

sip show registry
Host Username Refresh State Reg.Time
inbound4.vitelity.net:5060 lkhxxxxxx 45 Registered Sat, 10 Apr 2010 13:12:08

sip show peers
Name/username Host Dyn Nat ACL Port Status
vitel-outbound/lkholzbaue 64.2.142.17 N 5060 Unmonitored
vitel-inbound/lkholzbauer 64.2.142.30 N 5060 Unmonitored
210/210 10.xxx.xxx.xxx D N 5060 OK (16 ms)
201/201 10.xxx.xxx.xxx D N 5060 OK (27 ms)
200/200 10.xxx.xxx.xxx D N 5060 OK (29 ms)
5 sip peers [Monitored: 3 online, 0 offline Unmonitored: 2 online, 0 offline]

core show channels
Channel Location State Application(Data)
0 active channels
0 active calls

sip show channels
Peer User/ANR Call ID Seq (Tx/Rx) Format Hold Last Message
64.2.142.30 lkhxxxxxxe 018f3f63687 00187/00000 0x0 (nothing) No
1 active SIP channel

sip show channel 018f3f63687

  • SIP Call>
    Curr. trans. direction: Outgoing
    Call-ID: [email protected]
    Owner channel ID:
    Our Codec Capability: 12
    Non-Codec Capability (DTMF): 1
    Their Codec Capability: 0
    Joint Codec Capability: 0
    Format: 0x0 (nothing)
    MaxCallBR: 0 kbps
    Theoretical Address: 64.2.142.30:5060
    Received Address: 64.2.142.30:5060
    SIP Transfer mode: open
    NAT Support: Always
    Audio IP: 76.xxx.xxx.xxx (local)
    Our Tag: as164fc6c7
    Their Tag: as7b6d81e3
    SIP User agent: Asterisk PBX
    Username: lkholzbauer
    Peername: lkholzbauer
    Original uri: sip:[email protected]
    Need Destroy: 0
    Last Message:
    Promiscuous Redir: No
    Route: N/A
    DTMF Mode: rfc2833
    SIP Options: (none)

Log file segment showing channels used up.

[Apr 10 13:15:08] VERBOSE[2746] logger.c: – Executing [[email protected]:29] NoOp(“SIP/200-0a0429c8”, “max channels used up”) in new stack
[Apr 10 13:15:08] DEBUG[2746] app_macro.c: Executed application: Noop
[Apr 10 13:15:08] VERBOSE[2746] logger.c: – Executing [[email protected]:6] Macro(“SIP/200-0a0429c8”, “outisbusy|”) in new stack
[Apr 10 13:15:08] VERBOSE[2746] logger.c: – Executing [[email protected]:1] Playback(“SIP/200-0a0429c8”, “all-circuits-busy-now|noanswer”) in new stack
[Apr 10 13:15:08] VERBOSE[2746] logger.c: – <SIP/200-0a0429c8> Playing ‘all-circuits-busy-now’ (language ‘en’)
[Apr 10 13:15:10] DEBUG[2746] app_macro.c: Executed application: Playback
[Apr 10 13:15:10] VERBOSE[2746] logger.c: – Executing [[email protected]:2] Playback(“SIP/200-0a0429c8”, “pls-try-call-later|noanswer”) in new stack
[Apr 10 13:15:10] VERBOSE[2746] logger.c: – <SIP/200-0a0429c8> Playing ‘pls-try-call-later’ (language ‘en’)
[Apr 10 13:15:12] DEBUG[2746] app_macro.c: Executed application: Playback
[Apr 10 13:15:12] VERBOSE[2746] logger.c: – Executing [[email protected]:3] Macro(“SIP/200-0a0429c8”, “hangupcall”) in new stack

you can type at the CLI:

group show channels

and it will show what Asterisk thinks is used up. What you describe does sound odd. Are you running FreePBX or are you running the variant that trixbox has forked and is often missing bug and security fixes?

(In either case, this part of the code base has not changed significantly on the FreePBX side anyhow. So for starters check what Asterisk thinks is going on because that is the information used by FreePBX to decide on max channels.)

Thanks for your reply…

It’s a Trixbox alright…

And it’s been working just fine for quite a while, this just started happening within the last few days. About the only change I made recently was to enable recording on one of the extensions. That has been disabled btw…

group show channels
Channel Group Category
0 active channels

So asterisk isn’t seeing any channels being used…

Does anyone out there have any suggestions on how to figure out what the issue is on this problem?

Thanks in advance…