[asterisk-commits] mmichelson: trunk r104020 - /trunk/res/res_agi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 21 10:46:37 CST 2008


Author: mmichelson
Date: Thu Feb 21 10:46:37 2008
New Revision: 104020

URL: http://svn.digium.com/view/asterisk?view=rev&rev=104020
Log:
Don't print the fact that we are using dead mode in AGI if called from the 
'h' extension since it is well-known that it will be running in dead mode.

(closes issue #12046)
Reported by: explidous


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=104020&r1=104019&r2=104020
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Thu Feb 21 10:46:37 2008
@@ -2878,7 +2878,10 @@
 		ast_log(LOG_WARNING, "AGI requires an argument (script)\n");
 		return -1;
 	}
-	if (dead)
+	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");
 	ast_copy_string(buf, data, sizeof(buf));
 	memset(&agi, 0, sizeof(agi));




More information about the asterisk-commits mailing list