Hello guys!
We recently upgraded one of our instances from asterisk 18 to ver 22.5.
We have a TTS service that generates audiofile,its called by AGI. when file is generated i send the command: CONTROL STREAM FILE {Url},
It does work perfectly with 18 version. As i can remember, while i was setting up it on ver 18, i had issues with res_media_http_cache. I didnt know that it exists at all. I loaded it and it started working.
At the moment i have checked a lot of times that this module is loaded, i uncommented “protocols”, “redirects”, timeout setting in res_media_http_cache.conf. But it doesnt work.
Here is the log
[2025-09-11 19:10:12] – Executing [s@sub-tts-agi:1] NoOp(“PJSIP/RANDOM-00000002”, “:en”) in new stack
[2025-09-11 19:10:12] – Executing [s@sub-tts-agi:2] AGI(“PJSIP/RANDOM-00000002”, “agi://192.0.2.51/audiofile, :en, en”) in new stack
[2025-09-11 19:10:12] AGI Tx >> agi_network: yes
[2025-09-11 19:10:12] AGI Tx >> agi_network_script: audiofile
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_request: agi://192.0.2.51/audiofile
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_channel: PJSIP/RANDOM-00000002
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_language: en
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_type: PJSIP
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_uniqueid: 1757617793.8
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_version: 22.5.0
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_callerid: +123456
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_calleridname: Sol
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_callingpres: 0
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_callingani2: 0
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_callington: 0
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_callingtns: 0
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_dnid: +123456
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_rdnis: unknown
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_context: sub-tts-agi
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_extension: s
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_priority: 2
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_enhanced: 0.0
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_accountcode:
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_threadid: 124252902131392
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_arg_1: :en
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >> agi_arg_2: en
[2025-09-11 19:10:12] <PJSIP/RANDOM-00000002>AGI Tx >>
[2025-09-11 19:10:13] <PJSIP/RANDOM-00000002>AGI Rx << CONTROL STREAM FILE http://192.0.2.51/audiofile/a458b014-4202-4a8b-81f6-5b683089c3b1.wav “”
[2025-09-11 19:10:13] <PJSIP/RANDOM-00000002>AGI Tx >> 200 result=-1 endpos=-1
[2025-09-11 19:10:13] – <PJSIP/RANDOM-00000002>AGI Script agi://192.0.2.51/audiofile completed, returning -1
[2025-09-11 19:10:13] <PJSIP/RANDOM-00000002>AGI Tx >> HANGUP
media cache create http://192.0.2.51/audiofile/aa8dc2ab-8d6e-48bd-87c7-5c3cd79c3d7e.wav /tmp/test.wav
Unable to create ‘http://192.0.2.51/audiofile/aa8dc2ab-8d6e-48bd-87c7-5c3cd79c3d7e.wav’ associated with local file ‘/tmp/test.wav’
I tried media cache refresh.
I checked media cache show all after the request - empty.
The file is available from linux by Curl.
Is there a way to see a more detailed description of the reason/error while i cant get it in asterisk? Turned the verbose and debug logs to the max level - didnt help.