summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-06-17 19:32:09 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-06-17 19:32:09 +0000
commit3b1feb04be38909f23568140838bdf8ae20ea020 (patch)
treee5c4ecd73b7c3d18a81e137d28501c0e41f348fa
parent53894e5aa1e733a0321a69bd1b12bd794586b4ab (diff)
A little bit of dahdi renaming: zt_registration.
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4376 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rwxr-xr-xxpp/dahdi_registration (renamed from xpp/zt_registration)12
-rw-r--r--xpp/zconf/Zaptel.pm2
-rw-r--r--xpp/zconf/Zaptel/Span.pm2
-rw-r--r--xpp/zconf/Zaptel/Xpp/Xpd.pm4
4 files changed, 10 insertions, 10 deletions
diff --git a/xpp/zt_registration b/xpp/dahdi_registration
index 3bdc642..831f048 100755
--- a/xpp/zt_registration
+++ b/xpp/dahdi_registration
@@ -46,7 +46,7 @@ foreach my $xbus (Zaptel::Xpp::xbuses('SORT_CONNECTOR')) {
myprintf "%-10s\t%s\t%s\n", $xbus->name, $xbus->label, $xbus->connector;
next unless $xbus->status eq 'CONNECTED';
foreach my $xpd ($xbus->xpds()) {
- my $prev = $xpd->zt_registration($on);
+ my $prev = $xpd->dahdi_registration($on);
if(!defined($prev)) { # Failure
printf "%s: Failed %s\n", $xpd->fqn, $!;
next;
@@ -66,11 +66,11 @@ __END__
=head1 NAME
-zt_registration - Handle registration of Xorcom XPD modules in zaptel.
+dahdi_registration - Handle registration of Xorcom XPD modules in zaptel.
=head1 SYNOPSIS
-zt_registration [on|off]
+dahdi_registration [on|off]
=head1 DESCRIPTION
@@ -92,10 +92,10 @@ on -- registers all XPD's to zaptel.
=head2 Sample Output
-An example of the output of zt_registration for some registered
+An example of the output of dahdi_registration for some registered
Astribanks:
- $ zt_registration
+ $ dahdi_registration
XBUS-02 [] usb-0000:00:1d.7-4
XBUS-00/XPD-00: on Span 1
XBUS-00/XPD-10: on Span 2
@@ -114,7 +114,7 @@ Astribanks:
=over
-=item /proc/xpp/XBUS-nn/XPD-mm/zt_registration
+=item /proc/xpp/XBUS-nn/XPD-mm/dahdi_registration
Reading from this file shows if if the if the specific XPD is
registered. Writing to it 0 or 1 registers / unregisters the device.
diff --git a/xpp/zconf/Zaptel.pm b/xpp/zconf/Zaptel.pm
index a7e7d6c..ef36bae 100644
--- a/xpp/zconf/Zaptel.pm
+++ b/xpp/zconf/Zaptel.pm
@@ -32,7 +32,7 @@ hardware and loaded Zaptel devices.
}
=cut
-my $proc_base = "/proc/zaptel";
+my $proc_base = "/proc/dahdi";
=head1 spans()
diff --git a/xpp/zconf/Zaptel/Span.pm b/xpp/zconf/Zaptel/Span.pm
index be49c28..9aceb78 100644
--- a/xpp/zconf/Zaptel/Span.pm
+++ b/xpp/zconf/Zaptel/Span.pm
@@ -113,7 +113,7 @@ actually set in the module as capital-letter propeties. To look at e.g.
=cut
-my $proc_base = "/proc/zaptel";
+my $proc_base = "/proc/dahdi";
sub chans($) {
my $span = shift;
diff --git a/xpp/zconf/Zaptel/Xpp/Xpd.pm b/xpp/zconf/Zaptel/Xpp/Xpd.pm
index 1ddb5c8..5087f1f 100644
--- a/xpp/zconf/Zaptel/Xpp/Xpd.pm
+++ b/xpp/zconf/Zaptel/Xpp/Xpd.pm
@@ -40,12 +40,12 @@ sub blink($$) {
return $result;
}
-sub zt_registration($$) {
+sub dahdi_registration($$) {
my $self = shift;
my $on = shift;
my $result;
- my $file = "$proc_base/" . $self->fqn . "/zt_registration";
+ my $file = "$proc_base/" . $self->fqn . "/dahdi_registration";
die "$file is missing" unless -f $file;
# First query
open(F, "$file") or die "Failed to open $file for reading: $!";