i would like reproduce a message when i put a .call file inside /var/spool/asterisk/outgoing.
everything works but when the extention that i have to call is a ring group the sound message is not played.
Are you sure that it isn’t being played as early media. If the ring group answers the call, the action will start immediately.
You have a redundant answer() at the start of your action (the all is already up before the dialplan is started), but there is an equivalent answer in the ring group logic, that would cause the message to be played too early. I seem to remember that there is an option that controls whether FreePBX will answer early, but I can’t find it on a quick search.
The answer in your code is redundant. Removing it will just speed things up by a few milliseconds. The question was whether the ring group extension tries to answer the call before entering the queue.
Could you please provide logs, at at least verbosity 5, for the execution of the call file. The forum preference is to upload them to pastebin.freepbx.org, and they should be taken directly from the log file, not screen scraped.
I’d expect a message shortly before that as to why ast_streamfile failed. However, it does appear that it is not being played, as against being played too soon.
One thought is that this is because you are relying on a language recorded against the external destination. I believe a ring group is really a special case of a queue and, unlike when using the Dial application, the local channel won’t be optimised out, so Playback would see the local channel’s language. However, I’m not sure if language prefixes are considered when there is a directory in the name. What is the full path to the file you are trying to play?