<h1>Project "FreeSWITCH Source" received a push.</h1>
<h2>branch: master updated</h2>
<pre>
via: 53fc3f7f78355e4ba574468fc5f351848273b6ae (commit)
from: fe152626db1bd4f23b3ba49fdac2325b5987e13d (commit)
</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: Anthony Minessale
comments:
add sip_execute_on_image variable similar to execute_on_answer etc so you can run t38_gateway or rxfax etc when you get a T.38 re-invite but no CNG tone or you want to ignore the tone and only react when getting a T.38 re-invite
<span style="color: #000080; font-weight: bold">diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c</span>
<span style="color: #000080; font-weight: bold">index ac4196a..76feba8 100644</span>
<span style="color: #A00000">--- a/src/mod/endpoints/mod_sofia/sofia_glue.c</span>
<span style="color: #00A000">+++ b/src/mod/endpoints/mod_sofia/sofia_glue.c</span>
<span style="color: #800080; font-weight: bold">@@ -3820,6 +3820,7 @@ static switch_t38_options_t *tech_process_udptl(private_object_t *tech_pvt, sdp_</span>
{
        switch_t38_options_t *t38_options = switch_channel_get_private(tech_pvt->channel, "t38_options");
        sdp_attribute_t *attr;
<span style="color: #00A000">+        const char *var;</span>
        if (!t38_options) {
                t38_options = switch_core_session_alloc(tech_pvt->session, sizeof(switch_t38_options_t));
<span style="color: #800080; font-weight: bold">@@ -3899,6 +3900,21 @@ static switch_t38_options_t *tech_process_udptl(private_object_t *tech_pvt, sdp_</span>
        switch_channel_set_private(tech_pvt->channel, "t38_options", t38_options);
        switch_channel_set_app_flag_key("T38", tech_pvt->channel, CF_APP_T38);
<span style="color: #00A000">+        if ((var = switch_channel_get_variable(tech_pvt->channel, "sip_execute_on_image"))) {</span>
<span style="color: #00A000">+                char *app, *arg = NULL;</span>
<span style="color: #00A000">+                app = switch_core_session_strdup(tech_pvt->session, var);</span>
<span style="color: #00A000">+                </span>
<span style="color: #00A000">+                if (strstr(app, "::")) {</span>
<span style="color: #00A000">+                        switch_core_session_execute_application_async(tech_pvt->session, app, arg);</span>
<span style="color: #00A000">+                } else {</span>
<span style="color: #00A000">+                        if ((arg = strchr(app, ' '))) {</span>
<span style="color: #00A000">+                                *arg++ = '\0';</span>
<span style="color: #00A000">+                        }</span>
<span style="color: #00A000">+                        </span>
<span style="color: #00A000">+                        switch_core_session_execute_application(tech_pvt->session, app, arg);</span>
<span style="color: #00A000">+                }                </span>
<span style="color: #00A000">+        }</span>
<span style="color: #00A000">+</span>
        return t38_options;
}
</pre></div>
========================================================================<pre>
Summary of changes:
src/mod/endpoints/mod_sofia/sofia_glue.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 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>