summaryrefslogtreecommitdiff
path: root/xpp/utils/genzaptelconf
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/utils/genzaptelconf')
-rwxr-xr-xxpp/utils/genzaptelconf24
1 files changed, 16 insertions, 8 deletions
diff --git a/xpp/utils/genzaptelconf b/xpp/utils/genzaptelconf
index a000ec0..3e89915 100755
--- a/xpp/utils/genzaptelconf
+++ b/xpp/utils/genzaptelconf
@@ -295,6 +295,9 @@ print_pattern() {
# sadly, both input ports and output ports go into the same span as
# the FXS ports. Thus we need to separate between them. See also
# the zapata.conf section:
+
+ echo ";;; line=\"$line\"" >> $zapata_file
+
if [ "$astbank_type" != '' ];
then echo "# astbanktype: $astbank_type" >>$zaptel_file;
fi
@@ -369,7 +372,14 @@ print_pattern() {
esac
reset_values="$reset_values cidsignalling cidstart"
fi
- echo ";;; line=\"$line\"" >> $zapata_file
+ case "$line" in
+ *XPP_FXO*)
+ if [ "$xpp_fxo_rxgain" != '' ]; then
+ echo "rxgain=$xpp_fxo_rxgain" >> $zapata_file
+ reset_values="$reset_values rxgain"
+ fi
+ ;;
+ esac
# if kewlstart is not used, busydetect has to be employed:
if [ "$method" = 'ls' ]
then
@@ -576,13 +586,11 @@ reset_zapata_entry() {
for arg in "$@"; do
case "$arg" in
busydetect) echo "busydetect=no" >>$conf_file;;
- callerid) echo "callerid=" >>$conf_file;;
- cidstart) echo "cidstart=" >>$conf_file;;
- cidsignalling) echo "cidsignalling=" >>$conf_file;;
context) echo "context=default" >>$conf_file;;
- group) echo "group=" >>$conf_file;;
immediate) echo "immediate=no" >>$conf_file;;
- mailbox) echo "mailbox=" >>$conf_file;;
+ rxgain) echo "rxgain=0" >>$conf_file;;
+ txgain) echo "txgain=0" >>$conf_file;;
+ *) echo "$arg=" >>$conf_file;;
esac
done
}
@@ -692,7 +700,7 @@ EOF
# in case this is a real channel.
chan_num=`echo $line |awk '{print $1}'`
case "$line" in
- *WCTDM/*|*/WRTDM/*|*OPVXA1200/*)
+ *WCTDM/*|*\ WRTDM/*|*OPVXA1200/*)
# TDM400P/2400P and similar cards (Sangoma A200, OpenVox A1200)
# this can be either FXS or FXO
maybe_fxs=0
@@ -812,7 +820,7 @@ EOF
list) echo "# ??: $line";;
files)
echo "# ??: $line" >>$zaptel_file
- echo "; ??: $line" >>$zaptel_file
+ echo "; ??: $line" >>$zapata_file
esac
;;
esac