[Home]

Summary:ASTERISK-29544: Media Cache - Delayed remote sound file retrieve delays all playbacks
Reporter:Andre Barbosa (barbix)Labels:
Date Opened:2021-08-05 11:49:16Date Closed:2021-08-20 09:36:35
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:18.5.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description: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.

Comments:By: Asterisk Team (asteriskteam) 2021-08-05 11:49:20.852-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Andre Barbosa (barbix) 2021-08-05 12:02:56.181-0500

PR open:

https://gerrit.asterisk.org/c/asterisk/+/16233

By: Friendly Automation (friendly-automation) 2021-08-20 09:36:37.426-0500

Change 16365 merged by Friendly Automation:
media_cache: Don't lock when curl the remote file

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

By: Friendly Automation (friendly-automation) 2021-08-20 11:47:24.395-0500

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

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

By: Friendly Automation (friendly-automation) 2021-08-20 11:47:33.755-0500

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]

By: Friendly Automation (friendly-automation) 2021-08-20 11:47:43.018-0500

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

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