summaryrefslogtreecommitdiff
path: root/xpp/perl_modules
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-03-03 20:30:36 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-03-03 20:30:36 +0000
commit02bc39d66eef6d09eda17d69f91a117eb910af5b (patch)
tree1b525a91de916240b62a6104b97fb3b7a26cd13a /xpp/perl_modules
parentbf8893ba35004a7f6649a90b5995b0eba457c66f (diff)
genconf_parameters: Add option fxo_default_start; Document genconf_parameters
* Add a dqahdi_genconf option fxo_default_start, equivalent of fxs_default_start. * Set all trunks in group 'group_lines' rather than hard-coded 0 (for TE) and 6 (for NT). * Document all parameters in genconf_parameters. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6077 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/perl_modules')
-rw-r--r--xpp/perl_modules/Dahdi/Config/Gen.pm21
-rw-r--r--xpp/perl_modules/Dahdi/Config/Params.pm1
2 files changed, 12 insertions, 10 deletions
diff --git a/xpp/perl_modules/Dahdi/Config/Gen.pm b/xpp/perl_modules/Dahdi/Config/Gen.pm
index b68fa28..80e1e31 100644
--- a/xpp/perl_modules/Dahdi/Config/Gen.pm
+++ b/xpp/perl_modules/Dahdi/Config/Gen.pm
@@ -88,6 +88,7 @@ sub new($) {
# Set defaults
my $fxs_default_start = $p->item('fxs_default_start');
+ my $fxo_default_start = $p->item('fxo_default_start');
my %default_context = (
FXO => $p->item('context_lines'),
@@ -108,23 +109,23 @@ sub new($) {
FXS => $p->item('group_phones'),
IN => '',
OUT => '',
- BRI_TE => 0,
- BRI_NT => 6,
- E1_TE => 0,
- T1_TE => 0,
- J1_TE => 0,
- E1_NT => 6,
- T1_NT => 6,
- J1_NT => 6,
+ BRI_TE => $p->item('group_lines'),
+ BRI_NT => $p->item('group_lines'),
+ E1_TE => $p->item('group_lines'),
+ T1_TE => $p->item('group_lines'),
+ J1_TE => $p->item('group_lines'),
+ E1_NT => $p->item('group_lines'),
+ T1_NT => $p->item('group_lines'),
+ J1_NT => $p->item('group_lines'),
);
my %default_dahdi_signalling = (
- FXO => 'fxsks',
+ FXO => "fxs$fxo_default_start",
FXS => "fxo$fxs_default_start",
IN => "fxo$fxs_default_start",
OUT => "fxo$fxs_default_start",
);
my %default_chan_dahdi_signalling = (
- FXO => 'fxs_ks',
+ FXO => "fxs_$fxo_default_start",
FXS => "fxo_$fxs_default_start",
IN => "fxo_$fxs_default_start",
OUT => "fxo_$fxs_default_start",
diff --git a/xpp/perl_modules/Dahdi/Config/Params.pm b/xpp/perl_modules/Dahdi/Config/Params.pm
index b6d9cdc..2ff2a0e 100644
--- a/xpp/perl_modules/Dahdi/Config/Params.pm
+++ b/xpp/perl_modules/Dahdi/Config/Params.pm
@@ -95,6 +95,7 @@ sub item($$) {
freepbx => 'no', # Better via -F command line
fxs_immediate => 'no',
fxs_default_start => 'ks',
+ fxo_default_start => 'ks',
lc_country => 'us',
context_lines => 'from-pstn',
context_phones => 'from-internal',