Asterisk 14 doesn't cache media, really

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does anyone know about how caching of media actually happens in Asterisk 14? What I observe is that in the case of a media uri being presented to Asterisk to play to the caller, Asterisk fetches the media, stores it in /tmp and plays it back. Now, when the same media uri is presented to Asterisk again whether in the same Call (SIP session with a given caller) or a new call, Asterisk makes a web request to fetch the media file again and replaces the existing file under /tmp  with the new one. This is kinda fine but what doesn’t seem right is that when Media server serving the media files is down, Asterisk fails to play it instead of using the cached media file.

 

gke-daniel-smartline-us--voip-cluster-c0456898-lg29*CLI> media cache show all

URI

        Local File

---------------

https://media-service-vip.smartline.svc.cluster.local/media/v1/media-service/SecondMessage

        /tmp/bucket-xkLK8U.wav

https://media-service-vip.smartline.svc.cluster.local/media/v1/media-service/FirstMessage

        /tmp/bucket-81YBXw.wav

https://media-service-vip.smartline.svc.cluster.local/media/v1/media-service/Goodbye

        /tmp/bucket-Krr4gc.wav

https://media-service-vip.smartline.svc.cluster.local/media/v1/media-service/GDIntro

        /tmp/bucket-bMieY6.wav

[Feb 13 00:38:50] WARNING[408][C-00000007]: res_http_media_cache.c:238 execute_curl_instance: Failed connect to media-service-vip.smartline.svc.cluster.local:443; Connection refused

[Feb 13 00:38:50] WARNING[408][C-00000007]: res_http_media_cache.c:238 execute_curl_instance: Failed connect to media-service-vip.smartline.svc.cluster.local:443; Connection refused

[Feb 13 00:38:50] WARNING[408][C-00000007]: res_http_media_cache.c:284 bucket_file_run_curl: Failed to retrieve URL 'https://media-service-vip.smartline.svc.cluster.local/media/v1/media-service/Goodbye': server returned -1

[Feb 13 00:38:50] WARNING[408][C-00000007]: res_http_media_cache.c:238 execute_curl_instance: Failed connect to media-service-vip.smartline.svc.cluster.local:443; Connection refused

[Feb 13 00:38:50] WARNING[408][C-00000007]: res_http_media_cache.c:284 bucket_file_run_curl: Failed to retrieve URL 'https://media-service-vip.smartline.svc.cluster.local/media/v1/media-service/Goodbye': server returned -1

[Feb 13 00:38:50] WARNING[408][C-00000007]: file.c:790 ast_openstream_full: File https://media-service-vip.smartline.svc.cluster.local/media/v1/media-service/Goodbye does not exist in any format

[Feb 13 00:38:50] WARNING[408][C-00000007]: file.c:1263 ast_streamfile: Unable to open https://media-service-vip.smartline.svc.cluster.local/media/v1/media-service/Goodbye (format (ulaw)): No such file or directory

[Feb 13 00:38:50] WARNING[408][C-00000007]: res_stasis_playback.c:277 playback_final_update: 1518482313.8: Playback failed for sound:https://media-service-vip.smartline.svc.cluster.local/media/v1/media-service/Goodbye

 

Has anyone seen the same thing? And, have any comments on how to get it to behave right? My last resort is to patch Asterisk but wanted to find out how others are doing before I start fixing it myself.

 

Thanks,
Gaurav

_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux