diff options
Diffstat (limited to 'xpp/utils/genzaptelconf')
-rwxr-xr-x | xpp/utils/genzaptelconf | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/xpp/utils/genzaptelconf b/xpp/utils/genzaptelconf index a5fb0b0..c5dedd4 100755 --- a/xpp/utils/genzaptelconf +++ b/xpp/utils/genzaptelconf @@ -37,6 +37,9 @@ VERSION=0.5.8 rcsid='$Id$' lc_country=us +# set to: ls, ks or gs for (Loopstart, Kewlstart and GroundStart) +# on FXS channels (FXO signalling). +fxs_default_start=ls base_exten=6000 # If set: no context changes are made in zapata-channels.conf #context_manual=yes @@ -267,17 +270,22 @@ print_pattern() { local chan=$1 local sig=$2 #fxs/fxo local mode=$3 - local method='ks' - - # Coutries in which we need to use busydetect: - # United Arab Emirats, Israel, Slovenia - case "$lc_country" in - ae|il|si) - if [ "$sig" = 'fxs' ]; then + local method + + if [ "$sig" = 'fxs' ]; then + # Coutries in which we need to use busydetect: + # United Arab Emirats, Israel, Slovenia + case "$lc_country" in + ae|il|si) method=ls - fi - ;; - esac + ;; + *) + method=ks + ;; + esac + else + method="$fxs_default_start" + fi case "$mode" in list) case "$sig" in |