[asterisk-bugs] [JIRA] (ASTERISK-20226) Segfault in chan_sip while performing connected line update

Mark Michelson (JIRA) noreply at issues.asterisk.org
Thu Nov 15 10:42:45 CST 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Michelson updated ASTERISK-20226:
--------------------------------------

    Attachment: ASTERISK-20226.patch

I'm uploading ASTERISK-20226.patch to the issue. I provided this to Jared in another medium yesterday.

The patch is based on my observation that the channel onto which the frame is being queued is the target.chan1 channel of local_attended_transfer(). This corresponds to the transferer channel that is bridged to the transfer target. Jared told me that the agents in his call center are using blind transfers, so this means that the transferer channel has hung up by the time the connected line update is queued. What we have to do is ensure that we grab a reference to the channel so that the channel cannot disappear out from under us.

It may be that we should grab this reference even sooner (i.e. before sending a NOTIFY with sipfrag) but this should be fine since we have the channel locked by the time we get to this point in the code.
                
> Segfault in chan_sip while performing connected line update
> -----------------------------------------------------------
>
>                 Key: ASTERISK-20226
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20226
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General, General
>    Affects Versions: 1.8.15.0
>         Environment: Linux
>            Reporter: Jared Smith
>            Assignee: Rusty Newton
>         Attachments: ASTERISK-20226.patch, ASTERISK-20226.txt, asterisk_backtrace_20121029_8002.txt, backtrace.29064, backtrace.controlframes.txt
>
>
> Seeing a strange segfault on a new install of Asterisk 1.8.15.0.  Pasting the backtrace below at mjordan's request.
> [mjordan]
> Removed backtrace and attached as file to this issue.
> Appears to occur during a connected line update initiated from local_attended_transfer in chan_sip.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list