]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODAPP-457
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 20 Sep 2010 20:32:48 +0000 (15:32 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 20 Sep 2010 20:32:57 +0000 (15:32 -0500)
src/mod/applications/mod_spandsp/mod_spandsp_fax.c

index 2ea3eb00a37149e3237c6fddfe1cb0b6aa198b35..9b8b051f50a84f6a08329b37acd3bdaa01fdbc9a 100644 (file)
@@ -789,9 +789,9 @@ static t38_mode_t negotiate_t38(pvt_t *pvt)
         t38_options->T38FaxRateManagement = "transferredTCF";
         t38_options->T38FaxMaxBuffer = 2000;
         t38_options->T38FaxMaxDatagram = LOCAL_FAX_MAX_DATAGRAM;
-        if (strcasecmp(t38_options->T38FaxUdpEC, "t38UDPRedundancy") == 0
-            ||
-            strcasecmp(t38_options->T38FaxUdpEC, "t38UDPFEC") == 0) {
+        if (!zstr(t38_options->T38FaxUdpEC) &&
+            (strcasecmp(t38_options->T38FaxUdpEC, "t38UDPRedundancy") == 0 ||
+             strcasecmp(t38_options->T38FaxUdpEC, "t38UDPFEC") == 0)) {
             t38_options->T38FaxUdpEC = "t38UDPRedundancy";
         } else {
             t38_options->T38FaxUdpEC = NULL;