From 908c836a2f65d2410800f01518a6039e49028902 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 1 Mar 2009 14:29:03 +0000 Subject: xpp-dahdi: freepbx code generation; better procfs compatibility * dahdi_genconf -F will generate chan_dahdi.conf for freepbx (like genzaptelconf -F) * Better procfs compatibility for xpp modules. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6057 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xpp/perl_modules/Dahdi/Config/Gen') diff --git a/xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm b/xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm index acb74d7..f48455d 100644 --- a/xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm +++ b/xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm @@ -155,7 +155,7 @@ HEAD $self->gen_digital($span); } else { foreach my $chan ($span->chans()) { - if($genopts->{'freepbx'}) { + if(is_true($genopts->{'freepbx'}) || is_true($gconfig->{'freepbx'})) { # Freepbx has its own idea about channels my $type = $chan->type; if($type eq 'FXS' || $type eq 'OUT' || $type eq 'IN') { @@ -208,3 +208,6 @@ Output ports. This is done because these channel definitions need to be generated and inserted into I database anyway. =back + +The I option may be activated also by adding a C line +to the C file. -- cgit v1.2.3