Branch dahdi-tools 2.4


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9733 17933a7a-c749-41c5-a318-cba88f637d49
svnmerge stuff


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9734 17933a7a-c749-41c5-a318-cba88f637d49
tonezone: Add Macao,China to tone zone data

Adding Macao tone zone data according to
http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf

(closes issue #17744)
	Reported by: alfredtang
	Patches:
	      zonedata.patch uploaded by alfredtang (license 1094)

Merged revisions 9313 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9735 17933a7a-c749-41c5-a318-cba88f637d49
astribank_is_starting: use semop if no semtimedop

astribank_is_starting should use a timeout for the semaphore, but if the
GNU-specific semtimedop() is not available, we'll just fall back to using
semop with no time out. Not as good, but better than nothing.

(closes issue #16783)
Reported by: abelbeck

Merged revisions 9426 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9736 17933a7a-c749-41c5-a318-cba88f637d49
Dahdi::Hardware: Support beroNet BN4S0e PCI Express card

Add extra PCI IDs to support "beroNet BN4S0e PCI Express 4x S0 Karte".

Origin: http://bugs.debian.org/600839

Merged revisions 9452 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9737 17933a7a-c749-41c5-a318-cba88f637d49
Fixed up the loss of crc4-multiframe alignment logic

Loss of crc4-multiframe alignment on an E1 link is not a condition which
brings the span down. The span will continue to run as long as it can
maintain double frame alignment. Because of this, we cannot place the
LMFA alarm in the usual spaninfo.alarms member, due to userspace
programs using this as a catch-all for a span being up or down.

We can detect the alarm by watching the frame error counter (fecount).
If it continuously increments, the span is configured for crc4, and the
span remains OK (alarms = 0), then we are in loss of crc4-multiframe
state.

In order to test this alarm, you'll need to synthesize a loss of crc4
alignment on the span. You can usually do this by configuring the local
span to use crc4 and the remote end to not use crc4. I used the Fireberd
6000 in my lab to do this.

dahdi-743 & dahdi-420

Acked-by: Shaun Ruffell <sruffell@digium.com>

Merged revisions 9458 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9738 17933a7a-c749-41c5-a318-cba88f637d49
dahdi_scan: Show CAS framing on the framing line.

Also, always append "/CRC4" on any span where that was specified as an
option.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>

Merged revisions 9473 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9739 17933a7a-c749-41c5-a318-cba88f637d49
xpp_fxloader: Don't try to load FPGA firmware twice

When called from udev to load the FPGA firmware, make sure that this is
not the event generated for the first end-point of the existing two, as
we need to talk with the second one.

This is probably better done in the udev rules, but will be slightly
more complicated to apply only to the FPGA loading and not to USB
firmware loading.

Merged revisions 9482 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9740 17933a7a-c749-41c5-a318-cba88f637d49
dahdi_genconf: Don't generate configurations that use channel 16 on E1 CAS

Attempting to use channel 16 on E1 CAS is disallowed since that channel is
reserved for RBS signaling.  Configurations should not be generated that
attempt to use it.

Closes DAHDI-763.

Patch by dmartinez.

Merged revisions 9485 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9741 17933a7a-c749-41c5-a318-cba88f637d49
dahdi-perl: left-over $span->xpd

Replace one remaining $span->{XPD} with xpd_of_span().

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

Merged revisions 9648 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9742 17933a7a-c749-41c5-a318-cba88f637d49
dahdi-perl: fix xpp driver in dahdi_hardware

Don't require 'dahdi_hardware -v' to show the driver for a USB device.
Only works when the usbfs is not used (when /proc/bus/usb is not mounted).

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

Merged revisions 9699 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9743 17933a7a-c749-41c5-a318-cba88f637d49
dahdi-perl: more left-over $span->xpd

Replace the remaining $span->xpd with xpd_of_span().

Following up on r9648.

Merged revisions 9731 via svnmerge from 
http://svn.digium.com/svn/dahdi/tools/trunk


git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9744 17933a7a-c749-41c5-a318-cba88f637d49
dahdi.init: LSB short description

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9832 17933a7a-c749-41c5-a318-cba88f637d49
astribank_is_starting.c: do have timeout (typo)

Due to a typo the option for not using a timeout was always used.

Regression since r9426.

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9833 17933a7a-c749-41c5-a318-cba88f637d49
fix registration order for more than 9 Astribanks

The sorting function for SORT_XPPORDER accidentally sorted the Astribank
priorities from the xpp_order file (/etc/dahdi/xpp_order) lexicographically
instead of numerically, that is: 10 before 2.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@9987 17933a7a-c749-41c5-a318-cba88f637d49
xpp: pri_termtype: match complete SPAN patterns

Match complete span patterns, to avoid pattern 'SPAN/1' from matching
e.g. span 12 (SPAN/12).

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@10105 17933a7a-c749-41c5-a318-cba88f637d49
README.Astribank: HWEC and build instructions

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/branches/2.4@10106 17933a7a-c749-41c5-a318-cba88f637d49