<h1>Project "FreeSWITCH Source" received a push.</h1>

<h2>branch: master updated</h2>
<pre>
       via: bdf678e401a8077aab06b9c04004c92ef6631e26 (commit)
      from: e79174cacf6abb943fe34840a5261b940b281c91 (commit)


</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: Anthony Minessale
comments: 
dont run execute_on_fsk when there was no data collected

<span style="color: #000080; font-weight: bold">diff --git a/src/mod/applications/mod_fsk/mod_fsk.c b/src/mod/applications/mod_fsk/mod_fsk.c</span>
<span style="color: #000080; font-weight: bold">index 9802353..0291707 100644</span>
<span style="color: #A00000">--- a/src/mod/applications/mod_fsk/mod_fsk.c</span>
<span style="color: #00A000">+++ b/src/mod/applications/mod_fsk/mod_fsk.c</span>
<span style="color: #800080; font-weight: bold">@@ -220,6 +220,7 @@ static switch_bool_t fsk_detect_callback(switch_media_bug_t *bug, void *user_dat</span>
                                 char *sp;
                                 switch_event_t *event;
                                 const char *app_var;
<span style="color: #00A000">+                                int total = 0;</span>
 
                                 switch_event_create_plain(&amp;event, SWITCH_EVENT_CHANNEL_DATA);
                                 
<span style="color: #800080; font-weight: bold">@@ -255,6 +256,7 @@ static switch_bool_t fsk_detect_callback(switch_media_bug_t *bug, void *user_dat</span>
                                         }
 
                                         if (varname &amp;&amp; val) {
<span style="color: #00A000">+                                                total++;</span>
                                                 switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(pvt-&gt;session), SWITCH_LOG_DEBUG, &quot;%s setting FSK var [%s][%s]\n&quot;, 
                                                                                   switch_channel_get_name(channel), varname, val);
                                                 switch_channel_set_variable(channel, varname, val);
<span style="color: #800080; font-weight: bold">@@ -270,7 +272,7 @@ static switch_bool_t fsk_detect_callback(switch_media_bug_t *bug, void *user_dat</span>
                                         }
                                 }
                                 
<span style="color: #A00000">-                                if ((app_var = switch_channel_get_variable(channel, &quot;execute_on_fsk&quot;))) {</span>
<span style="color: #00A000">+                                if (total &amp;&amp; (app_var = switch_channel_get_variable(channel, &quot;execute_on_fsk&quot;))) {</span>
                                         char *app_arg;
 
                                         switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(pvt-&gt;session), SWITCH_LOG_DEBUG, &quot;%s processing execute_on_fsk [%s]\n&quot;, 
</pre></div>
========================================================================<pre>

Summary of changes:
 src/mod/applications/mod_fsk/mod_fsk.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
</pre>
<p>this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email<br />
For more info, see <a href="http://blog.chomperstomp.com/?p=630">http://blog.chomperstomp.com/?p=630</a>
-- <br />
FreeSWITCH Source</p>