how to record entire conversation on selected calls?
hello,
We would like to use fop2 to record entire call instead of from the moment recording button is pressed.
I believe the easiest way forward would be to use Asterisk's mixmonitor.
The way it supposed to work:
1. Record conversation on call bridging with new variable e.g. DeleteOnHangup=yes
2. Give agent ability to set channel variable to DeleteOnHangup=no
3. Delete (or not) call recording on hangup based on DeleteOnHangup value.
4. if DeleteOnHangup=no inject file path to fop2.fop2recordings table in mysql
I know how to get it configured on asterisk side but struggling with fop2 side.
Can anyone please help?
Thanks,
We would like to use fop2 to record entire call instead of from the moment recording button is pressed.
I believe the easiest way forward would be to use Asterisk's mixmonitor.
The way it supposed to work:
1. Record conversation on call bridging with new variable e.g. DeleteOnHangup=yes
2. Give agent ability to set channel variable to DeleteOnHangup=no
3. Delete (or not) call recording on hangup based on DeleteOnHangup value.
4. if DeleteOnHangup=no inject file path to fop2.fop2recordings table in mysql
I know how to get it configured on asterisk side but struggling with fop2 side.
Can anyone please help?
Thanks,
Comments
How can you do that on asterisk? Pls share your dialplan/config.
Thanks
Where do I find "pause recording plug-in" please? Can't find it at http://www.fop2.com/buy.php
or anything with functionality that would match what you described?
Thanks,
There are *many* plugins there for you to try, most of them are free/included.
Best regards,
Thanks,
update: I connected my box to the internet. it says "Not compatible with this version" next to "Pause Recording Button" plugin. Its acutaly the only plugin with that status in the list.
I am using fop2 v2.31 and and fop2 manager v1.1.3 on asterisk 13.9.1
Is there github repository for the plugin (need to get hold of configuration files), alternatively what version of fop2/fop2 manager should I install to be able to download the plugin?
Thanks,
Try that link to download the plugin, you will be able to extract an inspect the source.
You need at least FOP 2.31.01 for that plugin, latest version is 2.31.02, you should upgrade FOP2 anyways if you have the chance.
Best regards,
I spent some time learning perl to understand what .pl script does and managed to put together functionality I am after.
1. Is there any manual on how to create fop2 plugin and how fop2 plugins interacts with fop2 and asterisk?
e.g. line #10 of attached file calls function get_btn_config with 3 variables from module "main". Where do I find main module?
2. how can I debug *.pl script. I confirmed it compiles correctly but when I try to run it from command line it doesn't display any uncommented print " \n" lines.
3. As far as I understand only .jp and .pl files contains any moving parts. should I also look anywhere else?
Thanks,
get_btn_config retrieves button configuration from $context, $origin, 'HEADER': $context is the tenant/context, $origin is the button number position that originates or makes the request, HEADER is the button header as in buttons.cfg, the only one added is MAINCHANNEL for the [SIP/xxxx] config.
Then you see get_active_chan and get_active_link that takes that retrieved channel, those functions will return the live asterisk channel (with session id), and the bridged channel. So you can use them as parameters for any Manager Action you might need to send to the server afterwards.
There is a little bit of spanish in there, but variables and function names are self explanatory (assuming you know about Asterisk, AMI, etc).
I have found /usr/src/fop2/plugins/sampleplugin/sampleplugin.pl
How can I see output of print inside perl sub (one from the script) e.g. $Client_Post_Command_Handler{'pauserecording'}{'custompauserecording'}
print "origen $origen destino $destino contexto $contexto\n";
or
print "my channel $mychannel active $activechannel bridge $bridgechannel\n";
Line 8 line 19 of script attached in my previous post.
Thanks,
For those who may have similar requirement this is how we got it working.
Regards,