summaryrefslogtreecommitdiff
path: root/xpp/perl_modules/Dahdi/Config
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-03-01 14:29:03 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-03-01 14:29:03 +0000
commit908c836a2f65d2410800f01518a6039e49028902 (patch)
tree3e08a9e28315b4d70f5beff8033c07b369f909f8 /xpp/perl_modules/Dahdi/Config
parent0746ac5aa96958870d2dbf8cb13f603fd1d8600a (diff)
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
Diffstat (limited to 'xpp/perl_modules/Dahdi/Config')
-rw-r--r--xpp/perl_modules/Dahdi/Config/Gen/Chandahdi.pm5
1 files changed, 4 insertions, 1 deletions
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<freepbx> database anyway.
=back
+
+The I<freepbx> option may be activated also by adding a C<freepbx yes> line
+to the C<genconf_parameters> file.