diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-01-19 12:45:59 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-01-19 12:45:59 +0000 |
commit | 05d51102d98dddc7a37f7d02b63b2b74e2367295 (patch) | |
tree | 8df55fd3295e3a085cd0abf754bbce8ee069314e | |
parent | 972717237075e2743e5fccdfe42b1e59c1c4c670 (diff) |
xpp_sync xpd order fix.
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5706 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | xpp/perl_modules/Dahdi/Xpp/Xpd.pm | 5 | ||||
-rwxr-xr-x | xpp/xpp_sync | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/xpp/perl_modules/Dahdi/Xpp/Xpd.pm b/xpp/perl_modules/Dahdi/Xpp/Xpd.pm index 21ce8b6..297a1d5 100644 --- a/xpp/perl_modules/Dahdi/Xpp/Xpd.pm +++ b/xpp/perl_modules/Dahdi/Xpp/Xpd.pm @@ -163,7 +163,10 @@ sub new($$$$$) { my $span = $self->xpd_getattr('span'); $self->{SPANNO} = $span; $self->{TYPE} = $type; - $self->{IS_BRI} = ($type =~ /BRI_(NT|TE)/); + if($type =~ /BRI_(NT|TE)/) { + $self->{IS_BRI} = 1; + $self->{TERMTYPE} = $1; + } $self->{IS_PRI} = ($type =~ /[ETJ]1/); $self->{IS_DIGITAL} = ( $self->{IS_BRI} || $self->{IS_PRI} ); Dahdi::Xpp::Line->create_all($self, $procdir); diff --git a/xpp/xpp_sync b/xpp/xpp_sync index b7c723a..8d85739 100755 --- a/xpp/xpp_sync +++ b/xpp/xpp_sync @@ -53,7 +53,7 @@ sub get_sorted_xpds() { } my @xpd_prio = Dahdi::Xpp::Xpd::xpds_by_rank(@good_xpds); #Dahdi::Xpp::Xpd::show_xpd_rank(@xpd_prio); - return @good_xpds; + return @xpd_prio; } sub do_select(@) { |