]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add _preconfigured_t38_options as a back door for opal
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 20 Aug 2012 17:06:36 +0000 (12:06 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 20 Aug 2012 17:06:42 +0000 (12:06 -0500)
src/mod/applications/mod_spandsp/mod_spandsp_fax.c

index d5b80b6e093acb2e49267a19251500690a988757..0b8f5d4f6103ed8829d54c237fef6a7ba34665e1 100644 (file)
@@ -1102,8 +1102,14 @@ static t38_mode_t request_t38(pvt_t *pvt)
                enabled = 0;
        }
 
+
+
        if (enabled) {
-               t38_options = switch_core_session_alloc(session, sizeof(*t38_options));
+
+        if (!(t38_options = switch_channel_get_private(channel, "_preconfigured_t38_options"))) {
+            t38_options = switch_core_session_alloc(session, sizeof(*t38_options));
+            switch_channel_set_private(channel, "_preconfigured_t38_options", NULL);
+        }
 
                t38_options->T38MaxBitRate = (pvt->disable_v17) ? 9600 : 14400;
                t38_options->T38FaxVersion = 0;