Recording calls via a web application

Hi all,
I am developing a portal for asterisk. now i want to record calls with a click of a button in the portal for an extension. I am wondering is it possible. any ideas??

msvp4u

You could use the Asterisk Manager interface and the action Monitor to start record a call from a web application.

Cheers.

Marco Bruni
www.marcobruni.net

Thanks for the reply Marco Bruni .
I have another doubt when i give an extension number and press record will i be able to record the calls even though it is not active . for example if i start pressing record button after giving the extension and turn it off after 6 months or so will be able to do that functionality is it possible any ideas???

For this don’t use the manager interface, you can do this way: from the web interface save in a database record if the call for an extension should be recorded or not, then in the Asterisk dialplan read the database record for the extension and set a channel variable with the record value, then check the channel variable and if the call should be recorded execute the MixMonitor application before dial the extension, if the call should not be recorded just dial the extension.

Cheers.

Marco Bruni
www.marcobruni.net

Thanks for your reply Marco Bruni i will check and let u know.

i have done the part of making the extensions to be available for recording to be stored in mysql database but for the dial plan verification part i dont know how to do . any ideas any links

regards,
msvp4u

A sample using func_odbc: voip-info.org/wiki/view/Aste … +func_odbc .
A sample using a php agi script: voip-info.org/wiki/view/Aste … lerid+name .

Cheers.

Marco Bruni
www.marcobruni.net