Morning message [SOLVED]

I’m looking for tips :slight_smile:

I need to send a voice message at a given time to a particular extension

The part I would like to solve is just how to unleash the internal ringing event and message playback … for the rest I know how to do it

Does anyone have any ideas?

call file?

Channel: Local/101
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Application:Playback
Data: good-morning-angels
Extension: 10

Then “touch -d” the call file with appropriate date before moving it into /var/spool/asterisk/outgoing

Also you might want to repeat the message a couple of times in the recording for if it goes to voicemail,

Data: recording&recording&recording

1 Like

Very well
That was exactly what I was looking for!
However, I can not play the audio files I want, here is my example:

Action: Originate
Channel: Local / 10
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Application: Playback
Date: hello-world

With “hello-world” it works and you hear the message “hello-world” to the extension but if I try to replace “hello-world” with files in system recordings or Music on hold does not play audio …

Where am I wrong?

Maybe I’m wrong about finding the file …

[2017-05-18 09:43:49] WARNING [16936] file.c: File MSG OPA Sorry we do not exist in any format
[2017-05-18 09:43:49] WARNING [16936] file.c: Unable to open MSG OPA sorry (format (slin)): No such file or directory
[2017-05-18 09:43:49] WARNING [16936] app_playback.c: Playback failed on Local / 10 @ default-00000039; 1 for MSG OPA sorry

But then how do I do I tried both file description and filename, maybe I must give all the path of the directory

Action: Originate
Channel: Local/10
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Application:Playback
Data: /var/lib/asterisk/sounds/it/custom/ci-scusiamo-per-l-attesa

You need all the way …
Now it goes
In addition, obviously the line is: Action: Originate

Thank you all

Where sound files will be found, you are multilingual :wink:

https://www.voip-info.org/wiki/view/Asterisk+cmd+Playback