]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
It was impossible to disable ECM with T.38 in gateway mode
authorPatrice Fournier <patrice.fournier@ifax.com>
Mon, 30 Jun 2014 20:30:26 +0000 (16:30 -0400)
committerPatrice Fournier <patrice.fournier@ifax.com>
Tue, 8 Jul 2014 05:05:28 +0000 (01:05 -0400)
src/mod/applications/mod_spandsp/mod_spandsp_fax.c

index 09378d71f59dc206f01aca62c695b94fe4b8f9ef..8531789e510e1240cd436b0cc2ce1f8663189568 100644 (file)
@@ -838,12 +838,6 @@ static switch_status_t spanfax_init(pvt_t *pvt, transport_mode_t trans_mode)
                t38_gateway_set_ecm_capability(pvt->t38_gateway_state, pvt->use_ecm);
                switch_channel_set_variable(channel, "fax_ecm_requested", pvt->use_ecm ? "true" : "false");
 
-               if (switch_true(switch_channel_get_variable(channel, "FAX_DISABLE_ECM"))) {
-                       t38_gateway_set_ecm_capability(pvt->t38_gateway_state, FALSE);
-               } else {
-                       t38_gateway_set_ecm_capability(pvt->t38_gateway_state, TRUE);
-               }
-
                span_log_set_message_handler(t38_gateway_get_logging_state(pvt->t38_gateway_state), mod_spandsp_log_message, pvt->session);
                span_log_set_message_handler(t38_core_get_logging_state(pvt->t38_core), mod_spandsp_log_message, pvt->session);
 
@@ -853,7 +847,6 @@ static switch_status_t spanfax_init(pvt_t *pvt, transport_mode_t trans_mode)
                }
 
                t38_set_t38_version(pvt->t38_core, 0);
-               t38_gateway_set_ecm_capability(pvt->t38_gateway_state, 1);
 
                return SWITCH_STATUS_SUCCESS;
        default: