It requires transcoding so it will increase CPU usage. That&#39;ll only increase CPU usage if you&#39;re not already transcoding. It also calculates the FFT, which from memory is a relatively expensive operation... there will be a noticable impact of using it.<br>

<br>As for G729 licenses, it&#39;ll use an extra license for a channel that&#39;s not being transcoded/recorded/eavesdropped etc - but won&#39;t if you&#39;re already doing one of those on it.<div><br></div><div>-Steve</div>

<div><br><br><div class="gmail_quote">On 23 January 2013 17:47, Raimund Sacherer <span dir="ltr">&lt;<a href="mailto:raimund.sacherer@logitravel.com" target="_blank">raimund.sacherer@logitravel.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif">Hi Peter, <br><br>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?<br>

<br>Also, would this use an additional G729 codec for calls using this codec?<br><br>thanks, <br>best regards<br>Raimund<br><br><hr><div style="font-size:12pt;font-style:normal;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal">

<b>From: </b>&quot;Peter Steinbach&quot; &lt;<a href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>&gt;<br><b>To: </b>&quot;FreeSWITCH Users Help&quot; &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>

<b>Sent: </b>Miércoles, 23 de Enero 2013 0:34:41<br><b>Subject: </b>Re: [Freeswitch-users] mod_stress<div><div class="h5"><br><br>
  
    
  
    <div>Thanks Steven,<br>
      <br>
      I got it working and reported my howto and findings in the wiki:<br>
      <a href="http://wiki.freeswitch.org/wiki/Mod_stress" target="_blank">http://wiki.freeswitch.org/wiki/Mod_stress</a><br>
      <br>
      I found it to be a nice application, but as you explained, there
      are some false positives.<br>
      <br>
      Best regards<br>
      Peter<br>
      <br>
      On 01/22/13 12:39, Steven Ayre wrote:<br>
    </div>
    <blockquote>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 <a href="http://docs.freeswitch.org/group__mb1.html" target="_blank">http://docs.freeswitch.org/group__mb1.html</a>.
      <div>
        <br>
      </div>
      <div>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.<br>
        <div><br>
        </div>
        <div>SWITCH_ADD_APP tells you it&#39;s a dialplan application - it&#39;s
          started from dialplan, although you can also trigger dialplan
          apps on a channel via ESL using uuid_broadcast.</div>
        <div><br>
        </div>
        <div>
          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.</div>
        <div><br>
        </div>
        <div>Bear in mind that as it&#39;s pattern recognition (and little
          tested at that) you&#39;ll get a lot of false positives and false
          negatives. It&#39;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&#39;re actually quite stressed.</div>
        <div><br>
        </div>
        <div>-Steve</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <br>
          <br>
          <div class="gmail_quote">On 22 January 2013 11:19, Peter
            Steinbach <span dir="ltr">&lt;<a href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div>
                <div>Hello Anthony,<br>
                  <br>
                  although it may be incomplete, it may be useful for
                  us. Can you give us some basic explanation, how this
                  works? <br>
                  I can see in the code that there is a stress command
                  with read|write|stop parameter. <br>
                  Is this to be issued via event socket or is it a
                  dialplan application? I suspect that &quot;read&quot; somehow
                  starts the detection and &quot;stop&quot; somehow stops the
                  detection. For &quot;write&quot;  I currently have no idea.<br>
                  <br>
                  I would be happy to test this and report my
                  configuration, explanations and examples in the wiki.
                  <br>
                  <br>
                  Best regards<span><font color="#888888"><br>
                      Peter</font></span>
                  <div>
                    <div><br>
                      <br>
                      <br>
                      On 01/22/13 00:30, Anthony Minessale wrote:<br>
                    </div>
                  </div>
                </div>
                <div>
                  <div>
                    <blockquote>
                      <div dir="ltr">That module is incomplete we made
                        it several years ago to test some code that was
                        supposed to pick up on stress in your voice in a
                        media bug so we could fire events and whisper
                        &quot;lie&quot; to the caller as he talked to the guy.
                        <div> <br>
                        </div>
                      </div>
                      <div class="gmail_extra"><br>
                        <br>
                        <div class="gmail_quote">On Mon, Jan 21, 2013 at
                          4:56 PM, Peter Steinbach <span dir="ltr">&lt;<a href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>&gt;</span>
                          wrote:<br>
                          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I am also
                            wondering, what this module does in detail.<br>
                            <br>
                            Regarding the source code, I can see that
                            FFT&#39;s are made in order to to<br>
                            get some sort of frequency profile.<br>
                            But the code and remarks do not give me a
                            clue how this module actually<br>
                            works.<br>
                            <br>
                            Best regards Peter<br>
                            <br>
                            <br>
                            <br>
                            On 05/26/12 15:05, BF wrote:<br>
                            &gt; Hello,<br>
                            &gt;<br>
                            &gt; I&#39;d like to know what the &quot;stress
                            write&quot; from mod_stress module does. I have
                            hard time finding documentation or an
                            example about mod_stress module.<br>
                            &gt;<br>
                            &gt; Anyone?<br>
                            &gt;<br>
                            &gt; Thank you.<br>
                            &gt;<br>
                            &gt; Eric<br>
                            &gt;
