Can't hangup stuck channel

I apparently have five pjsip channels active for over a week now, they seem to have gotten stuck.
I can do a channel request hangup on them but nothing happens, they still stay active.
How can I hang those up without restarting Asterisk?

  Channel:  <ChannelId........................................>  <State.....>  <Time.....>
      Exten: <DialedExten.............>  CLCID: <ConnectedLineCID.......>
==========================================================================================

  Channel: PJSIP/5315-00001252/System                            Up            289:04:33
      Exten: 5314                        CLCID: "" <>

  Channel: PJSIP/5315-00001253/System                            Up            289:03:46
      Exten: 5314                        CLCID: "" <>

  Channel: PJSIP/5315-0000125f/System                            Up            288:46:37
      Exten: 1                           CLCID: "" <>

  Channel: PJSIP/5315-00001297/System                            Ring          287:24:30
      Exten: 39045                       CLCID: "" <>

  Channel: PJSIP/5315-00001298/System                            Ring          287:23:53
      Exten: 39045                       CLCID: "" <>

This is what those channels are doing:

 core show channels
Channel              Location             State   Application(Data)
PJSIP/5315-00001298  39045@from-internal: Ring    System(mailx -r "asterisk@abcd
PJSIP/5315-00001297  39045@from-internal: Ring    System(mailx -r "asterisk@abcd
PJSIP/5315-0000125f  1@testing2:2         Up      System(mailx -r "asterisk@abcd
PJSIP/5315-00001253  5314@testing2:1      Up      System(mailx -r "asterisk@abcd
PJSIP/5315-00001252  5314@testing2:1      Up      System(mailx -r "asterisk@abcd
Message/ast_msg_queu 98455463452@from-int Up      GotoIf(0?,98455463452,2:outbou

They appear to be stuck in the System application itself. If “channel request hangup” is unsuccessful then the only way would be to restart Asterisk.

That might not be possible for a while.
Is there harm in leaving it that way?

It would use up a tiny amount of resources, but otherwise it should be fine.

1 Like