summaryrefslogtreecommitdiff
path: root/xpp
AgeCommit message (Collapse)Author
2009-11-19xpp: support loading USB firmware into 1163 devices as wellTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7596 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-11xpp: turn in back into a 'die' in trunk to expose more bugs.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7559 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-11dahdi-perl: only get 'serial' and 'devnum' attributes from AstribanksTzafrir Cohen
We can tell if a device is an Astribank by the vendorId and productId attribute. Get other attributed only after we give up on other devices. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7558 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-10If the USB device doesn't have a serial, DON'T PANIC. Just return a soft ↵Tilghman Lesher
failure. (Fixes panicked users on #asterisk wondering why dahdi-tools springs up with Perl errors when they don't even have xpp hardware.) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7542 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04xpp: make astribank_is_starting build without warnings.Tzafrir Cohen
autoconfig.h is needed as semtimedop() requires _GNU_SOURCE. xpp rev: 7471 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7476 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04xpp: Comment-only changes: copyright, keywordsTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7463 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04dahdi-perl: Avoid '"is_twinstar" on unblessed reference'Tzafrir Cohen
Dpn't panic if a device is not found in the list of hardware. This is not only indication of a bug, but can also happen if a device appeared after the script was started. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7462 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-10-21Fix XPP_HOTPLUG_DAHDI: logic; end of init.d scriptTzafrir Cohen
'Hotplug mode' was introduced in r7335. * The logic in the script was broken. - Negative logic is not such a grand idea to start with. * Interactive invocation of init.d ends when expected and not sooner. This change makes waitfor_xpds wait longer. Rather than waiting for all the Astribanks to load, it will now wait until the initialization of dahdi from the Astribanks hook script is run. This allows running e.g.: /etc/init.d/dahdi start; /etc/init.d/asterisk start It also means that 'astribank_is_starting' is actually used as a semaphore and not only as stamp file. As before, those changes have no effect if hotplug mode is not explicitly enabled (setting 'XPP_HOTPLUG_DAHDI=yes' in init.conf). git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7409 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-10-13xpp: make /proc/bus/usb/devices optionalTzafrir Cohen
Get the information we read from /proc/bus/usb/devices from /sys/bus/usb/devices . Tested on my Debian Unstable with 2.6.30 kernel. The default is still /proc/bus/usb and sysfs is only used if the procfs file is not found. Also fixes a case of using the sysfs attribute busnum, that does not exist in kernel 2.6.9 . Devise the bus number from the name of the node. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7401 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-10-04Add XPP_HOTPLUG_DAHDI mode: cfg initiated mostly from hotplugTzafrir Cohen
If XPP_HOTPLUG_DAHDI=yes is set in /etc/dahdi/init.conf (which is not the default), the normal run of the 'start' operation of the dahdi init script will only be responsible for loading modules. The rest will be done (if there are indeed Astribanks on the system) by a second call to the init script once all of them have connected. The astribank_hook has also been mostly rewritten. Most of the functionality of twinstar_hook moved to it. The current twinstar_hook is a simple example script. XPP_HOTPLUG_DAHDI mode assumes that all Astribanks on the system are listed in /etc/dahdi/xpp_order (which can be generated using, e.g. 'dahdi_genconf xpporder') git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7335 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-10-04xpp: ignore everything after the end of the license stanzaTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7333 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-29xpp: fix a typo in documentationTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7263 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-29xpp: more T1-CAS config generation supportTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7257 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-29xpp: better sorting of XPDs by xpp sync rank.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7256 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-29xpp: use xpd sysfs attr. timing_priority to set NT/TETzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7253 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-29xpp: xpp_sync: add -v and fix perldocTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7252 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-27dahdi_perl: improved config generation for T1 CASTzafrir Cohen
A few extra options for a CAS span signalling. xpp rev: 7343, 7346, 7369 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7224 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-27dahdi_genconf: xpp_order generator: Extra '#' after connector commentTzafrir Cohen
Add an extra '#' right after the connector string to make it simpler to use the connector string from the generated xpp_order. xpp rev: 7292 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7223 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-27xpp: reduce the clutter of firmware loadingTzafrir Cohen
Make the new XPP tools much less verbose: * demote messages to be debug * Convert multi-line messages to be single-line messages Making xpp_fxloader run in debug mode can be done by setting DEBUG=yes in /etc/dahdi/init.conf git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7221 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-27xpp: install twinstar by default; Add a man pageTzafrir Cohen
Add a man page to twinstar (as perl POD) and get it installed by default. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7219 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-09-27xpp: twinstar - improve jump robustnessTzafrir Cohen
If one AB fails in jump, we should continue to iterate and try to jump the others, so we are not leaving some orphan AB's on the server which we try to evacuate. xpp rev: 7273 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7218 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-17xpp: waitfor_xpds: Bugfix: '$((' produces a command. Ignore it.Tzafrir Cohen
Fixes a regression from the bashism fix of r6829 . xpp rev: 7323 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7021 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-16dahdi-perl: Add basic T1-CAS support for dahdi_genconfTzafrir Cohen
- Support added in generators of system.conf and of chan_dahdi.conf . - Some strange asumptions about being FXS/FXO depending on being timing provider/supplier. - New gen_cas() method for Chandahdi and System. - Now gen_digital() is a bit cleaner. - Call gen_cas(), gen_openr2(), gen_digital() according to the 'pri_connection_type' config (CAS, R2, PRI/BRI). xpp rev: 7307 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7019 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-16xpp: Dahdi::Config::Gen.pm: improvements in preperation for T1-CAS:Tzafrir Cohen
- New channo_range() method which returns range strings for any list of channel numbers (handle sorting, validation, etc.) - Reimplement bchan_range() as a small wrapper around channo_range(). - Another small wrapper is chan_range() that works on channel objects. - Also a parse_chan_range() does the reverse (from range string to a list of channel numbers). This isn't used at the moment. xpp rev: 7306 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7018 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-16dahdi-perl: chan_dahdi.conf generator can generate openr2 confTzafrir Cohen
If configured to use R2 ("pri_connection_type R2" in genconf_parameters), the chandahdi generator of dahdi_genconf will now generate configuration for the openr2 support in chan_dahdi. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7016 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-16xpp: A man page for astribank_is_startingTzafrir Cohen
xpp rev: 7321 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7014 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-16xpp: Dahdi::Hardware->rescan() - refresh hardware listTzafrir Cohen
Allow refreshing the list of hardware even after the initial scan. (E.g. a script that resets firmware for Astribanks) xpp rev: 7320 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7012 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-13dahdi-perl: don't re-append '@' when testing the Astribank connector stringTzafrir Cohen
xpp rev: 7291 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7000 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-13xpp_fxloader: Search for commands in our directory first.Tzafrir Cohen
This allows using scripts from /usr/share/dahdi as well. xpp rev: 7286 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6999 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-13xpp: Add astribank_is_starting:Tzafrir Cohen
astribank_is_running is used to tell when we may have an Astribank that is initializing (and may be re-enumerating and thus not listed as a device). It uses a semaphore as we can always write to one and we can't always write to a file. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6987 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-12xpp: cleanup gcc warnings and one real astribank_tool bugTzafrir Cohen
xpp rev: 7281 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6976 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-08-12dahdi-perl: Remove a pointless whitespace in BRI strings listTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6975 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-27Replaces typos "recieved" with "received" and "initilize" with "initialize".David Brooks
(closes issue #15571) Reported by: alecdavis git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6898 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-16Document attributes of a Dahdi::Xpp::Xpd object.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6842 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-09xpp: Use CFLGAS and libs from autoconfTzafrir Cohen
Use CFLAGS and USB_{INCLUDE,LIB} from dahdi-tools's autoconf. (closes issue #15477) Reported by: pprindeville Patches: usb_use_libs.diff uploaded by tzafrir (license 46) Tested by: pprindeville git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6836 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-06xpp: typos and such. Whitespace fixes in PCI.pmTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6832 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-06Dahdi::Config::Params allow item() method to be used without defaultsTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6831 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-05Fix bashism in waitfor_xpdsTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6829 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02Add the TC400P trascoder card to our hardware list (seanbright)Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6823 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-07-02Officially declare we support all HFC-xS cards.Tzafrir Cohen
(closes issue #13897) Reported by: tzafrir Patches: wcb4xxp_extra_cards_dahdi-tools.diff uploaded by Odicha (license 700) The main fix is in commits the following commits to dahdi-linux: r6812, r6813, r6814, r6815, r6816, r6817, r6818 and r6821 Those include the contents of: wcb4xxp_extracards_leds_fixes.diff uploaded by Odicha (license 700) Tested by: zhulizhong, jdg, tzafrir, okrief, Odicha, opticron, vrban Many thanks for all the testing, patches and feedback from this issue. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6822 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-28xpp: if $dahdi_hardware is empty, don't use it in an error messageTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6668 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-25Properly fix usage of waitfor_xpds in non-standard settings.Tzafrir Cohen
From xpp rev. 7137. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6655 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-19dahdi-perl: make dahdi_genconf default to hardhdlcTzafrir Cohen
dahdi_genconf's 'bri_hardhdlc' parameter changes. Should generally work with no need for manual configuration unless you use a bristuffed driver (zaphfc, qozap). See notes in genconf_parameters. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6647 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-19dahdi.init: moved test for astribanks into waitfor_xpdsTzafrir Cohen
If the system starts with an Astribank with no firmware, the firmware loading may take a while and the Astribank only becomes ready some time after the DAHDI init script starts. This means that the test at the beginning of xpp_startup() in dahdi.init fails to find an Astribank, and the init script simply continues ignoring this. This changeset moves the testing inside the script waitfor_xpds. The script now: 1. Tests for an Astribank using dahdi_hardware and exists immediately if none found. 2. A loop (of maximum 10 seconds) waits for the first Astribank to be detected by the driver. 3. Waiting for the initialization of all the Astribanks to complete (The original waitfor_xpds) The support for the old procfs iinterface has been removed, as it has never been used with DAHDI. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6646 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-19xpp: install astribank_allowTzafrir Cohen
As we install it, we need a matching man page. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6643 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-17A closer-to-reality users.conf generation moduleTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6632 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-16Fix typos in xpp documentationTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6630 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-13astribank_tool: Support 'reset' of pre-MPP protocol as fallbackTzafrir Cohen
As of USB firmware rev. 6926, the Astribank control connection protocol has changed in an incompatible manner. If astribank_tool fails to open a device when running a reset command, try to reset the device with the command from the old (pre-MPP) protocol (A single 0x20 byte). No support whatsoever for any other feature of the old protocol. From xpp rev. 7067. (previous commit was xpp rev. 7066). git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6617 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-13xpp: better error reporting when failing to talk to a pre-MPP Astribank.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6616 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-13dahdi-perl: Patterns for Rhino E1/T1 cards.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6613 a0bf4364-ded3-4de4-8d8a-66a801d63aff