Bug#582094: dahdi: Adding support for Aligera cards

2010-08-03 Thread Tzafrir Cohen
On Tue, May 18, 2010 at 11:42:02AM +0200, François wrote:
> Package: dahdi
> It would be nice to support PRI cards from Aligera.
> 
> Attached is a small patch for dahdi-tools adding Aligera cards to the PCI.pm 
> database.
> 
> This patch also includes a few formatting fixes (aligning arrays).

The dahdi-tools part:

https://issues.asterisk.org/view.php?id=17783
http://svn.digium.com/view/dahdi?view=rev&revision=9079

Probably worth backporting.

There is still the bigger half of the kernel code.

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#582094: dahdi: Adding support for Aligera cards

2010-05-18 Thread François Delawarde
On Tue, 2010-05-18 at 18:44 +0300, Tzafrir Cohen wrote:
> On Tue, May 18, 2010 at 11:42:02AM +0200, François wrote:
> > Package: dahdi
> > Version: 2:2.2.1-1.cm.100518
> > Severity: wishlist
> > 
> > 
> > It would be nice to support PRI cards from Aligera.
> > 
> > Attached is a small patch for dahdi-tools adding Aligera cards to the 
> > PCI.pm database.
> > 
> > This patch also includes a few formatting fixes (aligning arrays).
> 
> Should be OK. Though that patch ATM has lots of unnecessary noise. You
> probably only want to add that last single line.
> 
> Generally such patches should be included upstream. Have you tested
> those patches yourself? Or are they just based on the driver?

I've tested both those patches with help from Aligera to integrate them
better with dahdi API. 

My only changes to the Aligera's original dahdi-linux patch was span
initialization of manufacturer and location (PCI bus info) so they show
up in dahdi_scan and similar tools.

These work well, we've got a couple of cards testing in Brazil with
MFC-R2 signalling with no apparent problems.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#582094: dahdi: Adding support for Aligera cards

2010-05-18 Thread Tzafrir Cohen
On Tue, May 18, 2010 at 11:42:02AM +0200, François wrote:
> Package: dahdi
> Version: 2:2.2.1-1.cm.100518
> Severity: wishlist
> 
> 
> It would be nice to support PRI cards from Aligera.
> 
> Attached is a small patch for dahdi-tools adding Aligera cards to the PCI.pm 
> database.
> 
> This patch also includes a few formatting fixes (aligning arrays).

Should be OK. Though that patch ATM has lots of unnecessary noise. You
probably only want to add that last single line.

Generally such patches should be included upstream. Have you tested
those patches yourself? Or are they just based on the driver?

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#582094: dahdi: Adding support for Aligera cards

2010-05-18 Thread François
Package: dahdi
Version: 2:2.2.1-1.cm.100518
Severity: wishlist


It would be nice to support PRI cards from Aligera.

Attached is a small patch for dahdi-tools adding Aligera cards to the PCI.pm 
database.

This patch also includes a few formatting fixes (aligning arrays).


-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30.10 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dahdi depends on:
ii  dahdi-linux 2:2.2.1+dfsg-1.cm.100518 DAHDI telephony interface - Linux 
ii  fxload  0.0.20020411-1.1 Firmware download to EZ-USB device
ii  libc6   2.7-18lenny2 GNU C Library: Shared libraries
ii  libnewt0.52 0.52.2-11.3+lenny1   Not Erik's Windowing Toolkit - tex
ii  libtonezone2.0  2:2.2.1-1.cm.100518  tonezone library (runtime)
ii  libusb-0.1-42:0.1.12-13  userspace USB programming library
ii  perl5.10.0-19lenny2  Larry Wall's Practical Extraction 
ii  procps  1:3.2.7-11   /proc file system utilities

dahdi recommends no packages.

dahdi suggests no packages.

