summaryrefslogtreecommitdiff
path: root/xpp/perl_modules
AgeCommit message (Collapse)Author
2010-07-21dahdi_genconf: better error message for a bad generator moduleTzafrir Cohen
Merged revisions 8924 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.3@8961 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-21Allow using CONNECTOR/LABEL in genconf_parametersTzafrir Cohen
Allow using CONNECTOR/LABEL in addition to SPAN and NUM for pri_termtype in genconf_parameters Merged revisions 8923 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.3@8960 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-21Extra PCI IDs for Junghanns PCI-E card (dahdi-perl)Tzafrir Cohen
Merged revisions 8854 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.3@8959 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-07-21An extra PCI ID for an OpenVox card I ran into.Tzafrir Cohen
Merged revisions 8741 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.3@8957 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-05-17A more correct way to pass parametersTzafrir Cohen
Merged revisions 8630 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.3@8631 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
2010-03-08Ensure dahdi_scan supports all Digium cards. Credit: kmoore.Mike Spiceland
DAHDI-559 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8280 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-03-02DAHDI-perl: allow setting base of system files with DAHDI_VIRT_TOPTzafrir Cohen
If the user set DAHDI_VIRT_TOP in the environment, consider it as a path under which to look for ProcFS and SysFS files. This allows running the DAHDI-perl tools on filesystem dumps generated by build_tools/dump_sys_state . To reduce the number of dependencies between various modules, the 'xpd' member of a Dahdi::Span is removed. Dahdi::Xpp::xpd_of_span() can be used if needed. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8215 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-26dahdi_cfg, dahdi_genconf: Add support for Hx8 series cards.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8125 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-02-04Fix generated context for MFC/R2 configTzafrir Cohen
xpp rev: 7733 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7992 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-24A better test for the Astribank transport directoryTzafrir Cohen
* On some kernels there's no 'usb_endpoint' under the USB device's SysFS node. Use 'idVendor' which is far less likely to fail. * Actively resolve the symlink 'transport' to its name (e.g. '1-2'). Originally r7825 from the branch perl-sysstate. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7954 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2010-01-24Not all Astribanks have a 'serial' attribute. Make it optional.Tzafrir Cohen
Originally r7824 from the perl-sysstate branch. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7953 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-09Pick up the TCE400P if it is installed.Sean Bright
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7673 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-12-09dahdi-perl: Fix sub-product ID of Jughanns OctoBRITzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7670 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-19xpp: MPP protocol v.1.4Tzafrir Cohen
* New firmware loading protocol - Older one (1.3) is still supported for now * Support loading firmwares from Astribanks with a minimal firmware (1163) * astribank_tool -Q: always query, regardless of verbosity level xpp rev: up to 7559 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7609 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-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-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-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-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-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: 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-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-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-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-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-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-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-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
2009-05-11DAHDI-perl: Fix detection of empty slots in Rhino cards.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6601 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-05-08dahdi-perl: scan only "number" files under /proc .Tzafrir Cohen
(In case someone, such as dahdi_dynamic_ethmf adds there some other entries) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6579 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-21Dahdi::Config::Gen::Xpporder: use number rather than object in warningTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6427 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-20xpp: twinstar-related perl improvementsTzafrir Cohen
* New generator Dahdi::Config::Gen::Xpporder can generate and xpp_order config for an existing setup. * Add more TwinStar related logic to Dahdi::Xpp::Mpp. Simplifies the twinstar utility accordingly. * twinstar_hook: for the multiple Astribanks case. * twinstar_setup: More logic tests. Now delegates configuration generation to dahdi_genconf (with new Xpporder generator). * dahdi_hardware: Show number of channels with -v git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6417 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-02Support for Astribanks 116x: tools partTzafrir Cohen
* New USB firmware loading mechanism. - Incompatible with previous one: upgrade using fxload or hard reset - astribank_hexload is the new low-level loading tool - fpga_load remains for backward compatibility. - xpp/astribank_upgrade: automate upgrading using fxload * Much enhanced control protocol ("MPP") - astribank_tool is the low-level tool for that. * Support for the TwinStar (dual USB port) - Managed through astribank_tool - Wrapper perl modules and scripts provided * Allow explicit ordering of Astribanks - /etc/dahdi/xpp_order - explicit order of Astribanks on the system - The default sorter is now to use those and fall back to connectors (previous default). - An option to dahdi_registration to change sorting. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6313 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-04-01Implement 'dahdi_genconf modules' (generate /etc/dahdi/modules)Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6278 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-29dahdi_genconf: Set the context same as groups.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6272 a0bf4364-ded3-4de4-8d8a-66a801d63aff