From 7b111f43edd89d3f487cb90985d385fd781e1359 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 18 Aug 2010 13:49:24 +0000 Subject: 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 --- xpp/perl_modules/Dahdi/Config/Gen.pm | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3