_________________________________________________________________________<br>
                            &gt; Professional FreeSWITCH Consulting
                            Services:<br>
                            &gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                            &gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                            &gt;<br>
                            &gt; FreeSWITCH-powered IP PBX: The CudaTel
                            Communication Server<br>
                            &gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                            &gt;<br>
                            &gt; Official FreeSWITCH Sites<br>
                            &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                            &gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                            &gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                            &gt;<br>
                            &gt; Join Us At ClueCon - Aug 7-9, 2012<br>
                            &gt;<br>
                            &gt; FreeSWITCH-users mailing list<br>
                            &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                            &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                            &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                            &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                            &gt;<br>
                            <br>
                            <br>
                            --<br>
                            With kind regards<br>
                            Peter Steinbach<br>
                            <br>
                            Telefaks Services GmbH<br>
                            mailto:<a href="mailto:lists" target="_blank">lists</a>
                            (att) <a href="http://telefaks.de" target="_blank">telefaks.de</a><br>
                            Internet: <a href="http://www.telefaks.de" target="_blank">www.telefaks.de</a><br>
                            <br>
                            <br>
_________________________________________________________________________<br>
                            Professional FreeSWITCH Consulting Services:<br>
                            <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
                            <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
                            <br>
                            FreeSWITCH-powered IP PBX: The CudaTel
                            Communication Server<br>
                            <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                            <br>
                            Official FreeSWITCH Sites<br>
                            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                            <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                            <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                            <br>
                            FreeSWITCH-users mailing list<br>
                            <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                            <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                            UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                          </blockquote>
                        </div>
                        <br>
                        <br clear="all">
                        <div><br>
                        </div>
                        -- <br>
                        Anthony Minessale II<br>
                        <br>
                        FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
                        ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
                        Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
                        <br>
                        AIM: anthm<br>
                        <a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
                        GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
                        IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>
                        #freeswitch<br>
                        <br>
                        FreeSWITCH Developer Conference<br>
                        <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
                        <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
                        pstn:<a href="tel:%2B19193869900" target="_blank">+19193869900</a> </div>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
                    </blockquote>
                    <br>
                    <br>
                    <pre>-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
<a href="mailto:lists" target="_blank">mailto:lists</a> (att) <a href="http://telefaks.de" target="_blank">telefaks.de</a>
Internet: <a href="http://www.telefaks.de" target="_blank">www.telefaks.de</a>

</pre>
                  </div>
                </div>
              </div>
              <br>
_________________________________________________________________________<br>
              Professional FreeSWITCH Consulting Services:<br>
              <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
              <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
              <br>
              FreeSWITCH-powered IP PBX: The CudaTel Communication
              Server<br>
              <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
              <br>
              Official FreeSWITCH Sites<br>
              <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
              <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
              <br>
              FreeSWITCH-users mailing list<br>
              <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
              <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
              UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
              <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre>-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
<a href="mailto:lists" target="_blank">mailto:lists</a> (att) <a href="http://telefaks.de" target="_blank">telefaks.de</a>
Internet: <a href="http://www.telefaks.de" target="_blank">www.telefaks.de</a>

</pre>
  <br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>

<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>

<br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>

<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>

</div></div></div><br><br><br>-- <br><div><br></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>