Jump to content

Unable to Play Media using 'Https' link


Recommended Posts

Hey mc_,

Currently we are trying to play media from one of the S3 bucket and we are able to play it using the "http" but when using the same link over the secured Channel as "https" then it is not able to play the media

Is there a way to access the urls using the " Https", Or are there any certificates which need to be installed. 

Log:

2020-02-19 06:11:00.070902 [DEBUG] sofia.c:7084 Channel sofia/sipinterface_1/+914067667300@172.31.1.139 entering state [ready][200]
2020-02-19 06:11:00.250908 [DEBUG] kazoo_node.c:1319 Sent erlang message to ecallmgr@test.examplehost.com <2.1607.3>
2020-02-19 06:11:00.250908 [NOTICE] kazoo_node.c:430 log|7263-0-2057140876@172.31.1.138|executing kz_multiset playback_terminators=#*0123456789
2020-02-19 06:11:00.250908 [DEBUG] switch_ivr.c:623 sofia/sipinterface_1/+914067667300@172.31.1.139 Command Execute kz_multiset(playback_terminators=#*0123456789)
EXECUTE sofia/sipinterface_1/+914067667300@172.31.1.139 kz_multiset(playback_terminators=#*0123456789)
2020-02-19 06:11:00.250908 [DEBUG] kazoo_dptools.c:81 sofia/sipinterface_1/+914067667300@172.31.1.139 SET [playback_terminators]=[#*0123456789]
2020-02-19 06:11:00.250908 [DEBUG] kazoo_event_stream.c:245 increased event stream buffer size to 4108
2020-02-19 06:11:00.310906 [DEBUG] switch_rtp.c:7308 Correct audio ip/port confirmed.
2020-02-19 06:11:00.450900 [DEBUG] kazoo_node.c:1319 Sent erlang message to ecallmgr@test.examplehost.com <2.1607.3>
2020-02-19 06:11:00.450900 [NOTICE] kazoo_node.c:430 log|7263-0-2057140876@172.31.1.138|executing playback http_cache://https://testlabs-dev-configurator-media.s3.amazonaws.com/92f50f30-661c-11e6-b1b9-ca81484488df/1990f37d-2282-481e-a5f5-3b8fe59ef5fd/Coincidences.mp3
2020-02-19 06:11:00.450900 [DEBUG] switch_ivr.c:623 sofia/sipinterface_1/+914067667300@172.31.1.139 Command Execute playback(http_cache://https://testlabs-dev-configurator-media.s3.amazonaws.com/92f50f30-661c-11e6-b1b9-ca81484488df/1990f37d-2282-481e-a5f5-3b8fe59ef5fd/Coincidences.mp3)
EXECUTE sofia/sipinterface_1/+914067667300@172.31.1.139 playback(http_cache://https://testlabs-dev-configurator-media.s3.amazonaws.com/92f50f30-661c-11e6-b1b9-ca81484488df/1990f37d-2282-481e-a5f5-3b8fe59ef5fd/Coincidences.mp3)
2020-02-19 06:11:00.450900 [DEBUG] mod_http_cache.c:659 Locked cache
2020-02-19 06:11:00.450900 [INFO] mod_http_cache.c:751 Cache MISS: size = 10 (1 MB), hit ratio = 2/13
2020-02-19 06:11:00.450900 [DEBUG] mod_http_cache.c:816 Adding https://testlabs-dev-configurator-media.s3.amazonaws.com/92f50f30-661c-11e6-b1b9-ca81484488df/1990f37d-2282-481e-a5f5-3b8fe59ef5fd/Coincidences.mp3(/var/lib/kazoo-freeswitch/cache/99/cb9466-52de-11ea-afda-331ad7576896.mp3) to cache index 10
2020-02-19 06:11:00.450900 [DEBUG] mod_http_cache.c:670 Unlocked cache
2020-02-19 06:11:00.450900 [DEBUG] mod_http_cache.c:1116 opening /var/lib/kazoo-freeswitch/cache/99/cb9466-52de-11ea-afda-331ad7576896.mp3 for URL cache
2020-02-19 06:11:00.650909 [DEBUG] kazoo_node.c:1319 Sent erlang message to ecallmgr@test.examplehost.com <2.1607.3>
2020-02-19 06:11:00.710908 [ERR] mod_http_cache.c:1170 Received HTTP error 0 trying to fetch https://testlabs-dev-configurator-media.s3.amazonaws.com/92f50f30-661c-11e6-b1b9-ca81484488df/1990f37d-2282-481e-a5f5-3b8fe59ef5fd/Coincidences.mp3
2020-02-19 06:11:00.710908 [DEBUG] mod_http_cache.c:659 Locked cache
2020-02-19 06:11:00.710908 [INFO] mod_http_cache.c:773 Failed to download URL https://testlabs-dev-configurator-media.s3.amazonaws.com/92f50f30-661c-11e6-b1b9-ca81484488df/1990f37d-2282-481e-a5f5-3b8fe59ef5fd/Coincidences.mp3
2020-02-19 06:11:00.710908 [DEBUG] mod_http_cache.c:670 Unlocked cache
2020-02-19 06:11:00.710908 [DEBUG] kazoo_event_stream.c:245 increased event stream buffer size to 4364
2020-02-19 06:11:00.710908 [NOTICE] kazoo_node.c:430 log|7263-0-2057140876@172.31.1.138|executing event Event-Subclass=kazoo::noop,Event-Name=CUSTOM,kazoo_event_name=CHANNEL_EXECUTE_COMPLETE,kazoo_application_name=noop,kazoo_application_response=5bc267d9ef661d01eb8669e575c93d18
2020-02-19 06:11:00.710908 [DEBUG] switch_ivr.c:623 sofia/sipinterface_1/+914067667300@172.31.1.139 Command Execute event(Event-Subclass=kazoo::noop,Event-Name=CUSTOM,kazoo_event_name=CHANNEL_EXECUTE_COMPLETE,kazoo_application_name=noop,kazoo_application_response=5bc267d9ef661d01eb8669e575c93d18)
EXECUTE sofia/sipinterface_1/+914067667300@172.31.1.139 event(Event-Subclass=kazoo::noop,Event-Name=CUSTOM,kazoo_event_name=CHANNEL_EXECUTE_COMPLETE,kazoo_application_name=noop,kazoo_application_response=5bc267d9ef661d01eb8669e575c93d18)
2020-02-19 06:11:00.710908 [DEBUG] kazoo_event_stream.c:245 increased event stream buffer size to 4282
2020-02-19 06:11:00.730886 [DEBUG] kazoo_event_stream.c:245 increased event stream buffer size to 4378
2020-02-19 06:11:00.910938 [DEBUG] kazoo_node.c:1319 Sent erlang message to ecallmgr@test.examplehost.com <2.1607.3>
2020-02-19 06:11:00.910938 [INFO] kazoo_node.c:837 exec: uuid_kill(7263-0-2057140876@172.31.1.138 )
2020-02-19 06:11:00.910938 [NOTICE] switch_ivr.c:4269 Hangup sofia/sipinterface_1/+914067667300@172.31.1.139 [CS_EXECUTE] [NORMAL_CLEARING]
2020-02-19 06:11:00.910938 [DEBUG] switch_core_session.c:2815 sofia/sipinterface_1/+914067667300@172.31.1.139 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
2020-02-19 06:11:00.910938 [DEBUG] switch_core_state_machine.c:650 (sofia/sipinterface_1/+914067667300@172.31.1.139) State EXECUTE going to sleep
2020-02-19 06:11:00.910938 [DEBUG] switch_core_state_machine.c:584 (sofia/sipinterface_1/+914067667300@172.31.1.139) Running State Change CS_HANGUP (Cur 1 Tot 11)
2020-02-19 06:11:00.910938 [DEBUG] switch_core_state_machine.c:850 (sofia/sipinterface_1/+914067667300@172.31.1.139) Callstate Change ACTIVE -> HANGUP
2020-02-19 06:11:00.910938 [DEBUG] switch_core_state_machine.c:852 (sofia/sipinterface_1/+914067667300@172.31.1.139) State HANGUP
2020-02-19 06:11:00.910938 [DEBUG] mod_sofia.c:438 Channel sofia/sipinterface_1/+914067667300@172.31.1.139 hanging up, cause: NORMAL_CLEARING
2020-02-19 06:11:00.910938 [DEBUG] kazoo_event_stream.c:245 increased event stream buffer size to 4250
2020-02-19 06:11:00.910938 [DEBUG] mod_sofia.c:491 Sending BYE to sofia/sipinterface_1/+914067667300@172.31.1.139
2020-02-19 06:11:00.910938 [DEBUG] switch_core_state_machine.c:60 sofia/sipinterface_1/+914067667300@172.31.1.139 Standard HANGUP, cause: NORMAL_CLEARING
2020-02-19 06:11:00.910938 [DEBUG] switch_core_state_machine.c:852 (sofia/sipinterface_1/+914067667300@172.31.1.139) State HANGUP going to sleep
2020-02-19 06:11:00.910938 [DEBUG] switch_core_state_machine.c:619 (sofia/sipinterface_1/+914067667300@172.31.1.139) State Change CS_HANGUP -> CS_REPORTING

 

Please suggest a way to work with the Https urls

Thanks
Yagna Muni


 

Link to comment
Share on other sites

  • 2600Hz Employees

First thing to check is if you can get the file from the FreeSWITCH box using cURL: `curl -v $URL`. cURL's output will tell you what cert bundles are being used. Then check FreeSWITCH configs to see if its using a similar bundle; update if not.

Link to comment
Share on other sites

Hi,

Thanks for your response.

We are able to resolve the issue on freeswitch with few configuration changes and updating the certificate.

For HTTPS support, grab the latest CA certs from http://curl.haxx.se/ca/cacert.pem and copy in /usr/. 

Configuration:

mod_http_cache allows one to make an HTTP GET request to cache a document and HTTP PUT to store a document. The primary use case is to download and cache audio files from a web server.

mod_http_cache offers the http:// and https:// read and write file interfaces if the "enable-file-formats" param is set to true. DO NOT LOAD mod_httapi IF YOU USE THIS PARAM.

The /etc/kazoo/freeswitch/autoload_configs/http_cache.conf.xml or /etc/kazoo/freeswitch/autoload_configs/http_cache.conf.xml file contains the configuration.

Thanks
Yagna Muni

Edited by Yagna Muni (see edit history)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...