Is it possible to put in any script to run after the Call Recording has ended? I have a script that I am using to use Rsync to move the recordings to an off site NAS. The script works fine, but if I put the path /home/asterisk/Backup/Recordings.sh nothing happens. I can get around this mostly by using a cron job that runs every minute. If it would work with the post that would be better I think
It isn’t running the script. I have rsync log and it shows no files created on the NAS. I checked the /var/spool/asterisk/monitor/ directory and they recorded files are there. here is my Rsync script
And the cron job is owned by what user? Asterisk is executing the script, whether or not it runs could be based on various reasons such as permissions and ownership.
When you’re in the Asterisk console you can do core set debut 10 and try again. That will kick out higher level debugging and might show what is happening when the script is being called on by Asterisk.
Gotta wait on getting an access to the .ssh directory so I decided to change the owner and group of expect. So expect and all the files associated with it ate asterisk:asterisk with execute rights
I tried running core set debug 10 and got alot of data but when I tried to search for the Recording.sh it was not found