From 7dd0838896f2accc1e644518a853b2ffe2e65ce9 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 21 Feb 2009 00:35:52 +0000 Subject: [PATCH] update to match changes to spandsp api (FSBUILD-129) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12214 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_fax/mod_fax.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/mod/applications/mod_fax/mod_fax.c b/src/mod/applications/mod_fax/mod_fax.c index 4262f4bba4..51d0b5c04c 100644 --- a/src/mod/applications/mod_fax/mod_fax.c +++ b/src/mod/applications/mod_fax/mod_fax.c @@ -184,9 +184,8 @@ static void phase_e_handler(t30_state_t * s, void *user_data, int result) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Remote station id: %s\n", far_ident); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Local station id: %s\n", local_ident); -#if 0 - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Pages transferred: %i\n", t.pages_transferred); -#endif + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Pages transferred: %i\n", + pvt->app_mode == FUNCTION_TX ? t.pages_rx : t.pages_rx); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Total fax pages: %i\n", t.pages_in_file); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Image resolution: %ix%i\n", t.x_resolution, t.y_resolution); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Transfer Rate: %i\n", t.bit_rate); @@ -214,13 +213,11 @@ static void phase_e_handler(t30_state_t * s, void *user_data, int result) switch_channel_set_variable(channel, "fax_local_station_id", local_ident); switch_channel_set_variable(channel, "fax_remote_station_id", far_ident); -#if 0 - tmp = switch_mprintf("%i", t.pages_transferred); + tmp = switch_mprintf("%i", pvt->app_mode == FUNCTION_TX ? t.pages_rx : t.pages_rx); if (tmp) { switch_channel_set_variable(channel, "fax_document_transferred_pages", tmp); switch_safe_free(tmp); } -#endif tmp = switch_mprintf("%i", t.pages_in_file); if (tmp) {