[asterisk-commits] mnicholson: branch irroot/t38gateway-trunk r320879 - /team/irroot/t38gateway-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 25 13:05:19 CDT 2011


Author: mnicholson
Date: Wed May 25 13:05:08 2011
New Revision: 320879

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=320879
Log:
Enable support for spandsp 0.0.5 and for building with --enable-dev-mode

Modified:
    team/irroot/t38gateway-trunk/res/res_fax.c
    team/irroot/t38gateway-trunk/res/res_fax_spandsp.c

Modified: team/irroot/t38gateway-trunk/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-trunk/res/res_fax.c?view=diff&rev=320879&r1=320878&r2=320879
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax.c Wed May 25 13:05:08 2011
@@ -2749,11 +2749,11 @@
 	struct ast_format orig_read_format;
 	AST_LIST_HEAD_NOLOCK(, ast_frame) deferred_frames;
 
-	parse = ast_strdupa(data);
-
 	AST_DECLARE_APP_ARGS(args,
 		AST_APP_ARG(timeout);
 	);
+
+	parse = ast_strdupa(data);
 	AST_STANDARD_APP_ARGS(args, parse);
 
 	if (args.timeout) {

Modified: team/irroot/t38gateway-trunk/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-trunk/res/res_fax_spandsp.c?view=diff&rev=320879&r1=320878&r2=320879
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax_spandsp.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax_spandsp.c Wed May 25 13:05:08 2011
@@ -653,7 +653,7 @@
 	p->t38_core_state=&p->t38_gw_state.t38x.t38;
 #else
 	/* for spandsp release 0.0.5 */
-	p->t38_core_state=&t38_state.t38;
+	p->t38_core_state=&p->t38_gw_state.t38;
 #endif
 
 	if (! t38_gateway_init(&p->t38_gw_state, t38_tx_packet_handler, p)) {
@@ -699,9 +699,9 @@
 #if SPANDSP_RELEASE_DATE >= 20091228
 		t38_core_send_indicator(&p->t38_gw_state.t38x.t38, T38_IND_NO_SIGNAL);
 #elif SPANDSP_RELEASE_DATE >= 20081012
-		t38_core_send_indicator(&p->t38_gw_state.t38x.t38, T38_IND_NO_SIGNAL, t38_state.t38x.t38.indicator_tx_count);
+		t38_core_send_indicator(&p->t38_gw_state.t38x.t38, T38_IND_NO_SIGNAL, p->t38_gw_state.t38x.t38.indicator_tx_count);
 #else
-		t38_core_send_indicator(&t38_state.t38, T38_IND_NO_SIGNAL, t38_state.t38.indicator_tx_count);
+		t38_core_send_indicator(&p->t38_gw_state.t38, T38_IND_NO_SIGNAL, p->t38_gw_state.t38.indicator_tx_count);
 #endif
 	}
 




More information about the asterisk-commits mailing list