[Home]

Summary:ASTERISK-29223: MOH playlist: doesn't open HTTPS URL
Reporter:Ilya Demyanov (Turbid)Labels:
Date Opened:2020-12-23 08:56:24.000-0600Date Closed:2020-12-23 11:18:30.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_musiconhold
Versions:18.1.1 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Debian 10.7Attachments:
Description:musiconhold.conf:
{quote}
[default]
mode=files
directory=moh

[alternative-radio]
mode=playlist
entry=https://listen.radioking.com/radio/182263/stream/224215
{quote}

{quote}
pbx*CLI> moh show classes
Class: alternative-radio
       Mode: playlist
       Directory: nodir
       Format: slin
Class: default
       Mode: files
       Directory: moh
{quote}

{quote}
[Dec 23 17:45:53]     -- Started music on hold, class 'alternative-radio', on channel 'PJSIP/1188-00000001'
[2020-12-23 17:45:53] WARNING[28677][C-00000002]: file.c:789 ast_openstream_full: File https://listen.radioking.com/radio/182263/stream/224215 does not exist in any format
[2020-12-23 17:45:53] WARNING[28677][C-00000002]: res_musiconhold.c:377 ast_moh_files_next: Unable to open file 'https://listen.radioking.com/radio/182263/stream/224215': No such file or directory
[Dec 23 17:45:53]     -- Stopped music on hold on PJSIP/1188-00000001
{quote}
Comments:By: Asterisk Team (asteriskteam) 2020-12-23 08:56:26.236-0600

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: George Joseph (gjoseph) 2020-12-23 10:16:45.676-0600

Did this issue happen with earlier versions of 18 or did it appear in 18.1.1?
Can you attach your endpoint configuration for the endpoints involved?
Thanks.




By: George Joseph (gjoseph) 2020-12-23 11:17:59.659-0600

I can play MOH files via https:// URLs without a problem.

Your issue is that the URL you're using doesn't have a file extension so MOH doesn't know what format it's in.  When I browse to that link, I get a mime type of audio/mpeg which isn't directly supported in Asterisk anyway.  You're going to have to use a mode=custom MOH class and use an external program to convert the stream into one Asterisk recognizes.

If you need help with that, https://community.asterisk.org is a good place to ask.