[asterisk-bugs] [JIRA] (ASTERISK-28862) res_musiconhold: Race condition between starting/stopping

Sean Bright (JIRA) noreply at issues.asterisk.org
Fri Sep 18 15:22:36 CDT 2020


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

Sean Bright commented on ASTERISK-28862:
----------------------------------------

[For later reference|https://github.com/asterisk/asterisk/blob/17a878dd9945e1b395d5d93b2ad88303713e44cc/bridges/bridge_softmix.c#L485-L490]:

{noformat}
        if (ast_channel_hold_state(bridge_channel->chan) == AST_CONTROL_HOLD) {
                ast_debug(1, "Channel %s simulating UNHOLD for bridge softmix join.\n",
                        ast_channel_name(bridge_channel->chan));
                ast_indicate(bridge_channel->chan, AST_CONTROL_UNHOLD);
        }
{noformat}

> res_musiconhold: Race condition between starting/stopping
> ---------------------------------------------------------
>
>                 Key: ASTERISK-28862
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28862
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_musiconhold
>    Affects Versions: 13.32.0, 16.9.0, 17.3.0
>            Reporter: Joshua C. Colp
>            Severity: Minor
>         Attachments: softmix_unhold.txt
>
>
> Given a scenario where music on hold is started from one thread and it is stopped in another it is possible for music on hold to not actually be stopped, when it should be. The attached full log shows this happening.



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



More information about the asterisk-bugs mailing list