-- no debconf information
diff -urN dahdi-tools-2.2.1_old/xpp/perl_modules/Dahdi/Chans.pm dahdi-tools-2.2.1/xpp/perl_modules/Dahdi/Chans.pm
--- dahdi-tools-2.2.1_old/xpp/perl_modules/Dahdi/Chans.pm	2010-05-11 15:31:43.0 +0200
+++ dahdi-tools-2.2.1/xpp/perl_modules/Dahdi/Chans.pm	2010-05-11 15:47:31.0 +0200
@@ -142,7 +142,7 @@
 		$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
@@ -150,6 +150,8 @@
 		# 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(B4|ZTHFC\d*|ztqoz\d*)/.*}) {
 		# B4: The Digium wcb4xxp DAHDI driver
diff -urN dahdi-tools-2.2.1_old/xpp/perl_modules/Dahdi/Hardware/PCI.pm dahdi-tools-2.2.1/xpp/perl_modules/Dahdi/Hardware/PCI.pm
--- dahdi-tools-2.2.1_old/xpp/perl_modules/Dahdi/Hardware/PCI.pm	2010-05-11 15:31:43.0 +0200
+++ dahdi-tools-2.2.1/xpp/perl_modules/Dahdi/Hardware/PCI.pm	2010-05-11 15:40:31.0 +0200
@@ -108,27 +108,30 @@
 	'1397:f001'		=> { DRIVER => 'ztgsm', DESCRIPTION => 'HFC-GSM Cologne Chips GSM' },
 
 	# Rhino cards (based on pci.ids)
-	'0b0b:0105'	=> { DRIVER => 'r1t1', DESCRIPTION => 'Rhino R1T1' },
-	'0b0b:0205'	=> { DRIVER => 'r4fxo', DESCRIPTION => 'Rhino R14FXO' },
-	'0b0b:0206'	=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino RCB4FXO 4-channel FXO analog telphony card' },
-	'0b0b:0305'	=> { DRIVER => 'r1t1', DESCRIPTION => 'Rhino R1T1' },
-	'0b0b:0405'	=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino R8FXX' },
-	'0b0b:0406'	=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino RCB8FXX 8-channel modular analog telphony card' },
-	'0b0b:0505'	=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino R24FXX' },
-	'0b0b:0506'	=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino RCB24FXS 24-Channel FXS analog telphony card' },
-	'0b0b:0605'	=> { DRIVER => 'rxt1', DESCRIPTION => 'Rhino R2T1' },
-	'0b0b:0705'	=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino R24FXS' },
-	'0b0b:0706'	=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino RCB24FXO 24-Channel FXO analog telphony card' },
-	'0b0b:0906'	=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino RCB24FXX 24-channel modular analog telphony card' },
+	'0b0b:0105'		=> { DRIVER => 'r1t1', DESCRIPTION => 'Rhino R1T1' },
+	'0b0b:0205'		=> { DRIVER => 'r4fxo', DESCRIPTION => 'Rhino R14FXO' },
+	'0b0b:0206'		=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino RCB4FXO 4-channel FXO analog telephony card' },
+	'0b0b:0305'		=> { DRIVER => 'r1t1', DESCRIPTION => 'Rhino R1T1' },
+	'0b0b:0405'		=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino R8FXX' },
+	'0b0b:0406'		=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino RCB8FXX 8-channel modular analog telephony card' },
+	'0b0b:0505'		=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino R24FXX' },
+	'0b0b:0506'		=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino RCB24FXS 24-Channel FXS analog telephony card' },
+	'0b0b:0605'		=> { DRIVER => 'rxt1', DESCRIPTION => 'Rhino R2T1' },
+	'0b0b:0705'		=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino R24FXS' },
+	'0b0b:0706'		=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino RCB24FXO 24-Channel FXO analog telephony card' },
+	'0b0b:0906'		=> { DRIVER => 'rcbfx', DESCRIPTION => 'Rhino RCB24FXX 24-channel modular analog telephony card' },
 
 	# Sangoma cards (based on pci.ids)
-	'1923:0040'	=> { DRIVER => 'wanpipe', DESCRIP