[asterisk-commits] rmudgett: branch rmudgett/ast_verb r405157 - /team/rmudgett/ast_verb/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 8 14:31:20 CST 2014


Author: rmudgett
Date: Wed Jan  8 14:31:16 2014
New Revision: 405157

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=405157
Log:
Restore rasterisk setting debug level from -d command line option.

Modified:
    team/rmudgett/ast_verb/main/asterisk.c

Modified: team/rmudgett/ast_verb/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/ast_verb/main/asterisk.c?view=diff&rev=405157&r1=405156&r2=405157
==============================================================================
--- team/rmudgett/ast_verb/main/asterisk.c (original)
+++ team/rmudgett/ast_verb/main/asterisk.c Wed Jan  8 14:31:16 2014
@@ -2477,19 +2477,24 @@
 
 static void send_rasterisk_connect_commands(void)
 {
+	char buf[80];
+
 	/*
 	 * Tell the server asterisk instance about the verbose level
 	 * initially desired.
 	 */
 	if (option_verbose) {
-		char buf[80];
-
 		/*
 		 * The 's' prefixed to the level indicates to silence
 		 * the confirmation message.  Older Asterisk versions
 		 * will generate an error and not set the level.
 		 */
 		snprintf(buf, sizeof(buf), "core set verbose s%d", option_verbose);
+		fdsend(ast_consock, buf);
+	}
+
+	if (option_debug) {
+		snprintf(buf, sizeof(buf), "core set debug atleast %d", option_debug);
 		fdsend(ast_consock, buf);
 	}
 




More information about the asterisk-commits mailing list