[svn-commits] branch oej/rtptiming r15854 - /team/oej/rtptiming/asterisk.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Mar 28 16:19:03 MST 2006


Author: oej
Date: Tue Mar 28 17:19:02 2006
New Revision: 15854

URL: http://svn.digium.com/view/asterisk?rev=15854&view=rev
Log:
- Fix broken -I switch 

Modified:
    team/oej/rtptiming/asterisk.c

Modified: team/oej/rtptiming/asterisk.c
URL: http://svn.digium.com/view/asterisk/team/oej/rtptiming/asterisk.c?rev=15854&r1=15853&r2=15854&view=diff
==============================================================================
--- team/oej/rtptiming/asterisk.c (original)
+++ team/oej/rtptiming/asterisk.c Tue Mar 28 17:19:02 2006
@@ -1976,7 +1976,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;
 			}
@@ -2055,7 +2055,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++;
@@ -2110,7 +2110,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 svn-commits mailing list