[asterisk-commits] irroot: branch irroot/t38gateway-1.8 r333503 - /team/irroot/t38gateway-1.8/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Aug 28 04:06:44 CDT 2011


Author: irroot
Date: Sun Aug 28 04:06:40 2011
New Revision: 333503

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=333503
Log:
set detected_v21 on tones not on sending T38 params
no need to check if frame is DTMF before running ast_dsp_process ir checked there

Modified:
    team/irroot/t38gateway-1.8/res/res_fax.c

Modified: team/irroot/t38gateway-1.8/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-1.8/res/res_fax.c?view=diff&rev=333503&r1=333502&r2=333503
==============================================================================
--- team/irroot/t38gateway-1.8/res/res_fax.c (original)
+++ team/irroot/t38gateway-1.8/res/res_fax.c Sun Aug 28 04:06:40 2011
@@ -2614,13 +2614,13 @@
 		return f;
 	}
 
-	if ((dfr->frametype != AST_FRAME_DTMF) && !(dfr = ast_dsp_process(active, active_dsp, dfr))) {
+	if (!(dfr = ast_dsp_process(active, active_dsp, dfr))) {
 		return f;
 	}
 
 	if (dfr->frametype == AST_FRAME_DTMF && ((dfr->subclass.integer == 'e') || (dfr->subclass.integer == 'g'))) {
+		gateway->detected_v21 = 1;
 		if (ast_channel_get_t38_state(other) == T38_STATE_UNKNOWN) {
-			gateway->detected_v21 = 1;
 			ast_debug(1, "detected v21 preamble from %s\n", active->name);
 			return fax_gateway_request_t38(gateway, chan, f);
 		} else {




More information about the asterisk-commits mailing list