GenZaptelConf
The trunk version of genzaptelcon does not work with rhino cards, However genzaptelconf can be adjusted to work with any card.
I have modified the trunk version of genzaptelconf to do a few things. My version configures our digital and analog cards and leaves a commented out standard PRI configuration as well as creating an analog T1/E1 configuration. Below is the Diff file which will show you how you can easily put any unsupported card in the system (assuming you know bash).
--- genzaptelconf.orig 2007-09-21 07:40:40.000000000 -0700
+++ genzaptelconf 2007-09-21 09:07:40.000000000 -0700
@@ -26,7 +26,9 @@
# If you have any technical questions, contact
# Tzafrir Cohen
#
-
+# This version modified from trunk version to configure rhino digital and analog cards
+# Also this version generates analog and pri configs.
+#
# The script uses a number of bash-specific features
# TODO: either ditch them or convert to perl
# Don’t override variables here.
@@ -34,7 +36,7 @@
# (redhat/centos)
# /etc/default/zaptel may override the following variables
-VERSION=0.5.10
+VERSION=0.5.10-R
rcsid=’$Id$’
lc_country=us
# set to: ls, ks or gs for (Loopstart, Kewlstart and GroundStart)
@@ -688,7 +690,8 @@
#Does this mean anything?
echo ‘gsm’ >$tmp_dir/span_signalling
;;
- *TE[24]/*|*WCT1/*|*Tor2/*|*TorISA/*|*WP[TE]1/*)
+ #Rhino Add regex to cover our digital cards….
+ *TE[24]/*|*WCT1/*|*Tor2/*|*TorISA/*|*WP[TE]1/*|*[Rr][124][Tt]1/*)
# FIXME: handle cwain around here.
# name: *cwain[12]/* . Always E1.
@@ -780,9 +783,11 @@
if [ “$span_termtype” != ” ]
then echo “# termtype: $span_termtype” >>$zaptel_file
fi
-
- echo bchan=$bchans >>$zaptel_file
- echo dchan=$dchan >>$zaptel_file
+ #Rhino Add default Config to be a channel bank with PRI commented
+ echo “#fxsks=$span_begin-$span_end” >>$zaptel_file
+ echo “fxoks=$span_begin-$span_end” >>$zaptel_file
+ echo “#bchan=$bchans” >>$zaptel_file
+ echo “#dchan=$dchan” >>$zaptel_file
if [ “$fxsdisable” = ‘yes’ ] && [ “$span_termtype” = ‘nt’ ]; then return; fi
# You should not send content to zapata.conf below this line
@@ -825,9 +830,13 @@
fi
fi
fi
- echo “switchtype = $span_switchtype” >> $zapata_file
- echo “signalling = $span_signalling” >> $zapata_file
- echo “channel => $bchans” >> $zapata_file
+ #Rhino Default to Channel Bank with PRI commented…
+ echo “signalling = fxo_ks” >> $zapata_file
+ echo “#signalling = fxs_ks” >> $zapata_file
+ echo “channel => $span_begin-$span_end” >> $zapata_file
+ echo “#switchtype = $span_switchtype” >> $zapata_file
+ echo “#signalling = $span_signalling” >> $zapata_file
+ echo “#channel => $bchans” >> $zapata_file
reset_zapata_entry $zapata_file $reset_values
reset_values=
;;
@@ -984,6 +993,12 @@
# Astribank FXS span (regular port)
print_pattern $chan_num fxo $mode
;;
+ *FXO/*)
+ print_pattern $chan_num fxs $mode
+ ;;
+ *FXS/*)
+ print_pattern $chan_num fxo $mode
+ ;;
*XPP_OUT/*)
# Astribank FXS span (output port)
print_pattern -a output $chan_num fxo $mode
@@ -992,7 +1007,7 @@
# Astribank FXS span (input port)
print_pattern -a input $chan_num fxo $mode
;;
- *ZTHFC*/*|*ztqoz*/*|*ztgsm/*|*TE[24]/*|*WCT1/*|*Tor2/*|*TorISA/*|*XPP_BRI_*/*|*WP[TE]1/*|*XPP_BRI*)
+ *ZTHFC*/*|*ztqoz*/*|*ztgsm/*|*TE[24]/*|*WCT1/*|*Tor2/*|*TorISA/*|*XPP_BRI_*/*|*WP[TE]1/*|*XPP_BRI*|*R[124]T1/*)
detect_digital_channel “$line” “$chan_num” “$span_num”
;;
”) ;; # Empty line (after span header)