Carlos Chavez
2016-Nov-03 16:16 UTC
[asterisk-users] Force hangup not working on stuck channel
I am unable to force a hangup on a channel that has been stuck for over two days: IAX2/from-CD-11006 oficina 2770 1 Up Dial IAX2/to-CD/2883 3467130007 46:24:59 Sotelo Sotelo IAX2/to-CD-20713 I have tried "hangup request IAX2/from-CD-11006" several times but no joy. I also see the following in the CLI: [Nov 3 10:05:54] WARNING[2879]: chan_iax2.c:4936 handle_call_token: Too much delay in IAX2 calltoken timestamp from address X.X.X.X This is an IAX2 trunk between two Asterisk 1.8 servers (I know it is old but new client so haven't had time yet to upgrade to 13). Because this channels is stuck all other calls between servers are not working. The only way I have found to resolve the problem is to stop and restart Asterisk. This is obviously a great inconvinience so is there a way for force iax to unload even if there are channels in use? Or any other way to kill these stubborn channels? -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez dCAP #1349 +52 (55)9116-91161
Victor Villarreal
2016-Nov-03 16:26 UTC
[asterisk-users] Force hangup not working on stuck channel
Hi Carlos, Did you try with the following CLI command: CLI> channel request hangup CHANNEL_NAME ??? El nov. 3, 2016 1:16 PM, "Carlos Chavez" <cursor at telecomabmex.com> escribi?:> I am unable to force a hangup on a channel that has been stuck for over > two days: > > IAX2/from-CD-11006 oficina 2770 1 Up > Dial IAX2/to-CD/2883 3467130007 46:24:59 Sotelo > Sotelo IAX2/to-CD-20713 > > I have tried "hangup request IAX2/from-CD-11006" several times but no > joy. I also see the following in the CLI: > > [Nov 3 10:05:54] WARNING[2879]: chan_iax2.c:4936 handle_call_token: Too > much delay in IAX2 calltoken timestamp from address X.X.X.X > > This is an IAX2 trunk between two Asterisk 1.8 servers (I know it is old > but new client so haven't had time yet to upgrade to 13). Because this > channels is stuck > all other calls between servers are not working. The only way I have > found to resolve the problem is to stop and restart Asterisk. This is > obviously a great inconvinience so is there a way for force iax to unload > even if there are channels in use? Or any other way to kill these stubborn > channels? > > -- > Telecomunicaciones Abiertas de M?xico S.A. de C.V. > Carlos Ch?vez > dCAP #1349 > +52 (55)9116-91161 > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161103/80cd8b0c/attachment.html>
John Kiniston
2016-Nov-03 16:56 UTC
[asterisk-users] Force hangup not working on stuck channel
I always set a TIMEOUT(absolute) on calls across trunks to something reasonable like 10 hours, that way calls should end in a sane amount of time even if something weird happens. Otherwise I've always had to do a reload when I couldn't hang up from the CLI. On Thu, Nov 3, 2016 at 9:16 AM, Carlos Chavez <cursor at telecomabmex.com> wrote:> I am unable to force a hangup on a channel that has been stuck for over > two days: > > IAX2/from-CD-11006 oficina 2770 1 Up > Dial IAX2/to-CD/2883 3467130007 46:24:59 Sotelo > Sotelo IAX2/to-CD-20713 > > I have tried "hangup request IAX2/from-CD-11006" several times but no > joy. I also see the following in the CLI: > > [Nov 3 10:05:54] WARNING[2879]: chan_iax2.c:4936 handle_call_token: Too > much delay in IAX2 calltoken timestamp from address X.X.X.X > > This is an IAX2 trunk between two Asterisk 1.8 servers (I know it is old > but new client so haven't had time yet to upgrade to 13). Because this > channels is stuck > all other calls between servers are not working. The only way I have > found to resolve the problem is to stop and restart Asterisk. This is > obviously a great inconvinience so is there a way for force iax to unload > even if there are channels in use? Or any other way to kill these stubborn > channels? > > -- > Telecomunicaciones Abiertas de M?xico S.A. de C.V. > Carlos Ch?vez > dCAP #1349 > +52 (55)9116-91161 > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. ---Heinlein -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161103/6bc7df55/attachment.html>
Matt Fredrickson
2016-Nov-04 19:01 UTC
[asterisk-users] Force hangup not working on stuck channel
On Thu, Nov 3, 2016 at 11:16 AM, Carlos Chavez <cursor at telecomabmex.com> wrote:> I am unable to force a hangup on a channel that has been stuck for over two > days: > > IAX2/from-CD-11006 oficina 2770 1 Up Dial > IAX2/to-CD/2883 3467130007 46:24:59 Sotelo Sotelo > IAX2/to-CD-20713 > > I have tried "hangup request IAX2/from-CD-11006" several times but no joy. > I also see the following in the CLI: > > [Nov 3 10:05:54] WARNING[2879]: chan_iax2.c:4936 handle_call_token: Too > much delay in IAX2 calltoken timestamp from address X.X.X.X > > This is an IAX2 trunk between two Asterisk 1.8 servers (I know it is old but > new client so haven't had time yet to upgrade to 13). Because this channels > is stuck > all other calls between servers are not working. The only way I have found > to resolve the problem is to stop and restart Asterisk. This is obviously a > great inconvinience so is there a way for force iax to unload even if there > are channels in use? Or any other way to kill these stubborn channels?If doing a soft hangup on them doesn't work, the only other way I know to do it is to restart Asterisk. Sorry about the bad news :-( There's a part of me that's curious as to why the channel is stuck, but there's another part of me that says "1.8... run away quickly". You could try to replicate it with a modern branch (i.e. 13/14) and see if it still exists. At the very least that'd leave you the option of posting a bug on the issue tracker about it. Also, a lot of bugs have been fixed since 1.8, so it's quite possible that this issue is resolved as well. -- Matthew Fredrickson Digium, Inc. | Engineering Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Matt Fredrickson
2016-Nov-04 19:07 UTC
[asterisk-users] Force hangup not working on stuck channel
Also, it looks like in https://issues.asterisk.org/jira/browse/ASTERISK-21762 there might be a workaround (see the last comment at the bottom). Matthew Fredrickson On Fri, Nov 4, 2016 at 2:01 PM, Matt Fredrickson <creslin at digium.com> wrote:> On Thu, Nov 3, 2016 at 11:16 AM, Carlos Chavez <cursor at telecomabmex.com> wrote: >> I am unable to force a hangup on a channel that has been stuck for over two >> days: >> >> IAX2/from-CD-11006 oficina 2770 1 Up Dial >> IAX2/to-CD/2883 3467130007 46:24:59 Sotelo Sotelo >> IAX2/to-CD-20713 >> >> I have tried "hangup request IAX2/from-CD-11006" several times but no joy. >> I also see the following in the CLI: >> >> [Nov 3 10:05:54] WARNING[2879]: chan_iax2.c:4936 handle_call_token: Too >> much delay in IAX2 calltoken timestamp from address X.X.X.X >> >> This is an IAX2 trunk between two Asterisk 1.8 servers (I know it is old but >> new client so haven't had time yet to upgrade to 13). Because this channels >> is stuck >> all other calls between servers are not working. The only way I have found >> to resolve the problem is to stop and restart Asterisk. This is obviously a >> great inconvinience so is there a way for force iax to unload even if there >> are channels in use? Or any other way to kill these stubborn channels? > > If doing a soft hangup on them doesn't work, the only other way I know > to do it is to restart Asterisk. Sorry about the bad news :-( > > There's a part of me that's curious as to why the channel is stuck, > but there's another part of me that says "1.8... run away quickly". > > You could try to replicate it with a modern branch (i.e. 13/14) and > see if it still exists. At the very least that'd leave you the option > of posting a bug on the issue tracker about it. Also, a lot of bugs > have been fixed since 1.8, so it's quite possible that this issue is > resolved as well. > > -- > Matthew Fredrickson > Digium, Inc. | Engineering Manager > 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA-- Matthew Fredrickson Digium, Inc. | Engineering Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA