I haven’t actually done this, but it should be doable using the asterisk cmd System with a ftp script.
This is something off the top of my head, maybe it will help get you going in a workable solution.
[quote=“mazzic”]I haven’t actually done this, but it should be doable using the asterisk cmd System with a ftp script.
This is something off the top of my head, maybe it will help get you going in a workable solution.
[code]
#!/bin/sh
ftp -ivn <<EOL
open FTPSERVER
user username password
lcd /var/spool/asterisk/myrecordings
put $1
bye
quit
EOL
[/code][/quote]
Hi,
Thanks for the replay and the dialplan.
where i have to mention the IP that i have to transfer?
and how can i run these script automatically?
I want to put a specific time to transfer the file.
my recording files are in /var/spool/asterisk/monitor folder.
If the two servers are on the same lan and looking at teh addresses they are.
Then firstly you need to “trust” them by sharing the ssh keys, This way they can talk to each other without the need for passwords.
details are here cyber-cottage.co.uk/site/index.p … &Itemid=63
now you need to write a script that rsyncs the files between servers. , This can be called by a hangup. but if it was a long call this may not have been mixed fully when the script is called.
So you can cron this to be done for example hourly.
at its most simple, making sure the directories are correct , these shown here are not the standard