[Asterisk-cvs] zaptel README.fxotune,1.1,1.2 fxotune.c,1.19,1.20
mattf at lists.digium.com
mattf at lists.digium.com
Fri Feb 25 16:11:16 CST 2005
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv27997
Modified Files:
README.fxotune fxotune.c
Log Message:
Make the digit configurable again to break dialtone.
Index: README.fxotune
===================================================================
RCS file: /usr/cvsroot/zaptel/README.fxotune,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- README.fxotune 25 Feb 2005 21:33:25 -0000 1.1
+++ README.fxotune 25 Feb 2005 22:09:23 -0000 1.2
@@ -5,7 +5,7 @@
A. Use the fxotune utility.
To use:
-Just run the fxotune utility with the -i option. (`fxotune -i`) It should
+Just run the fxotune utility with the -i option. (`fxotune -i 4`) It should
discover which zap channels are FXO modules and tune them accordingly. Be warned
however, it takes a significant amount of time for EACH module to test, I would
say somewhere around 2-3 minutes. But you only have to initialize it once for
@@ -16,6 +16,8 @@
`fxotune -s`. You might consider putting it in your startup scripts some time
after the module loads and before asterisk runs.
+NOTE: The digit after the -i option is the digit that will break dialtone on the line.
+
As always, if you have any questions, you can email me at creslin at NOSPAMdigium.com
Matthew Fredrickson
Index: fxotune.c
===================================================================
RCS file: /usr/cvsroot/zaptel/fxotune.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- fxotune.c 25 Feb 2005 21:23:04 -0000 1.19
+++ fxotune.c 25 Feb 2005 22:09:23 -0000 1.20
@@ -509,7 +509,7 @@
}
if (!strcasecmp(argv[1], "-i")) {
- if (argc != 2) {
+ if (argc != 3) {
/* Show usage */
fputs(usage, stdout);
return -1;
@@ -531,7 +531,7 @@
continue;
}
- res = acim_tune(fd, "4"); /* Shouldn't matter what digit we press */
+ res = acim_tune(fd, argv[2]); /* Shouldn't matter what digit we press */
close(fd);
if (res > -1) {
@@ -561,5 +561,7 @@
goto set;
}
+ fputs(usage, stdout);
+
return 0;
}
More information about the svn-commits
mailing list