summaryrefslogtreecommitdiff
path: root/xpp/perl_modules
AgeCommit message (Collapse)Author
2009-11-04dahdi-perl fixes, mostly xpp-specific.Tzafrir Cohen
* Fix pattern for PCI BRI cards * Fix recognizing xpp devices by @connector in xpp_order * Print more helpful comments in xpp_order * Remove most (if not all) need of /proc/bus/usb * Handle other similar "is_twinstar" errors. Merged revisions 6975,7000,7223,7401,7462 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk ........ r6975 | tzafrir | 2009-08-12 22:02:00 +0300 (Wed, 12 Aug 2009) | 2 lines dahdi-perl: Remove a pointless whitespace in BRI strings list ........ r7000 | tzafrir | 2009-08-14 00:40:01 +0300 (Fri, 14 Aug 2009) | 4 lines dahdi-perl: don't re-append '@' when testing the Astribank connector string xpp rev: 7291 ........ r7223 | tzafrir | 2009-09-27 16:38:50 +0200 (Sun, 27 Sep 2009) | 7 lines dahdi_genconf: xpp_order generator: Extra '#' after connector comment 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 ........ r7401 | tzafrir | 2009-10-13 20:21:17 +0200 (Tue, 13 Oct 2009) | 12 lines xpp: make /proc/bus/usb/devices optional 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. ........ r7462 | tzafrir | 2009-11-04 13:48:43 +0200 (Wed, 04 Nov 2009) | 6 lines dahdi-perl: Avoid '"is_twinstar" on unblessed reference' 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/branches/2.2@7473 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04Compilation and documentation fixes from trunkTzafrir Cohen
Merged revisions 6842,6898,6902,6976,7131 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk ........ r6842 | tzafrir | 2009-07-16 13:19:23 +0300 (Thu, 16 Jul 2009) | 2 lines Document attributes of a Dahdi::Xpp::Xpd object. ........ r6898 | dbrooks | 2009-07-27 22:54:13 +0300 (Mon, 27 Jul 2009) | 6 lines Replaces typos "recieved" with "received" and "initilize" with "initialize". (closes issue #15571) Reported by: alecdavis ........ r6902 | seanbright | 2009-07-28 00:05:16 +0300 (Tue, 28 Jul 2009) | 11 lines Pass correct channel number to DAHDI_GET_PARAMS when passing span numbers to dahdi_scan. When filtering, we weren't taking into account the number of channels in the spans that we were skipping. (closes issue #15553) Reported by: tony Patches: 20090723_issue15553.patch uploaded by seanbright (license 71) Tested by: seanbright ........ r6976 | tzafrir | 2009-08-12 22:21:01 +0300 (Wed, 12 Aug 2009) | 4 lines xpp: cleanup gcc warnings and one real astribank_tool bug xpp rev: 7281 ........ r7131 | tzafrir | 2009-09-15 19:52:58 +0300 (Tue, 15 Sep 2009) | 7 lines Add a missing trailing slash on the install-libs target (closes issue #15793) Reported by: pprindeville Patches: dahdi-tools-makefile.patch uploaded by pprindeville (license 347) ........ git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@7471 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04xpp: typos and such. Whitespace fixes in PCI.pmTzafrir Cohen
Merged revisions 6832 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@7469 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-11-04Add the TC400P transcoder card to our hardware list (seanbright)Tzafrir Cohen
Merged revisions 6823 via svnmerge from http://svn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@7467 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
2009-03-22dahdi-perl: "allow" hand-editing of generated filesTzafrir Cohen
Rework the text added by dahdi_genconf generators to say that you can hand-edit files. But just don't complain if they get mysteriously overriden when it is run again :-) (closes issue #14569) Reported by: jtodd git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6215 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-09Fix detection of channels of dynamic spans in Dahdi::ChansTzafrir Cohen
Fix the pattern detection of channels belonging to dynamic (dahdi_dynamic) spans in perl programs that use Dahdi::Chans (e.g.: lsdahdi) (closes issue #14630) Reported by: tamiel Patches: 20090309-perl5-Dahdi-Chans.diff uploaded by tamiel (license 712) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6110 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-07Detect Sangoma USB FXO device; fix detection of Sangoma DAHDI channelsTzafrir Cohen
(By Alessandro Zummo) git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6107 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-03genconf_parameters: Add option fxo_default_start; Document genconf_parametersTzafrir Cohen
* Add a dqahdi_genconf option fxo_default_start, equivalent of fxs_default_start. * Set all trunks in group 'group_lines' rather than hard-coded 0 (for TE) and 6 (for NT). * Document all parameters in genconf_parameters. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6077 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-02dahdi_genconf: configuration handling cleanup.Tzafrir Cohen
* Parsing genconf_parameters is now in Dahdi::Config::Params All hard-coded defaults are there too (in the item() method). * Dahdi::Config::Genconf is gone (merged into Dahdi::Config::Gen) All semantic mapping is in the constructor. * dahdi_genconf is now lean and mean. * Add some implementation docs into these files. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6075 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-02dahdi-perl: Do generate 'echocanceller' in system.confTzafrir Cohen
Fixed a regression from r6013 . git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6073 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-02dahdi-perl: Remove an obsolete and unused module GenconfDefaults.pmTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6072 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-01xpp-dahdi: freepbx code generation; better procfs compatibilityTzafrir Cohen
* dahdi_genconf -F will generate chan_dahdi.conf for freepbx (like genzaptelconf -F) * Better procfs compatibility for xpp modules. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6057 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-01dahdi-perl: more defensive coding and some docsTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6056 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-03-01Dahdi.pm: the sample code should actually work.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6055 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-02-26Add PCI IDs of another HFC-S card that zaphfc can handle.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6043 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-02-25Fix a typo for detecting zaphfc.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6041 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-02-13Rework dahdi_genconf to have separate configuration generation modules.Tzafrir Cohen
'dahdi_genconf foo bar' will use the modules Dahdi::Config::Gen::Foo and Dahdi::Config::Gen::Bar to generate configuraion files. Extra formats can thus be added without modifying dahdi_genconf and independently of DAHDI. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6013 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-19xpp_sync xpd order fix.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5706 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-19Dahdi-perl: Do detect Astribank PRI modules.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5705 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-18XPP tool updates to match r5663: sysfs migration.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5671 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-06d00d must be in small capsTzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5643 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2009-01-03Dahdi::Span: Remove an over-general span header "pri" pattern.Tzafrir Cohen
Should fix #14061 . git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5626 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-12-08Fix detection of the B410P card. Tzafrir Cohen
All ports will be reported as TE. Tested by write_erase on #asterisk-dev. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5452 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-28Get wcb4xxp listed in lsdahdi .Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5160 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-28Adding support for the wcb4xxp module.Shaun Ruffell
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5155 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-27perl xpp: Support for FXO batter attribute from sysfs (from r5133).Tzafrir Cohen
Still falls back to reading the battery status from procfs. Also fixes error message. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5134 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-16xpp: userspace support for sysfx migration.Tzafrir Cohen
The userspace side of dahdi-linux r5097. * Perl modules default to using xpp sysfs but will fallback (with warning) to procfs interface. * An additional /usr/share/dahdi/waitfor_xpds to replace the line in the init.d script. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5099 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-15Dahdi-perl: Fix detection of empty slots in Rhino analog cards.Tzafrir Cohen
Closes issue #13685 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5094 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-10-03When the config file is not found: return "empty" data and don't die.Tzafrir Cohen
Closes issues #13615 . git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5044 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-25Fix default path of dahdi_cfg (used for probing type of wctdm channels)Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4833 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-17Dahdi::Chans: fix leftovers from r4767 (handling of spaces)Tzafrir Cohen
While r4767 solved some parsing problems of channels with "strange" encoding names, it introduced a new problem (e.g.: "RED" after "(In use)" which is fixed here. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4787 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-12Dahdi-perl: More robust parsing of channel signalling types.Tzafrir Cohen
Use a list of signalling types rather than a regular experssion of a "word". git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4767 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-12* xpp_fxloader: shows USB firmware version.Tzafrir Cohen
* Update PCI IDs database. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4765 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-08-12Dahdi-perl: Add alarms() method for channels. Use it in lsdahdi.Tzafrir Cohen
* Better paring of the /proc/dahdi/N channel lines for alarms * Provide it as a separate alarms() method. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4764 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-07-03Allow a different sort order in dahdi_registration without editing theTzafrir Cohen
script. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4533 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-29dahdi_genconf configuration separated from the kernel config.Tzafrir Cohen
* Using /etc/dahdi/genconf_parameters. * A shiny new format (sample file included). * xpp_fxloader is configured from /etc/dahdi/init.conf (like the init.d script). * Yet some more string cleanups. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4484 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-25* Rename Dahdi::Config::Defaults to Dahdi::Config::GenconfDefaults .Tzafrir Cohen
* Reads from the new /etc/dahdi/genconf_parameters . * Do installl xpp_fxloader (the firmware loading wrapper script). * Even more /etc/dahdi/system.conf string fixes. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4463 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-19XPP tools rename: part 2.Tzafrir Cohen
Removed obsolete astribank_hook (not needed) and print_modes (moved to kernel). git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4416 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2008-06-19XPP utilities rename: first moves.Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4415 a0bf4364-ded3-4de4-8d8a-66a801d63aff