~vibhavp/ubuntu/raring/dahdi-tools/merge-from-debian

« back to all changes in this revision

Viewing changes to xpp/perl_modules/Dahdi/Xpp/Xpd.pm

  • Committer: Vibhav Pant
  • Date: 2012-12-26 17:23:16 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: vibhavp@gmail.com-20121226172316-o2jojsfcnr0aqrme
* Merge from Debian unstable. Remaining changes:
  - Bug Fix: If linux-headers are not installed, don't block, and print
    information for the user.
  - added debian/dahdi.postinst
  - added --error-handler=init_failed to debian/rules
  - debian/control: Added gawk as dependency for dkms build (LP: #493304)
  - Changes from Debian:
    - debian/control: Change Maintainer
    - debian/control: Removed Uploaders field.
    - debian/control: Removed Debian Vcs-Svn entry and replaced with
      ubuntu-voip Vcs-Bzr, to reflect divergence in packages.
    - debian/control: Package dahdi Depends on dahdi-dkms | dahdi-source 

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# This program is free software; you can redistribute and/or
6
6
# modify it under the same terms as Perl itself.
7
7
#
8
 
# $Id: Xpd.pm 7256 2009-09-29 19:20:32Z tzafrir $
 
8
# $Id: Xpd.pm 10032 2011-07-10 16:25:18Z tzafrir $
9
9
#
10
10
use strict;
11
11
use Dahdi::Utils;
327
327
# static xpd related helper functions
328
328
#------------------------------------
329
329
 
 
330
# Returns only the telephony XPD's from a list
 
331
# of one or more XPD's.
 
332
# I.e: Filters-out ECHO cancelers
 
333
sub telephony_devs {
 
334
        my @devs = grep { $_->channels } @_;
 
335
        return @devs;
 
336
}
 
337
 
330
338
sub format_rank($$) {
331
339
        my ($rank, $prio) = @_;
332
340
        my $width = 2;