From b1ce63fc2a3c4ab87407bb597761a04aa9d791a3 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 3 Sep 2008 20:03:53 +0000 Subject: [PATCH] fix mod_fax build with latest spandsp git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9427 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_fax/Makefile | 2 +- src/mod/applications/mod_fax/mod_fax.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/mod/applications/mod_fax/Makefile b/src/mod/applications/mod_fax/Makefile index 3a19ceecc2..ff2991e7cc 100644 --- a/src/mod/applications/mod_fax/Makefile +++ b/src/mod/applications/mod_fax/Makefile @@ -3,7 +3,7 @@ BASE=../../../.. SPANDSP_DIR=$(BASE)/libs/spandsp SPANDSP_LA=$(SPANDSP_DIR)/src/libspandsp.la -LOCAL_CFLAGS=-I$(SPANDSP_DIR)/src +LOCAL_CFLAGS=-I$(SPANDSP_DIR)/src -w LOCAL_LIBADD=$(SPANDSP_LA) include $(BASE)/build/modmake.rules diff --git a/src/mod/applications/mod_fax/mod_fax.c b/src/mod/applications/mod_fax/mod_fax.c index 833fac8729..03785a5f98 100644 --- a/src/mod/applications/mod_fax/mod_fax.c +++ b/src/mod/applications/mod_fax/mod_fax.c @@ -148,19 +148,19 @@ SWITCH_STANDARD_APP(rxfax_function) } fax_init(&fax, calling_party); - t30_set_tx_ident(&fax.t30_state, "test"); - t30_set_tx_page_header_info(&fax.t30_state, "test"); - t30_set_rx_file(&fax.t30_state, file_name, -1); + t30_set_tx_ident(&fax.t30, "test"); + t30_set_tx_page_header_info(&fax.t30, "test"); + t30_set_rx_file(&fax.t30, file_name, -1); - t30_set_phase_d_handler(&fax.t30_state, phase_d_handler, NULL); - t30_set_phase_e_handler(&fax.t30_state, phase_e_handler, NULL); + t30_set_phase_d_handler(&fax.t30, phase_d_handler, NULL); + t30_set_phase_e_handler(&fax.t30, phase_e_handler, NULL); - t30_set_ecm_capability(&fax.t30_state, TRUE); - t30_set_supported_compressions(&fax.t30_state, T30_SUPPORT_T4_1D_COMPRESSION | T30_SUPPORT_T4_2D_COMPRESSION | T30_SUPPORT_T6_COMPRESSION); + t30_set_ecm_capability(&fax.t30, TRUE); + t30_set_supported_compressions(&fax.t30, T30_SUPPORT_T4_1D_COMPRESSION | T30_SUPPORT_T4_2D_COMPRESSION | T30_SUPPORT_T6_COMPRESSION); - t30_set_supported_image_sizes(&fax.t30_state, T30_SUPPORT_US_LETTER_LENGTH | T30_SUPPORT_US_LEGAL_LENGTH | T30_SUPPORT_UNLIMITED_LENGTH + t30_set_supported_image_sizes(&fax.t30, T30_SUPPORT_US_LETTER_LENGTH | T30_SUPPORT_US_LEGAL_LENGTH | T30_SUPPORT_UNLIMITED_LENGTH | T30_SUPPORT_215MM_WIDTH | T30_SUPPORT_255MM_WIDTH | T30_SUPPORT_303MM_WIDTH); - t30_set_supported_resolutions(&fax.t30_state, T30_SUPPORT_STANDARD_RESOLUTION | T30_SUPPORT_FINE_RESOLUTION | T30_SUPPORT_SUPERFINE_RESOLUTION + t30_set_supported_resolutions(&fax.t30, T30_SUPPORT_STANDARD_RESOLUTION | T30_SUPPORT_FINE_RESOLUTION | T30_SUPPORT_SUPERFINE_RESOLUTION | T30_SUPPORT_R8_RESOLUTION | T30_SUPPORT_R16_RESOLUTION); write_frame.codec = &write_codec; @@ -192,7 +192,7 @@ SWITCH_STANDARD_APP(rxfax_function) done: - t30_terminate(&fax.t30_state); + t30_terminate(&fax.t30); fax_release(&fax); if (read_codec.implementation) {