This has been happening for a while now, but it is fairly infrequent, so I am just getting around to posting this question.
What are possible causes of stuck channels? Where should I look to debug this?
I have several extensions that on different occasions have ended a call but left the channel open. The BLF for that extension stays busy and the channel stays stuck until the system is rebooted. I have tired a few cli commands such as channel request hangup to no avail. The only remedy is a reboot.
I am using PJSIP for the extensions and the endpoints are all Cisco SPA 5XX series. I have seen posts about stuck channels in Asterisk 1, but nothing in more recent versions such as 12. From what I can see in those cases it was a bug that has since been fixed. As I have not seen any reports for current versions, I am thinking this is a configuration issue, but I do not know where to look to pinpoint it.
Wanted to give this a bump. I assume that whatever is causing this would be logged. I’m hoping I could get some suggestions on where to look and what to look for. I’ve gone through the Asterisk log files for the times that this has happened, but nothing jumped out to me.
You can do ‘core show channel PJSIP/[PUSH TAB]’ … when you push tab it’ll expand out to the current list of active channels, so do a show channel on one of the hung ones. Paste it here (it’ll be long, wrap it in <code> … </code> tags)
I can’t guarantee any help, but, it can only help!
Here is everything I tried. I didn’t get any long results…Am I misinterpreting something?
localhost*CLI> core show channel PJSIP/[PUSH TAB]
Usage: core show channel <channel>
Shows lots of information about the specified channel.
localhost*CLI> core show channels PJSIP/[PUSH TAB]
Usage: core show channels [concise|verbose|count]
Lists currently defined channels and some information about them. If
'concise' is specified, the format is abridged and in a more easily
machine parsable format. If 'verbose' is specified, the output includes
more and longer fields. If 'count' is specified only the channel and call
count is output.
The 'concise' option is deprecated and will be removed from future versions
localhost*CLI> core show channels
Channel Location State Application(Data)
PJSIP/109-000001c8 (None) Up AppDial((Outgoing Line))
0 active channels
0 active calls
localhost*CLI> core show channel PJSIP/109-000001c8
PJSIP/109-000001c8 is not a known channel
I think I got it right that time. I typed core show channel PJSIP/, pressed tab which completed it with the hung channel, and pressed enter. It looks to me like core show channel cannot find the hung channel.
I did not find a resolution. I’ve been meaning to put a bug report in with Asterisk, but I have not done so yet. Their bug tracking site requires a client certificate, and I haven’t figured out what I need to do to gain access.
Took another look after seeing your post, and it was user error. My JS blocker was preventing it from loading fully, but I was getting this message as well, so I just assumed that was the cause and didn’t even think about the JS. Just submitted the bug. Thanks again for all your help on this, Rob.