[asterisk-bugs] [JIRA] (ASTERISK-29544) Media Cache - Delayed remote sound file retrieve delays all playbacks

Friendly Automation (JIRA) noreply at issues.asterisk.org
Fri Aug 20 11:48:33 CDT 2021


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

Friendly Automation commented on ASTERISK-29544:
------------------------------------------------

Change 16363 merged by George Joseph:
media_cache: Don't lock when curl the remote file

[https://gerrit.asterisk.org/c/asterisk/+/16363|https://gerrit.asterisk.org/c/asterisk/+/16363]

> Media Cache - Delayed remote sound file retrieve delays all playbacks
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-29544
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29544
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Core/General
>    Affects Versions: 18.5.0
>            Reporter: Andre Barbosa
>            Assignee: Andre Barbosa
>
> When playing a remote sound file that is not in cache, first we need to download it with ast_bucket_file_retrieve.
> This can take a while if the remote host is slow. The current CURL timeout is 180secs, so in extreme situations it can take 3 minutes to return.
> Because ast_media_cache_retrieve has a lock on all function, while we are waiting for the slow download,  Asterisk is not able to play any more files, even the files already cached locally.



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



More information about the asterisk-bugs mailing list