[asterisk-users] Call Recording and Posting

Steve Edwards asterisk.org at sedwards.com
Sun Oct 11 21:57:04 CDT 2009


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



More information about the asterisk-users mailing list