[Asterisk-cvs] zaptel fxotune.c,1.20,1.21

mattf mattf
Thu Aug 11 09:30:15 CDT 2005


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv27304

Modified Files:
	fxotune.c 
Log Message:
Minor cosmetic updates to fxotune


Index: fxotune.c
===================================================================
RCS file: /usr/cvsroot/zaptel/fxotune.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- fxotune.c	25 Feb 2005 22:09:23 -0000	1.20
+++ fxotune.c	11 Aug 2005 13:33:35 -0000	1.21
@@ -380,7 +380,7 @@
 				dop.op = ZT_DIAL_OP_REPLACE;
 				dop.dialstr[0] = 'T';
 				strncpy(dop.dialstr + 1, dialstr, sizeof(dop.dialstr) - 1);
-				printf("Dialing...\n");
+				printf(".");
 				if (ioctl(whichzap, ZT_DIAL, &dop)) {
 					fprintf(stderr, "Unable to dial!\n");
 					return -1;
@@ -526,12 +526,16 @@
 
 			fd = open(zapdev, O_RDWR);
 			if (fd < 0) {
-				if (debug)
-					fprintf(stdout, "%s absent: %s\n", zapdev, strerror(errno));
+				fprintf(stdout, "%s absent: %s\n", zapdev, strerror(errno));
 				continue;
 			}
 
+			printf("Tuning module %d", i + 1);
 			res = acim_tune(fd, argv[2]); /* Shouldn't matter what digit we press */
+			if (!res) 
+				printf("Done!\n");
+			else
+				printf("Failure!\n");
 
 			close(fd);
 			if (res > -1) {




More information about the svn-commits mailing list