[svn-commits] mmichelson: trunk r104025 - /trunk/res/res_agi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Feb 21 11:44:34 CST 2008


Author: mmichelson
Date: Thu Feb 21 11:44:34 2008
New Revision: 104025

URL: http://svn.digium.com/view/asterisk?view=rev&rev=104025
Log:
Instead of a notice, make the message about a hung-up channel a debug message, and revert the original
logic on the if statement. Thanks to Juggie for bringing this to my attention.


Modified:
    trunk/res/res_agi.c

Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?view=diff&rev=104025&r1=104024&r2=104025
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Thu Feb 21 11:44:34 2008
@@ -2878,11 +2878,8 @@
 		ast_log(LOG_WARNING, "AGI requires an argument (script)\n");
 		return -1;
 	}
-	if (dead && strcmp(chan->exten, "h"))
-		/*No need to print this message if called from the 'h' extension, since it
-		 * is well known that this is a hungup channel
-		 */
-		ast_log(LOG_NOTICE, "Hungup channel detected, running agi in dead mode.\n");
+	if (dead)
+		ast_debug(3, "Hungup channel detected, running agi in dead mode.\n");
 	ast_copy_string(buf, data, sizeof(buf));
 	memset(&agi, 0, sizeof(agi));
 	AST_STANDARD_APP_ARGS(args, tmp);




More information about the svn-commits mailing list