diff options
author | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-05-17 16:49:56 +0000 |
---|---|---|
committer | file <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-05-17 16:49:56 +0000 |
commit | 0487629c98ea3cd2958ff481b4b647da9abd2fff (patch) | |
tree | 90218a0fe26ef63aae7de7a3e1579370bc6fa03c /fxotune.c | |
parent | c4d1a1331087be1d0ad809437eae6096a3a6fbdf (diff) |
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/branches/1.4@2524 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'fxotune.c')
-rw-r--r-- | fxotune.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |