[Asterisk-cvs] asterisk asterisk.c,1.125.2.2,1.125.2.3

russell at lists.digium.com russell at lists.digium.com
Tue Dec 28 07:15:06 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv11650

Modified Files:
      Tag: v1-0
	asterisk.c 
Log Message:
fix some typos (bug #3162)


Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.125.2.2
retrieving revision 1.125.2.3
diff -u -d -r1.125.2.2 -r1.125.2.3
--- asterisk.c	12 Nov 2004 14:03:42 -0000	1.125.2.2
+++ asterisk.c	28 Dec 2004 12:10:02 -0000	1.125.2.3
@@ -759,12 +759,12 @@
 
 static char restart_now_help[] = 
 "Usage: restart now\n"
-"       Causes Asterisk to hangup all calls and exec() itself performing a cold.\n"
+"       Causes Asterisk to hangup all calls and exec() itself performing a cold\n"
 "       restart.\n";
 
 static char restart_gracefully_help[] = 
 "Usage: restart gracefully\n"
-"       Causes Asterisk to stop accepting new calls and exec() itself performing a cold.\n"
+"       Causes Asterisk to stop accepting new calls and exec() itself performing a cold\n"
 "       restart when all active calls have ended.\n";
 
 static char restart_when_convenient_help[] = 
@@ -927,7 +927,7 @@
 							usleep(1000000 / reconnects_per_second);
 						}
 					}
-					if (tries >= 30) {
+					if (tries >= 30 * reconnects_per_second) {
 						fprintf(stderr, "Failed to reconnect for 30 seconds.  Quitting.\n");
 						quit_handler(0, 0, 0, 0);
 					}
@@ -1404,9 +1404,9 @@
 		pid = atoi(cpid);
 	else
 		pid = -1;
-	snprintf(tmp, sizeof(tmp), "set verbose atleast %d", option_verbose);
+	snprintf(tmp, sizeof(tmp), "set verbose at least %d", option_verbose);
 	fdprint(ast_consock, tmp);
-	snprintf(tmp, sizeof(tmp), "set debug atleast %d", option_debug);
+	snprintf(tmp, sizeof(tmp), "set debug at least %d", option_debug);
 	fdprint(ast_consock, tmp);
 	ast_verbose("Connected to Asterisk %s currently running on %s (pid = %d)\n", version, hostname, pid);
 	remotehostname = hostname;
@@ -1473,13 +1473,13 @@
 	printf("   -f              Do not fork\n");
 	printf("   -g              Dump core in case of a crash\n");
 	printf("   -h              This help screen\n");
-	printf("   -i              Initializie crypto keys at startup\n");
+	printf("   -i              Initialize crypto keys at startup\n");
 	printf("   -n              Disable console colorization\n");
 	printf("   -p              Run as pseudo-realtime thread\n");
-	printf("   -q              Quiet mode (supress output)\n");
+	printf("   -q              Quiet mode (suppress output)\n");
 	printf("   -r              Connect to Asterisk on this machine\n");
 	printf("   -R              Connect to Asterisk, and attempt to reconnect if disconnected\n");
-	printf("   -t              Record soundfiles in /tmp and move them where they belong after they are done.\n");
+	printf("   -t              Record soundfiles in /var/tmp and move them where they belong after they are done.\n");
 	printf("   -v              Increase verbosity (multiple v's = more verbose)\n");
 	printf("   -x <cmd>        Execute command <cmd> (only valid with -r)\n");
 	printf("\n");




More information about the svn-commits mailing list