]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_fax should go away
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 17 Jun 2010 20:14:09 +0000 (15:14 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 17 Jun 2010 20:14:09 +0000 (15:14 -0500)
src/mod/applications/mod_fax/mod_fax.c

index 010a5b015d338bbb021060472c96f8df64c5c20e..a6ddfe5933798e881e0ab8b860ee5e94bf0667eb 100644 (file)
@@ -758,15 +758,11 @@ static t38_mode_t negotiate_t38(pvt_t *pvt)
         switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "T38FaxMaxDatagram = %d\n", t38_options->T38FaxMaxDatagram);
         switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "T38FaxUdpEC = '%s'\n", t38_options->T38FaxUdpEC);
         switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "T38VendorInfo = '%s'\n", switch_str_nil(t38_options->T38VendorInfo));
-        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "ip = '%s'\n", t38_options->ip ? t38_options->ip : "Not specified");
-        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "port = %d\n", t38_options->port);
+        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "ip = '%s'\n", t38_options->remote_ip ? t38_options->remote_ip : "Not specified");
+        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "port = %d\n", t38_options->remote_port);
 
         /* Time to practice our negotiating skills, by editing the t38_options */
 
-        /* use default IP/PORT */
-        t38_options->ip = NULL;
-        t38_options->port = 0;
-
         if (t38_options->T38FaxVersion > 3) {
             t38_options->T38FaxVersion = 3;
         }
@@ -852,9 +848,6 @@ static t38_mode_t request_t38(pvt_t *pvt)
         t38_options->T38FaxUdpEC = "t38UDPRedundancy";
         t38_options->T38VendorInfo = "0 0 0";
         
-        /* use default IP/PORT */
-        t38_options->ip = NULL;
-        t38_options->port = 0;
         switch_channel_set_private(channel, "t38_options", t38_options);
         pvt->t38_mode = T38_MODE_REQUESTED;