via: 53fc3f7f78355e4ba574468fc5f351848273b6ae (commit)
from: fe152626db1bd4f23b3ba49fdac2325b5987e13d (commit)
= COMMIT LOG ===========================================================
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
diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c
index ac4196a..76feba8 100644
--- a/src/mod/endpoints/mod_sofia/sofia_glue.c
+++ b/src/mod/endpoints/mod_sofia/sofia_glue.c
@@ -3820,6 +3820,7 @@ static switch_t38_options_t *tech_process_udptl(private_object_t *tech_pvt, sdp_
{
switch_t38_options_t *t38_options = switch_channel_get_private(tech_pvt->channel, "t38_options");
sdp_attribute_t *attr;
+ const char *var;
if (!t38_options) {
t38_options = switch_core_session_alloc(tech_pvt->session, sizeof(switch_t38_options_t));
@@ -3899,6 +3900,21 @@ static switch_t38_options_t *tech_process_udptl(private_object_t *tech_pvt, sdp_
switch_channel_set_private(tech_pvt->channel, "t38_options", t38_options);
switch_channel_set_app_flag_key("T38", tech_pvt->channel, CF_APP_T38);
+ if ((var = switch_channel_get_variable(tech_pvt->channel, "sip_execute_on_image"))) {
+ char *app, *arg = NULL;
+ app = switch_core_session_strdup(tech_pvt->session, var);
+
+ if (strstr(app, "::")) {
+ switch_core_session_execute_application_async(tech_pvt->session, app, arg);
+ } else {
+ if ((arg = strchr(app, ' '))) {
+ *arg++ = '\0';
+ }
+
+ switch_core_session_execute_application(tech_pvt->session, app, arg);
+ }
+ }
+
return t38_options;
}
Summary of changes: src/mod/endpoints/mod_sofia/sofia_glue.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-)
this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630
--
FreeSWITCH Source