summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-08-18 13:49:24 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-08-18 13:49:24 +0000
commit7b111f43edd89d3f487cb90985d385fd781e1359 (patch)
tree0cc2d5e2b30151e05ad911e33e6f1039393be9c6
parentc99319d78689c2303773bb60a3dc2fb4bad9b2d7 (diff)
DAHDI-perl: Config (sort of) for dynamic channels
Generate some sort of configuration for dynamic channels. Usable enough for testing. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9159 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--xpp/perl_modules/Dahdi/Config/Gen.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/xpp/perl_modules/Dahdi/Config/Gen.pm b/xpp/perl_modules/Dahdi/Config/Gen.pm
index 6894f53..cc439de 100644
--- a/xpp/perl_modules/Dahdi/Config/Gen.pm
+++ b/xpp/perl_modules/Dahdi/Config/Gen.pm
@@ -151,6 +151,7 @@ sub new($) {
FXS => $p->item('context_phones'),
IN => $p->item('context_input'),
OUT => $p->item('context_output'),
+ DYN => $p->item('context_lines'),
BRI_TE => $p->item('context_lines'),
BRI_NT => $p->item('context_lines'),
E1_TE => $p->item('context_lines'),
@@ -165,6 +166,7 @@ sub new($) {
FXS => $p->item('group_phones'),
IN => '',
OUT => '',
+ DYN => '',
BRI_TE => $p->item('group_lines'),
BRI_NT => $p->item('group_lines'),
E1_TE => $p->item('group_lines'),
@@ -179,12 +181,14 @@ sub new($) {
FXS => "fxo$fxs_default_start",
IN => "fxo$fxs_default_start",
OUT => "fxo$fxs_default_start",
+ DYN => "clear",
);
my %default_chan_dahdi_signalling = (
FXO => "fxs_$fxo_default_start",
FXS => "fxo_$fxs_default_start",
IN => "fxo_$fxs_default_start",
OUT => "fxo_$fxs_default_start",
+ DYN => "auto", # Cheating. Won't really work
);
# First complex mapping