[asterisk-commits] branch oej/test-this-branch r15855 - /team/oej/test-this-branch/asterisk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Mar 28 16:20:12 MST 2006


Author: oej
Date: Tue Mar 28 17:20:11 2006
New Revision: 15855

URL: http://svn.digium.com/view/asterisk?rev=15855&view=rev
Log:
Fix broken -I parameter for internal timing (rtptiming branch)

Modified:
    team/oej/test-this-branch/asterisk.c

Modified: team/oej/test-this-branch/asterisk.c
URL: http://svn.digium.com/view/asterisk/team/oej/test-this-branch/asterisk.c?rev=15855&r1=15854&r2=15855&view=diff
==============================================================================
--- team/oej/test-this-branch/asterisk.c (original)
+++ team/oej/test-this-branch/asterisk.c Tue Mar 28 17:20:11 2006
@@ -2081,7 +2081,7 @@
 		/* Enable silence suppression */
 		} else if (!strcasecmp(v->name, "internal_timing")) {
 			option_internal_timing = ast_true(v->value);
-} else if (!strcasecmp(v->name, "maxcalls")) {
+		} else if (!strcasecmp(v->name, "maxcalls")) {
 			if ((sscanf(v->value, "%d", &option_maxcalls) != 1) || (option_maxcalls < 0)) {
 				option_maxcalls = 0;
 			}
@@ -2159,7 +2159,7 @@
 	}
 	*/
 	/* Check for options */
-	while((c=getopt(argc, argv, "tThfdvVqprRgcinsx:U:G:C:L:M:")) != -1) {
+	while((c=getopt(argc, argv, "tThfdvVqprRgciInx:U:G:C:L:M:")) != -1) {
 		switch(c) {
 		case 'd':
 			option_debug++;
@@ -2214,7 +2214,7 @@
 			ast_set_flag(&ast_options, AST_OPT_FLAG_OVERRIDE_CONFIG);
 			break;
 		case 'I':
-			option_internal_timing++;
+			option_internal_timing = 1;
 		case 'i':
 			ast_set_flag(&ast_options, AST_OPT_FLAG_INIT_KEYS);
 			break;



More information about the asterisk-commits mailing list