[asterisk-bugs] [JIRA] (ASTERISK-29223) MOH playlist: doesn't open HTTPS URL

George Joseph (JIRA) noreply at issues.asterisk.org
Wed Dec 23 11:18:16 CST 2020


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

George Joseph commented on ASTERISK-29223:
------------------------------------------

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.



> MOH playlist: doesn't open HTTPS URL
> ------------------------------------
>
>                 Key: ASTERISK-29223
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29223
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_musiconhold
>    Affects Versions: 18.1.1
>         Environment: Debian 10.7
>            Reporter: Ilya Demyanov
>            Assignee: Ilya Demyanov
>
> 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}



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



More information about the asterisk-bugs mailing list