[Home]

Summary:ASTERISK-08645: Asterisk sometimes hangs up channel on Manager Redirect command
Reporter:sebb (sebb)Labels:
Date Opened:2007-01-22 17:18:35.000-0600Date Closed:2011-06-07 14:08:16
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) verbosedebug.txt
Description:When I redirect an open channel via the "Redirect" command on the manager interface, sometimes (rarely) asterisk hangs up the channel without any (visible) reason. Tested with Asterisk 1.4.0 and svn checkout 51353 and SIP/IAX, but that happened always.

****** ADDITIONAL INFORMATION ******

Attached is the Output of "asterisk -Tvvvvvdddddngc | tee /tmp/verbosedebug.txt" and after that the in- and output from the manager-interface. In that case, I had the problem with SIP/102-081cd428.

There was a script connected to the manager-interface that sends out a "Action: Redirect" on the previous "Event: Newexten" event with "Application: NoOp".

The interesting lines:

-- Executing [*@sipin-internal:2] NoOp("SIP/102-081cd428", "NewCaller|Number: 102|Channel: SIP/102-081cd428") in new stack

[Jan 22 23:01:33] DEBUG[775]: manager.c:2068 process_message: Manager received command 'Redirect'

[Jan 22 23:01:33] DEBUG[775]: channel.c:1375 ast_softhangup_nolock: Soft-Hanging up channel 'SIP/102-081cd428'


Dialplan:

[sipin-internal]
exten => *,1,answer
exten => *,n,NoOp(NewCaller|Number: ${CALLERID(num)}|Channel: ${CHANNEL})
exten => *,n,wait(30)
exten => *,n,playback(tt-monkeys)

[helper]
exten => _1.,1,Set(data=${EXTEN:1})
[..]

Comments:By: sebb (sebb) 2007-01-23 17:19:02.000-0600

I have a possible explanation for that, but I'm not sure.

I noticed, that when I send the "Redirect" command not at the NoOp-event (which was originally "UserEvent", but I exchanged that because I thought that caused the problems), but instead on the Wait-Event, everything works fine.

So, is it possible that the channel will be hung up if the currently running applications (NoOp) finishes at the same moment the manager-interface is redirecting that channel?

By: Serge Vecher (serge-v) 2007-03-07 11:23:07.000-0600

I wonder if the patch from 8977 will fix this. Could you please test with latest 1.4 svn or trunk?

By: Serge Vecher (serge-v) 2007-03-26 12:47:28

sebb: what's the status?

By: jmls (jmls) 2007-05-28 03:37:47

sebb: did you test the patch from 8977 as per serge-v's suggestion ?

By: Joshua C. Colp (jcolp) 2007-06-21 17:13:11

There has been no response for quite some time and during my tests earlier today I was unable to reproduce this, so I'm suspending it for now. If this is still an issue please reopen with all available information.