[Pkg-voip-commits] [dahdi-tools] 135/285: hotplug: run fxotune from span_config:

tzafrir at debian.org tzafrir at debian.org
Thu Jul 7 19:18:44 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository dahdi-tools.

commit 0afba16b2e531fa5e8a90e05df98eea1192b764f
Author: Oron Peled <oron.peled at xorcom.com>
Date:   Mon Oct 21 12:06:18 2013 +0200

    hotplug: run fxotune from span_config:
    
    * Use fxotune -b/-e options to run on wanted channel range
---
 span_config | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/span_config b/span_config
index c2e87cd..226a37f 100755
--- a/span_config
+++ b/span_config
@@ -42,7 +42,7 @@ DAHDICONFDIR='/etc/dahdi'
 export DAHDICONFDIR
 
 run_dahdi_cfg() {
-	echo "dahdi_cfg: span $spanno <$basechan-$endchan>"
+	echo "dahdi_cfg: span $spanno <$basechan-$endchan> ($DEVPATH)"
 	dahdi_cfg -c "$cfg_file" -S "$spanno" -C "$basechan-$endchan"
 }
 
@@ -70,6 +70,11 @@ configure_span() {
 		cfg_file='-'
 		DAHDI_CONF_FILE="$cfg_file" dahdi_genconf system | run_dahdi_cfg
 	fi
+	fxotune_cfg='/etc/fxotune.conf'
+	if [ -r "$fxotune_cfg" ]; then
+		echo "fxotune: span $spanno <$basechan-$endchan> ($DEVPATH)"
+		fxotune -s -b "$basechan" -e "$endchan"
+	fi
 
 	# Add to asterisk
 	asterisk -rx "dahdi create channels $basechan $endchan"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git



More information about the Pkg-voip-commits mailing list