summaryrefslogtreecommitdiff
path: root/xpp
AgeCommit message (Collapse)Author
2011-10-23xpp_order generator: ignore EC XPDTzafrir Cohen
The xpp_order configuration generator should only loop over telephony devices, not all spans. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10266 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-10-23chandahdi gen: extens can have any num of digitsTzafrir Cohen
Don't force extens we generate to have exactly 4 digits (simple formatting limitation). Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10265 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-10-23Typos in man pages: toolyouTzafrir Cohen
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10264 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-09-29dahdi_genconf: Use 'dahdi_scan' to determine span_type for B410P cards.Shaun Ruffell
The wcb4xxp driver does not put enough information in the proc filesystem to determine if the ports are in TE or NT mode. Previously the ports would always just setup the dahdi-channels.conf file in TE mode. After this change the dahdi_scan utility is used to detect if the ports are in TE or NT mode and setup dahdi-channels.conf appropriately. Internal-Issue-ID: DAHTOOL-54 Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10214 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-09-29dahdi_genconf: Assume spans with unknown term types are software selectable.Shaun Ruffell
Resolves a regression on the 2.5 branch that would result in: $ dahdi_genconf dahdi_genconf: missing default group (termtype=UNKNOWN) E1 / T1 spans use software configuration to set CPE / NET mode. This patch will just assume that a termtype is software selectable if it was "UNKNOWN" when first scanning the span. Internal-Issue-ID: DAHTOOL-55 Signed-off-by: Shaun Ruffell <sruffell@digium.com> Tested-by: David Purdue <support@noojee.com.au> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10213 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-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-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-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-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-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-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-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-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-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-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
2010-07-28twinstar: err on an invalid command.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9031 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-22increase maximal firmware delay to 15 secondsTzafrir Cohen
Hmm... how badly congested can the startup of Centos be? git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8964 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-21More hyphen/minus fixes.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8954 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-20xpp_fxloader: replace a sleep with a sleep loopTzafrir Cohen
For newer kernels there's no need to sleep at all. For Centos5 systems there seems to be a need for a large sleep for firmware load at boot time. So let's make it a loop. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8951 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-20README.Astribank: new VMWI settingsTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8948 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-14dahdi_genconf: better error message for a bad generator moduleTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8924 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-14Allow using CONNECTOR/LABEL in genconf_parametersTzafrir Cohen
Allow using CONNECTOR/LABEL in addition to SPAN and NUM for pri_termtype in genconf_parameters git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8923 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-06Extra PCI IDs for Junghanns PCI-E card (dahdi-perl)Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8854 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-06-02An extra PCI ID for an OpenVox card I ran into.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8741 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-05-17Fix bashism (Raphael Geissert, checkbashism)Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8638 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-05-17A more correct way to pass parametersTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8630 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-05-03xpp_fxloader: make sure 1163 is not missed.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8589 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-04-29Load xpp firmware in the background (udev)Tzafrir Cohen
Move loading the the xpp firmwares (when called from udev) to a background sub-process. This helps with: * Don't block udev * It seems that with older systems (e.g. CentOS 5) we need to wait a bit for the device file to appear (in one of the upcoming udev events). If we keep blocking udev, we won't have the device file. The 'sleep' does not seem to be required for newer systems (e.g. Debian Lenny). git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8580 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-04-22astribank_is_starting does not depend on libusb.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8547 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-04-18man pages: hyphen to minusTzafrir Cohen
Groff considers '-' a hyphen. If we want a minus (or a dash) we need to use '\-'. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8529 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-04-12Also detect USB devices connected on a hub.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8508 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-04-12Also detect type for Sangoma E1/T1 cards.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8503 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-03-25wcb4xxp - add Swyx 4xS0 SX2 QuadBri PCI IDs to dahdi-perlTzafrir Cohen
(issue #16493) Reported by: nic_bellamy git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8430 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-03-25Some more wcb4xxp PCI IDs for Junghanns cardsTzafrir Cohen
(issue #15446) (issue #16447) Reported by: lpistone Tested by: okrief git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8422 a0bf4364-ded3-4de4-8d8a-66a801d63aff