From eric.peiffer at al-enterprise.com Wed Mar 1 08:49:46 2023 From: eric.peiffer at al-enterprise.com (Peiffer Eric) Date: Wed, 1 Mar 2023 08:49:46 +0000 Subject: http_prefetch does not work with parameter profile Message-ID: Hi I used the mod_http_cache modul in order to manage a cache of audio files. I have a new profile in the http_cache.conf.xml:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJjb3Vu...g
In fs_cli when I call http_get {profile=swift]http://xx.xx.xx.xx:pppp/audio.mp3 (xx.xx.xx.xx ip and pppp the port of our swift web server) The profile "swift" is well used in order to add the header Authorization into the GET HTTP request, and the audio file is well added to the cache. But if I used the http_prefetch the command failed: freeswitch at fs1> http_prefetch {profile=swift}http://xx.xx.xx.xx:pppp/acdc.mp3 +OK 2023-03-01 09:38:34.351425 99.70% [DEBUG] mod_http_cache.c:659 Locked cache 2023-03-01 09:38:34.351425 99.70% [INFO] mod_http_cache.c:751 Cache MISS: size = 15 (70 MB), hit ratio = 4/20 2023-03-01 09:38:34.351425 99.70% [DEBUG] mod_http_cache.c:816 Adding {profile=swift}http://xx.xx.xx.xx:pppp/audio.mp3(/var/cache/freeswitch/15/2a01eb-0e9a-4988-a7e3-40c80c1c9c52.mp3) to cache index 15 2023-03-01 09:38:34.351425 99.70% [DEBUG] mod_http_cache.c:670 Unlocked cache 2023-03-01 09:38:34.351425 99.70% [DEBUG] mod_http_cache.c:1126 opening /var/cache/freeswitch/15/2a01eb-0e9a-4988-a7e3-40c80c1c9c52.mp3 for URL cache 2023-03-01 09:38:34.351425 99.70% [ERR] mod_http_cache.c:1187 Received curl error 3 HTTP error code 0 trying to fetch {profile=swift}http://xx.xx.xx.xx:pppp/audio.mp3 2023-03-01 09:38:34.351425 99.70% [DEBUG] mod_http_cache.c:659 Locked cache 2023-03-01 09:38:34.351425 99.70% [INFO] mod_http_cache.c:773 Failed to download URL {profile=swift}http://xx.xx.xx.xx:pppp/audio.mp3 2023-03-01 09:38:34.351425 99.70% [DEBUG] mod_http_cache.c:670 Unlocked cache When I read the mod_http_cache.c source code in the http_cache_prefetch function it seems that the parameter prefetch is added to the command without checking if other parameters are added: url = switch_mprintf("{prefetch=true}%s", cmd); this result of a bad url: {prefetch=true}{profile=swift}http://xx.xx.xx.xx:pppp/audio.mp3, and maybe this is why curl return an error. How can i use http_prefetch with a profile? Thanks Eric. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at freeswitch.com Wed Mar 15 17:51:42 2023 From: brian at freeswitch.com (Brian West) Date: Wed, 15 Mar 2023 12:51:42 -0500 Subject: [Freeswitch-users] Retiring the FreeSWITCH Mailing List Message-ID: FreeSWITCHERS, Today’s the day, folks. For those of you that aren’t sure what’s happening, we’re retiring the FreeSWITCH mailing list after 15 years in service. You can check out the announcement here for more context. Everything historical on the mailing list will continue to be available via the existing links and search functionality. I wanted to take this final message to thank you all for your continued involvement and support of the FreeSWITCH community and confirm that this is the only change we’re making. Read on for more resources and where to get involved or get help. If you’re following the FreeSWITCH newsletter , you’ve probably already seen we’re hosting a PR Review Day coming up next week. If you have an open issue or PR you want to discuss, sign up and come talk with the team! We’ll be hosting another in April, so look out for that as well. Our direct replacement for the mailing list is a community forum. To join the new forum, visit forum.signalwire.community - it uses SSO from your free SignalWire account, which allows us to be more lenient with moderation because we've got an assumed level of trust, and also reduces the overall level of spam in the forums. We've got the forum set so you can view without an account, so check it out with no obligation. If you’d like to receive updates via email, you can set that up in your user preferences on the forum with the steps in this guide . You can reply to forum topics via email, and you can even start new topics by emailing . Also note the digest/summary emails will stop sending if you don’t log into the forum every 180 days, but if you follow the steps in the guide above for watching topics you will not need to login to refresh that timer. Not interested in the forum, but still looking for community spaces? You’re welcome to join our Community Slack , join the subreddit , or attend our Office Hours . So long, and thanks for all the fish! /b -- Brian West | Co-founder and Developer Need Commercial support? email sales at freeswitch.com Email: brian at freeswitch.com -------------- next part -------------- An HTML attachment was scrubbed... URL: