[svn-commits] tzafrir: branch 1.4 r3045 - in /branches/1.4: fxotune.c zaptel.init
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sun Sep 16 09:55:05 CDT 2007
Author: tzafrir
Date: Sun Sep 16 09:55:04 2007
New Revision: 3045
URL: http://svn.digium.com/view/zaptel?view=rev&rev=3045
Log:
* Run fxotune automatically on startup.
* Make fxotune -s less verbose by default so it won't make noise
for the init.d script.
Modified:
branches/1.4/fxotune.c
branches/1.4/zaptel.init
Modified: branches/1.4/fxotune.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/fxotune.c?view=diff&rev=3045&r1=3044&r2=3045
==============================================================================
--- branches/1.4/fxotune.c (original)
+++ branches/1.4/fxotune.c Sun Sep 16 09:55:04 2007
@@ -749,7 +749,8 @@
fclose(fp);
- fprintf(stdout, "fxotune: successfully set echo coeffecients on FXO modules\n");
+ if (debug)
+ fprintf(stdout, "fxotune: successfully set echo coeffecients on FXO modules\n");
return 0;
}
Modified: branches/1.4/zaptel.init
URL: http://svn.digium.com/view/zaptel/branches/1.4/zaptel.init?view=diff&rev=3045&r1=3044&r2=3045
==============================================================================
--- branches/1.4/zaptel.init (original)
+++ branches/1.4/zaptel.init Sun Sep 16 09:55:04 2007
@@ -15,6 +15,8 @@
ZTCFG=/sbin/ztcfg
ZTCFG_CMD="$ZTCFG" # e.g: for a custom zaptel.conf location
+
+FXOTUNE=/sbin/fxotune
# The default syncer Astribank. Usually set automatically to a sane
# value by xpp_sync(1) if you have an Astribank. You can set this to an
@@ -192,6 +194,11 @@
echo "No functioning zap hardware found in /proc/zaptel, loading ztdummy"
modprobe ztdummy 2> /dev/null
fi
+
+ if [ -x "$FXOTUNE" ] && [ -r /etc/fxotune.conf ]; then
+ $FXOTUNE -s
+ fi
+
if [ $system = debian ]; then
echo -n "Running ztcfg: "
$ZTCFG_CMD 2> /dev/null && echo -n "done"
More information about the svn-commits
mailing list