From c942a91a4c137ec8d4e998fb86b573a9700cb810 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 3 Aug 2010 12:14:22 +0000 Subject: dahdi-perl: also detect Aligera cards (closes issue #17783) Reported by: frawd Patches: dahdi-tools_aligera.patch uploaded by frawd (license 610) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9079 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- xpp/perl_modules/Dahdi/Chans.pm | 4 +++- xpp/perl_modules/Dahdi/Hardware/PCI.pm | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/xpp/perl_modules/Dahdi/Chans.pm b/xpp/perl_modules/Dahdi/Chans.pm index 1ae5ef5..a869ae4 100644 --- a/xpp/perl_modules/Dahdi/Chans.pm +++ b/xpp/perl_modules/Dahdi/Chans.pm @@ -143,7 +143,7 @@ sub new($$$$$$) { $type = "FXO"; # likely Rhino } elsif ($fqn =~ m{---/.*}) { $type = "EMPTY"; # likely Rhino, empty slot. - } elsif ($fqn =~ m{\b(TE[24]|WCT1|Tor2|TorISA|WP[TE]1|cwain[12]|R[124]T1)/.*}) { + } elsif ($fqn =~ m{\b(TE[24]|WCT1|Tor2|TorISA|WP[TE]1|cwain[12]|R[124]T1|AP40[124]|APE40[124])/.*}) { # TE[24]: Digium wct4xxp # WCT1: Digium single span card drivers? # Tor2: Tor PCI cards @@ -151,6 +151,8 @@ sub new($$$$$$) { # WP[TE]1: Sangoma. TODO: this one tells us if it is TE or NT. # cwain: Junghanns E1 card. # R[124]: Rhino r1t1/rxt1 cards + # AP40[124]: Aligera AP40X cards + # APE40[124]: Aligera APE40X cards $type = "PRI"; } elsif ($fqn =~ m{\b(WCBRI|B4|ZTHFC\d*|ztqoz\d*)/.*}) { # WCBRI: The Digium Hx8 series cards with BRI module. diff --git a/xpp/perl_modules/Dahdi/Hardware/PCI.pm b/xpp/perl_modules/Dahdi/Hardware/PCI.pm index cea2a09..1a4e36d 100644 --- a/xpp/perl_modules/Dahdi/Hardware/PCI.pm +++ b/xpp/perl_modules/Dahdi/Hardware/PCI.pm @@ -152,6 +152,9 @@ my %pci_ids = ( 'e159:0001/2151' => { DRIVER => 'ystdm8xx', DESCRIPTION => 'Yeastar YSTDM8xx'}, 'e159:0001/9500:0003' => { DRIVER => 'opvxa1200', DESCRIPTION => 'OpenVox A800P' }, + + # Aligera + '10ee:1004' => { DRIVER => 'ap400', DESCRIPTION => 'Aligera AP40X/APE40X 1E1/2E1/4E1 card' }, ); $ENV{PATH} .= ":/usr/sbin:/sbin:/usr/bin:/bin"; -- cgit v1.2.3