[svn-commits] trunk r31869 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sat Jun 3 16:23:25 MST 2006


Author: rizzo
Date: Sat Jun  3 18:23:24 2006
New Revision: 31869

URL: http://svn.digium.com/view/asterisk?rev=31869&view=rev
Log:
fix indentation of a block


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=31869&r1=31868&r2=31869&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sat Jun  3 18:23:24 2006
@@ -1980,24 +1980,24 @@
 	if (ast_strlen_zero(global_regcontext))
 		return;
 
-		ast_copy_string(multi, S_OR(peer->regexten, peer->name), sizeof(multi));
-		stringp = multi;
-		while ((ext = strsep(&stringp, "&"))) {
- 			if ((context = strchr(ext, '@'))) {
-				*context++ = '\0';	/* split ext at context */
-				if (!ast_context_find(context)) {
-					ast_log(LOG_WARNING, "Context %s must exist in regcontext= in sip.conf!\n", context);
-					continue;
-				}
-			} else {
-				context = global_regcontext;
+	ast_copy_string(multi, S_OR(peer->regexten, peer->name), sizeof(multi));
+	stringp = multi;
+	while ((ext = strsep(&stringp, "&"))) {
+		if ((context = strchr(ext, '@'))) {
+			*context++ = '\0';	/* split ext at context */
+			if (!ast_context_find(context)) {
+				ast_log(LOG_WARNING, "Context %s must exist in regcontext= in sip.conf!\n", context);
+				continue;
 			}
-			if (onoff)
-				ast_add_extension(context, 1, ext, 1, NULL, NULL, "Noop",
-					 ast_strdup(peer->name), free, "SIP");
-			else
-				ast_context_remove_extension(context, ext, 1, NULL);
-		}
+		} else {
+			context = global_regcontext;
+		}
+		if (onoff)
+			ast_add_extension(context, 1, ext, 1, NULL, NULL, "Noop",
+				 ast_strdup(peer->name), free, "SIP");
+		else
+			ast_context_remove_extension(context, ext, 1, NULL);
+	}
 }
 
 /*! \brief Destroy peer object from memory */



More information about the svn-commits mailing list