summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-09-09Man page for dahdi_maintTzafrir Cohen
Fix dahdi_maint's usage message while we're at it. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10198 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-09-09Update the dahdi-monitor man pageTzafrir Cohen
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10196 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-09-09fix typos in some xpp utilsTzafrir Cohen
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10194 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-09-05xpp: waitfor_xpds: higher and configurable timeoutTzafrir Cohen
On several pathological cases we may need to wait more than 40 seconds. Make that timeout configurable. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10177 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-08-25dahdi-perl: Also get USB loaded driver from usbfsTzafrir Cohen
Signed-off-by: Oron Peled <oron.peled@xorcom.com> Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10153 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-08-18dahdi-perl: Freepbxdb config generatorTzafrir Cohen
Use 'dahdi_genconf freepbxdb' to generate the required astdb entries for Asterisk to use the extensions generated by dahdi_genconf. Requires asterisk to be running. This module is intended for testing as it bypasses standard FreePBX functions only and hence may not work properly with Freepbx. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10142 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-08-10README.Astribank: HWEC and build instructionsTzafrir Cohen
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10104 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-08-09xpp: pri_termtype: match complete SPAN patternsTzafrir Cohen
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.asterisk.org/svn/dahdi/tools/trunk@10101 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-08-02Extra README fixes: 'th' and ztcfgTzafrir Cohen
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10087 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-08-02spelling: ocnfig.status and suchTzafrir Cohen
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10085 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-07-21patlooptest: Ignore the first buffered eventRuss Meyerriecks
Fixes the feature introduced in r9909 that allows patlooptest to monitor channel events. Patlooptest was reporting events that we don't care about, prior to reading from the channel. This fix ignore the first event read on a channel and reports all subsequent events properly. Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10071 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-07-21astribank_hook: startup lock and moreTzafrir Cohen
* Silently exit right away if user did not set XPP_HOTPLUG_DAHDI. * Only one Astribank should be allowed to run the startup script: - Protect that section with a "lock" (symlinking a file). - Sadly we can't rely on /run and may have to wait for a r/w file-system. - And thus even this waiting needs to be run in the background as to not hold udev. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10068 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-07-12Span.pm: Process the /proc/dahdi/<x> files atomically.Shaun Ruffell
It is possible that the contents of the proc files can change while the perl modules are in the processing of processing them. Specifically, if lsdahdi is called on boot before the channels are configured, the channel will be "probed" to determine if it's an FXO or FXS channel and that can result in the output of proc changing. When the size of proc changes, the script can get confused about where the beginning of the next line is. This patch reads in the proc file completely into memory first, and then starts processing each of the lines. This resolves the "Unrecognized garbage 'INACTIVE)' in -" that is displayed on boot with the recent trunk of DAHDI. Signed-off-by: Shaun Ruffell <sruffell@digium.com> Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10040 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-07-11xpp: astribank_hexload: yes, we HAVE_OCTASICTzafrir Cohen
Hardwire this for now, as this does not come from autoconf. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10034 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-07-10xpp: support loading Octasic EC firmwareTzafrir Cohen
Echo Cancellation firmware is loaded by xpp/stribank_hexload (Using the oct612x code). * astribank_hexload: options -O/-o/-A for handling the Octasic echo cancellation firmware. * astribank_tool: report that. * xpp_fxloader: Run astribank_hexload, if needed. * dahdi_perl: The EC module is an extra XPD, but not a "telephony device" and hence not a span. Deal with that. * waitfor_xpds: may need to wait a bit longer for firmware loading. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10032 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-07-10xpp: A copy of oct612x in dahdi-toolsTzafrir Cohen
Include a copy of the oct612x Octasic echo canceller interface to be used by astribank_hexload to load the echo canceller firmware to a Xorcom Astribank. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10030 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-07-05system.conf.sample: Add note regarding cross connecting spans on B410P.Shaun Ruffell
There is an issue with the hardware on the B410P that makes it unreliable to connect one of the ports to another port for testing. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10026 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-06-23fix registration order for more than 9 AstribanksTzafrir Cohen
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.asterisk.org/svn/dahdi/tools/trunk@9986 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-06-16dahdi_genconf: apply termtype to Digium HA8 BRITzafrir Cohen
Make the pri_termtype setting in genconf_parameters apply to any BRI/PRI carddeclared as "soft NT". ATM, this is only the Xorcom E1/T1 device and the Digium HA8 (BRI) module of the TDM card. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Acked-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9979 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-06-07tools: Allow pattern tools to access channels above the device file limitKinsey Moore
pattest and patgen already had this capability, but there were cases in which they would act unexpectedly. Now, if the name specified is not a character device file, it will be treated as a channel number if possible. Acked-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9975 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-06-07xpp: this is the right place for astribank_close()Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9973 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-05-24zonedata: Add support for United Arab Emirates.Shaun Ruffell
This was provided for interop with analog lines provided by Etisilat. DAHDI-796. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9920 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-05-24zonedata: Add support for Costa Rica.Shaun Ruffell
Add in the costa Rica zonedata. (closes issue #19069) Reported by: desafiocostarica Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9919 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-04-18tools: Allow patlooptest to activate and handle buffer eventsKinsey Moore
The new buffer events code introduced in revision 9905 gives userspace processes an interface to activate detection of buffer over and underflows. This change allows patlooptest to take advantage of that feature to better inform users of the cause of pattern errors. Acked-by: Shaun Ruffell <sruffell@digium.com> (original patch by Matt Fredrickson) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9909 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-03-16astribank_is_starting.c: do have timeout (typo)Tzafrir Cohen
Due to a typo the option for not using a timeout was always used. Regression since r9426. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9831 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-03-16dahdi.init: LSB short descriptionTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9830 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-03-10xpp: use 'xtalk' for the USB access codeTzafrir Cohen
* Move most of the USB access code from xpp/ to xpp/xtalk/ . * astribank_tool and such tools can now use a shorter -D mmm/nnn rather than a full path. Signed-off-by: Oron Peled <oron.peled@xorcom.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9825 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-02-06dahdi-perl: more left-over $span->xpdTzafrir Cohen
Replace the remaining $span->xpd with xpd_of_span(). Following up on r9648. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9731 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-01-25dahdi-perl: fix xpp driver in dahdi_hardwareTzafrir Cohen
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> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9699 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-01-20dahdi-perl: left-over $span->xpdTzafrir Cohen
Replace one remaining $span->{XPD} with xpd_of_span(). Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9648 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-12-09README, UPGRADE.txt, system.conf.sample: Add documentation for using HWECKinsey Moore
Update documentation to the effect that HWEC is not enabled by default and must be enabled manually if desired via "echocanceller" in system.conf. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9528 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-12-08dahdi_maint: Added the loopup/loopdown functionalityRuss Meyerriecks
Put back in the loopup and loopdown functionality which had been removed from dahdi_tool According to the spec AT&T TR 54016 we should keep the loopback actuate and release signals on the line for 5 seconds. Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com> Acked-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9517 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-11-29Add 'install-tests' Makefile target.Jason Parker
Acked-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9499 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-11-17dahdi_genconf: Don't generate configurations that use channel 16 on E1 CASKinsey Moore
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. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9485 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-11-16xpp_fxloader: Don't try to load FPGA firmware twiceTzafrir Cohen
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. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9482 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-11-11dahdi_maint: Minor name change for the error countersRuss Meyerriecks
Make the error counters a little more readable, removed the prbs counters since they are not currently functioning git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9477 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-11-10dahdi_scan: Show CAS framing on the framing line.Shaun Ruffell
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> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9473 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-10-25Fixed up the loss of crc4-multiframe alignment logicRuss Meyerriecks
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> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9458 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-10-20Dahdi::Hardware: Support beroNet BN4S0e PCI Express cardTzafrir Cohen
Add extra PCI IDs to support "beroNet BN4S0e PCI Express 4x S0 Karte". Origin: http://bugs.debian.org/600839 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9452 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-10-17astribank_is_starting: use semop if no semtimedopTzafrir Cohen
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 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9426 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-09-20dahdi_cfg: DAHDI_INDIRECT -> DAHDI_SPECIFY when configuring pciradio channels.Shaun Ruffell
While slightly less efficient, this is only used when configuring the channels initially (not the hot path) and allows dahdi-base.c to assume that the open "file" pointer always refers to the channel on which to perform the operation. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9352 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-09-08tonezone: Add Macao,China to tone zone dataRuss Meyerriecks
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) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9313 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-09-07dahdi.init: Remove reference to dahdi_dummy.Shaun Ruffell
Module 'dahdi_dummy.ko' is no longer needed for DAHDI to provide timing, therefore we can remove the explicit load of dahdi_dummy, which by default is aliased to dahdi.ko anyway. If you've edited the DAHDI Kbuild file in order to build dahdi_dummy explicitly, then you should add dahdi_dummy to /etc/dahdi/modules in order to load it, but this is not needed for normal operation. (issue #17959) Reported by: glen201 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9309 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-31PPP: Fix an incorrect function call that was causing dahdi.so to fail to loadKinsey Moore
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9220 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-18DAHDI-perl: Config (sort of) for dynamic channelsTzafrir Cohen
Generate some sort of configuration for dynamic channels. Usable enough for testing. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9159 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-13dahdi_scan: Use 'linecompat' to identify digital spans.Shaun Ruffell
This fixes the case where the BRI spans on the Hx8 cards were displayed as analog spans. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9133 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-08-03dahdi-perl: also detect Aligera cardsTzafrir Cohen
(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
2010-08-01fix build of dahdi_scan and dahdi_maint with -linux 2.3Tzafrir Cohen
New functionality that was added in r8992 and r8993 uses new items defined only in dahdi-linux trunk (and eventually: 2.4). As in both cases it's a single place to check, we'll just ifdef it away. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9076 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-30dahdi_cfg: Display more appropriate error messages when an invalid signaling ↵Kinsey Moore
is chosen along with suggestions on how to fix the problem. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9067 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-30perl: make sure the channel parser recognizes "Reserved" for unusable ↵Kinsey Moore
channels and fix a bug preventing E&M-E1 from being detected properly git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9066 a0bf4364-ded3-4de4-8d8a-66a801d63aff