[asterisk-bugs] [JIRA] (ASTERISK-27740) chan_sip: New Channel creation from new SIP dialog with Replaces failed to be properly tracked and destroyed

Friendly Automation (JIRA) noreply at issues.asterisk.org
Tue Apr 10 10:12:50 CDT 2018


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

Friendly Automation commented on ASTERISK-27740:
------------------------------------------------

Change 8732 merged by George Joseph:
chan_sip.c: Fix INVITE with replaces channel ref leak.

[https://gerrit.asterisk.org/8732|https://gerrit.asterisk.org/8732]

> chan_sip: New Channel creation from new SIP dialog with Replaces failed to be properly tracked and destroyed
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-27740
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27740
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/Transfers
>    Affects Versions: 13.19.1
>         Environment: CentOS Linux release 7.2.1511 (Core) 1cpu 2GB memory
>            Reporter: Shannon Price
>            Assignee: Richard Mudgett
>         Attachments: messages.txt, refs
>
>
> When an existing Channel (A) is being replaced by a new channel (C) created from a new SIP dialog, the replacing channel (C) does not get properly tracked or destroyed as a channel. The SIP dialogs are properly terminated/destroyed however channel (C) is not fully destroyed. Channel (C) has 2 file descriptors left remaining in addition to the reference in core show channels. These will continue to accumulate. 
> First call fully setup
> Channel              Location             State   Application(Data)
> SIP/voxprox-dev01-00 17732507208 at default: Up      Dial(SIP/10.1.144.4/1773250720
> SIP/10.1.144.4-00000 17732507208 at default: Up      AppDial((Outgoing Line))
> 2 active channels
> 1 active call
> 1 call processed
> New Channel create from new SIP dialog
> Channel              Location             State   Application(Data)
> SIP/c1nb2-00000002   17732507208 at default: Up      (None)
> SIP/voxprox-dev01-00 h at default:6          Up      System(/opt/asterisk/var/lib/a
> SIP/10.1.144.4-00000 17732507208 at default: Up      AppDial((Outgoing Line))
> 3 active channels
> 1 active call
> 1 call processed
> Channel replaced - doesn't show an active call anymore
> SIP/c1nb2-00000002   17732507208 at default: Up      (None)
> SIP/10.1.144.4-00000 17732507208 at default: Up      AppDial((Outgoing Line))
> 2 active channels
> 0 active calls
> 1 call processed
> Call complete, Channel left. All SIP dialogs correctly destroyed.
> Channel              Location             State   Application(Data)
> SIP/c1nb2-00000002   17732507208 at default: Up      (None)
> 0 active channels
> 0 active calls
> 1 call processed
> For each channel left in this state, a timerfd and eventfd are left.
> asterisk 2580 root   29u  a_inode                0,9        0     4852 [timerfd]
> asterisk 2580 root   30u  a_inode                0,9        0     4852 [eventfd]



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list