[asterisk-commits] mnicholson: trunk r327598 - /trunk/res/res_fax.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 11 12:23:59 CDT 2011


Author: mnicholson
Date: Mon Jul 11 12:23:54 2011
New Revision: 327598

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=327598
Log:
renamed fax_gateway_send_ced() to fax_gateway_request_t38()

Modified:
    trunk/res/res_fax.c

Modified: trunk/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_fax.c?view=diff&rev=327598&r1=327597&r2=327598
==============================================================================
--- trunk/res/res_fax.c (original)
+++ trunk/res/res_fax.c Mon Jul 11 12:23:54 2011
@@ -2470,7 +2470,7 @@
 	return 0;
 }
 
-static struct ast_frame *fax_gateway_send_ced(struct fax_gateway *gateway, struct ast_channel *chan, struct ast_frame *f)
+static struct ast_frame *fax_gateway_request_t38(struct fax_gateway *gateway, struct ast_channel *chan, struct ast_frame *f)
 {
 	struct ast_frame *fp;
 	struct ast_control_t38_parameters t38_parameters = {
@@ -2506,7 +2506,7 @@
 	gateway->ced_timeout_start.tv_sec = 0;
 	gateway->ced_timeout_start.tv_usec = 0;
 
-	ast_debug(1, "detected CED tone; requesting T.38 for gateway session for %s\n", chan->name);
+	ast_debug(1, "requesting T.38 for gateway session for %s\n", chan->name);
 	return fp;
 }
 
@@ -2536,7 +2536,7 @@
 				gateway->ced_chan = (active == chan);
 				ast_debug(1, "detected CED tone from %s; will schedule T.38 request on %s\n", active->name, other->name);
 			} else {
-				return fax_gateway_send_ced(gateway, chan, f);
+				return fax_gateway_request_t38(gateway, chan, f);
 			}
 		} else {
 			ast_debug(1, "detected CED tone on %s, but %s does not support T.38 for T.38 gateway session\n", active->name, other->name);
@@ -2948,9 +2948,9 @@
 	if (!ast_tvzero(gateway->ced_timeout_start)) {
 		if (ast_tvdiff_ms(ast_tvnow(), gateway->ced_timeout_start) > FAX_GATEWAY_CED_TIMEOUT) {
 			if (gateway->ced_chan && chan == active) {
-				return fax_gateway_send_ced(gateway, chan, f);
+				return fax_gateway_request_t38(gateway, chan, f);
 			} else if (!gateway->ced_chan && peer == active) {
-				return fax_gateway_send_ced(gateway, chan, f);
+				return fax_gateway_request_t38(gateway, chan, f);
 			}
 		}
 	} else if (gateway->t38_state == T38_STATE_UNAVAILABLE && f->frametype == AST_FRAME_VOICE) {




More information about the asterisk-commits mailing list