summaryrefslogtreecommitdiff
path: root/xpp/perl_modules/Dahdi/Span.pm
AgeCommit message (Collapse)Author
2011-11-02dahdi_genconf: Allow it to recognize the TE8xx 8-port cards.Shaun Ruffell
Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10308 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-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-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-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-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-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-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-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
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-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-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-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-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