[asterisk-bugs] [JIRA] (ASTERISK-23047) Orphaned (stuck) channel occurs during a failed SIP transfer to parking space

Matt Jordan (JIRA) noreply at issues.asterisk.org
Thu Jan 2 15:27:03 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213538#comment-213538 ] 

Matt Jordan commented on ASTERISK-23047:
----------------------------------------

I was able to reproduce this by forcing a failed SIP transfer to the parking space. Looking at the logs, that appears to be what's happening here.

In {{sip_park_thread}}, we don't hang up the {{transferer}}/{{transferee}} channels if a call park fails. In fact, there's even a comment that says "Don't hang up the channels". It's possible that back in [r21157|https://code.asterisk.org/code/changelog/asterisk?cs=21157] the features code would have handled this differently: now, the channels are stuck in limbo with no thread to service them. As such, any subsequent hangups are ignored.

The attached patch should fix the problem by hanging up both channels in the case of a failure.
                
> Orphaned (stuck) channel occurs during a failed SIP transfer to parking space
> -----------------------------------------------------------------------------
>
>                 Key: ASTERISK-23047
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23047
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 11.6.0
>         Environment: Asterisk 11.6.0-rc1 built by digium @ testpbx227-1 on a i686 running Linux on 2013-09-20 15:41:36 UTC
>            Reporter: Tommy Thompson
>            Severity: Critical
>         Attachments: ASTERISK-23047-11.diff, testlog.0
>
>
> While running automated phone test (BLF status) asterisk has orphaned a channel. This was reproduced a second time running the same test between the same to device (digium phones) and a verbose debug log is attached.
> Below is the result of sip show channels with the phones on-hook while in this state ...
> {noformat}
>  testpbx227-1*CLI> sip show channels
> Peer             User/ANR         Call ID          Format           Hold     Last Message    Expiry     Peer      
> 10.24.19.187     1614             Mb-Oiy1ExoNQb4V  (ulaw)           No       Rx: BYE                    1614      
> 10.24.16.115     1601             1990fc177becb3f  (ulaw)           No       Rx: BYE         Done       1601      
> 2 active SIP dialogs 
> {noformat}
> Below is the result of "core show channels" in same state as above...
> {noformat}
> testpbx227-1*CLI> core show channels
> Channel              Location             State   Application(Data)             
> SIP/1614-00000006    1601 at sip:11          Up      (None)                        
> SIP/1601-00000007    (None)               Up      (None)                        
> 2 active channels
> 0 active calls
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list