you need to define what silence is.

from my point of view, doesn't have sense to start recording if a channel is not bridged ( conversation established ). Only when A and B legs are bridged and answered, recording should start.
also, you can remove generated recordings for A and B leg if both were not bridged and/or answered.

its all based on your business logic and where you expect the conversation to be.


in my contact center, i start recording when the Agent leg answers the call and have no silence in recorded files


on Agent Answer:

"api uuid_setvar 1318cbc3-ad28-498d-998f-10157ae449f2 bridge_pre_execute_aleg_app record_session"
"api uuid_setvar 1318cbc3-ad28-498d-998f-10157ae449f2 bridge_pre_execute_aleg_arg /nfs/nexios/recordings/5/queue_recordings/2018-03-12.19.42.22-385916331550.wav"
"api uuid_setvar 1318cbc3-ad28-498d-998f-10157ae449f2 bridge_pre_execute_aleg_data /nfs/nexios/recordings/5/queue_recordings/2018-03-12.19.42.22-385916331550.wav"
"bgapi uuid_bridge 1318cbc3-ad28-498d-998f-10157ae449f2 32dfe8e2-6eda-4bd6-8f73-fd8d6ac531c1"




On 21 May 2018 at 22:15, Michael Jerris <mike@jerris.com> wrote:
I think it would be a cool feature to add in to the api, and we can do it much cheaper compute wise as we go as we are already doing the silence calculations anyways, it just doesn’t exist today.  Patches welcome.


On May 21, 2018, at 12:39 PM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:

I would do this outside of freeswitch with nice priority. I guess "sox" should be able to do the job. This will preserve CPU cycles for important real-time work.




On Fri, May 18, 2018, 16:58 Michael Jerris <mike@jerris.com> wrote:
That exact feature is not there, but you might be able to do some math of length against silence hits to figure out if its all silence or not.  Take a look at how silence_hits are figured out in switch_ivr_record_file to understand the math you have to do to length.

Mike

> On May 17, 2018, at 2:59 AM, Eugene Prokopiev <enp@itx.ru> wrote:
>
> Hi,
>
> Is it possible to automatically remove recorded files which contains
> nothing except silence? Can mod_dptools:record do this just after
> recoding attempt?
>



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org