[zaptel-commits] file: branch 1.4 r2524 - /branches/1.4/fxotune.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Thu May 17 09:49:56 MST 2007


Author: file
Date: Thu May 17 11:49:56 2007
New Revision: 2524

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2524
Log:
Allow the fxotune config file to be specified instead of hardcoded. (issue #8444 reported by pupeno, patch by tzafrir)

Modified:
    branches/1.4/fxotune.c

Modified: branches/1.4/fxotune.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/fxotune.c?view=diff&rev=2524&r1=2523&r2=2524
==============================================================================
--- branches/1.4/fxotune.c (original)
+++ branches/1.4/fxotune.c Thu May 17 11:49:56 2007
@@ -52,6 +52,7 @@
 "		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 @@
 "		<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)
@@ -919,6 +923,9 @@
 					if (argv[i+1][0] != '-' && argv[i+1][0] != '/')
 						dialstr = argv[++i];
 				}
+				continue;
+			case 'c':
+				configfile = moreargs ? argv[++i] : configfile;
 				continue;
 			case 'd':
 				dodump = 1;



More information about the zaptel-commits mailing list