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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 23 09:38:38 CDT 2011


Author: mnicholson
Date: Thu Jun 23 09:38:35 2011
New Revision: 324618

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=324618
Log:
whitespace and formatting

Modified:
    team/irroot/t38gateway-trunk/res/res_fax.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=324618&r1=324617&r2=324618
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax.c Thu Jun 23 09:38:35 2011
@@ -2755,41 +2755,41 @@
 
 	/* only handle VOICE, MODEM, and CONTROL frames*/
 	switch (f->frametype) {
-		case AST_FRAME_VOICE:
-			switch (f->subclass.format.id) {
-				case AST_FORMAT_SLINEAR:
-				case AST_FORMAT_ALAW:
-				case AST_FORMAT_ULAW:
-					break;
-				default:
-					return f;
-			}
+	case AST_FRAME_VOICE:
+		switch (f->subclass.format.id) {
+		case AST_FORMAT_SLINEAR:
+		case AST_FORMAT_ALAW:
+		case AST_FORMAT_ULAW:
 			break;
-		case AST_FRAME_MODEM:
-			if (f->subclass.integer == AST_MODEM_T38) {
-				break;
-			}
-			return f;
-		case AST_FRAME_CONTROL:
-			if (f->subclass.integer == AST_CONTROL_T38_PARAMETERS) {
-				break;
-			}
-			return f;
 		default:
 			return f;
+		}
+		break;
+	case AST_FRAME_MODEM:
+		if (f->subclass.integer == AST_MODEM_T38) {
+			break;
+		}
+		return f;
+	case AST_FRAME_CONTROL:
+		if (f->subclass.integer == AST_CONTROL_T38_PARAMETERS) {
+			break;
+		}
+		return f;
+	default:
+		return f;
 	}
 
 	/* detect the active channel */
 	switch (event) {
-		case AST_FRAMEHOOK_EVENT_WRITE:
-			active = peer;
-			break;
-		case AST_FRAMEHOOK_EVENT_READ:
-			active = chan;
-			break;
-		default:
-			ast_log(LOG_WARNING, "Unhandled Framehook Event %i\n",event);
-			return f;
+	case AST_FRAMEHOOK_EVENT_WRITE:
+		active = peer;
+		break;
+	case AST_FRAMEHOOK_EVENT_READ:
+		active = chan;
+		break;
+	default:
+		ast_log(LOG_WARNING, "unhandled framehook event %i\n", event);
+		return f;
 	}
 
 	/* handle control frames */




More information about the asterisk-commits mailing list