Hello, I'm working on a call recording solution. I would like recordings to either be automatically uploaded via FTP, or posted to a URL for processing by our main server. Is Asterisk capable of doing this or will I have to create a separate application that monitors a temp directory for new recordings? I ask because I don't have any experience in Linux programming, so I won't be able to create a monitoring program on my own. Many thanks Dan Journo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091012/9a94904b/attachment.htm
Dan, You can do this directly in the dialplan. See the System command. It allows you to call any program on the system (ftp, scp, mv, etc). Keep in mind that depending on the volume of calls you're handling, you might run into I/O issues on the disk side. If you're talking about a machine under enough load, you might need another alternative. -Elliot From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dan Journo Sent: Sunday, October 11, 2009 7:15 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Call Recording and Posting Hello, I'm working on a call recording solution. I would like recordings to either be automatically uploaded via FTP, or posted to a URL for processing by our main server. Is Asterisk capable of doing this or will I have to create a separate application that monitors a temp directory for new recordings? I ask because I don't have any experience in Linux programming, so I won't be able to create a monitoring program on my own. Many thanks Dan Journo ________________________________ This message is intended only for the use of the individual (s) or entity to which it is addressed and may contain information that is privileged, confidential, and/or proprietary to Calling Circles LLC and its affiliates. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, forwarding or copying of this communication is prohibited without the express permission of the sender. If you have received this communication in error, please notify the sender immediately and delete the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091011/d24ea14c/attachment.htm
On Mon, 12 Oct 2009, Dan Journo wrote:> I'm working on a call recording solution. I would like recordings to > either be automatically uploaded via FTP, or posted to a URL for > processing by our main server. > > Is Asterisk capable of doing this or will I have to create a separate > application that monitors a temp directory for new recordings? > > I ask because I don't have any experience in Linux programming, so I > won't be able to create a monitoring program on my own.There is no built in facility -- but there are all the "parts." There is the curl() application, but I don't know if it exposes enough "curl" to upload files. There is the system() application which will let you execute any command line you can construct. There is the agi() application which lets an external program interact with the dialplan. Monitoring a temp directory with an external program would be the "worst" way. Personally, I would wrap up the entire "call recording solution" in an AGI so you have a full featured language (my preference is C) and can hide all the ugly details and keep your dialplan simple and maintainable. I've done these kind of applications where either a "control file" needed to be written and uploaded with the recording or a database needed updating. Both of these can get ugly in a dialplan. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
You can try using NFS. Also you can pay some one to write script that would move the files over on hang up. ----- Original Message ----- From: Dan Journo To: asterisk-users at lists.digium.com Sent: Monday, October 12, 2009 01:15 Subject: [asterisk-users] Call Recording and Posting Hello, I'm working on a call recording solution. I would like recordings to either be automatically uploaded via FTP, or posted to a URL for processing by our main server. Is Asterisk capable of doing this or will I have to create a separate application that monitors a temp directory for new recordings? I ask because I don't have any experience in Linux programming, so I won't be able to create a monitoring program on my own. Many thanks Dan Journo ------------------------------------------------------------------------------ _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091012/bc45d0be/attachment.htm
Dan Journo wrote:> I'm working on a call recording solution. I would like recordings to > either be automatically uploaded via FTP, or posted to a URL for > processing by our main server. > Is Asterisk capable of doing this or will I have to create a separate > application that monitors a temp directory for new recordings? >As said by others, there is no such built-in capability> I ask because I don't have any experience in Linux programming, so I > won't be able to create a monitoring program on my own. >It is really important for you that the recordings are available asap on your FTP destination? I had a similar task and I found problematic to upload the files from inside the dialplan, Is not that it can't be done, but if the FTP is slow and your number of connections limited, you may run into a problem with simultaneous calls ending and asterisk trying to upload 20 files at the same time. In my case the files could be uploaded every hour, so I made a simple bash script that uploads the new files to the FTP using 'curlftpfs', a nice command that mounts the remote FTP on a local mount point using FUSE, then the script just moves the files from the local folder to the FTP, and voila. Asterisk just takes care of moving recordings that ended to the desired path. I can post the bash script if you are interested. -- Iv?n Stepaniuk Alba Fot?nica S. L. www.albafotonica.com
Steve Edwards wrote:> On Tue, 13 Oct 2009, Dan Journo wrote: > > >> To avoid the problem of deleting/copying calls that are still being >> recorded, I could record the call into a temp directory. Then using the >> dial plan, I could copy the temp recording into the ftp root directory >> once the call has ended. >> > > True, but if you need to execute a process at the end of the call, why not > make it an AGI and hide all the ugly details and keep your dialplan nice > and clean and shiny and maintainable? > > Your recordings will be "instantly" available and the correct operation of > your system does not depend on an externally scheduled external process > involving clear-text passwords and obscure packages. Your successor will > thank you :) >This is true, doing everything from inside an AGI script would be nicer, the ugly part comes if you are tied to an old and ugly FTP server, specially if its from a hosting provider that limits the connection count to 2, or so. AGI+sshfs/scp/nfs/whateverfs... would be much more clean&shiny (tm). -- Iv?n Stepaniuk Alba Fot?nica S. L. www.albafotonica.com