[Freeswitch-users] How to remove recorded files with silence

Tihomir Culjaga tculjaga at gmail.com
Wed May 23 10:48:49 UTC 2018


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 at 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 at 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 at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180523/b69116d5/attachment.html>


More information about the FreeSWITCH-users mailing list