summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-05-17 16:51:39 +0000
committerfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-05-17 16:51:39 +0000
commit674b54763cf42fc3f04d821be3e063313564f8f2 (patch)
tree6078079b62d10788ff799ccc487b4a4e439f3a3f
parent770e4195c1bb47549b7283b5a2d2372ea4a99a5f (diff)
Merged revisions 2524 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.4 ........ r2524 | file | 2007-05-17 12:49:56 -0400 (Thu, 17 May 2007) | 2 lines Allow the fxotune config file to be specified instead of hardcoded. (issue #8444 reported by pupeno, patch by tzafrir) ........ git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2525 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--fxotune.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fxotune.c b/fxotune.c
index e2207ae..08c4454 100644
--- a/fxotune.c
+++ b/fxotune.c
@@ -52,6 +52,7 @@ static char *usage =
" options : [-b <device>][-w <waveform>]\n"
" [-n <dialstring>][-l <delaytosilence>][-m <silencegoodfor>]\n"
" -v : more output (-vv, -vvv also)\n"
+" -c <config_file>\n"
"\n"
" <calibtype> - type of calibration\n"
" (default 2, old method 1)\n"
@@ -66,7 +67,10 @@ static char *usage =
" <device> - the device to perform waveform dump on\n"
" (default 1)\n"
" <waveform> - -1 for multitone waveform, or frequency of\n"
-" single tone (default -1)\n";
+" single tone (default -1)\n"
+" <config_file> - Alternative file to set from / calibrate to.\n"
+" (Default: /etc/fxotune.conf)\n"
+;
#define OUT_OF_BOUNDS(x) ((x) < 0 || (x) > 255)
@@ -920,6 +924,9 @@ int main (int argc , char **argv)
dialstr = argv[++i];
}
continue;
+ case 'c':
+ configfile = moreargs ? argv[++i] : configfile;
+ continue;
case 'd':
dodump = 1;
continue;