can you also make some statistics available on how much this module, if activated, adds to the ressource usage? If you have a busy callcenter, would this make a noticable impact on CPU usage?
From: "Peter Steinbach" <lists@telefaks.de>
To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org>
Sent: MiƩrcoles, 23 de Enero 2013 0:34:41
Subject: Re: [Freeswitch-users] mod_stress
Thanks Steven,
I got it working and reported my howto and findings in the wiki:
http://wiki.freeswitch.org/wiki/Mod_stress
I found it to be a nice application, but as you explained, there
are some false positives.
Best regards
Peter
On 01/22/13 12:39, Steven Ayre wrote:
Media bugs are used to hook into the call and provide
decoded audio to the module. That requires transcoding, naturally.
See stress_callback which is called for each audio frame plus some
init/cleanup hooks, and read up on the API at http://docs.freeswitch.org/group__mb1.html.
I suspect read vs write would correspond to the
speaking/listening directions of the channel. Read from caller,
write to caller? The names come from the media bug API. The
read/write options will add the corresponding media bug, stop
will remove them.
SWITCH_ADD_APP tells you it's a dialplan application - it's
started from dialplan, although you can also trigger dialplan
apps on a channel via ESL using uuid_broadcast.
The FFT algorithm is used to extract the frequencies present
in the sample (the power spectrum). The algorithm then tries
to detect stressed based on that. Looks like the algorithm at
least in part attempts to look for tremor in the voice. More
tremor indicates more stress. Over a threshold it raises an
event.
Bear in mind that as it's pattern recognition (and little
tested at that) you'll get a lot of false positives and false
negatives. It's also looking for something in the voice that
may or may not be there - some people might be able to speak
with an unstressed voice when they're actually quite stressed.
-Steve
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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
--
With kind regards
Peter Steinbach
Telefaks Services GmbH
mailto:lists (att) telefaks.de
Internet: www.telefaks.de
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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