summaryrefslogtreecommitdiff
path: root/xpp/utils/zconf/Zaptel/Xpp.pm
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-03 17:05:16 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-03 17:05:16 +0000
commitb789eafda708e700c733aee4195b586192b642c2 (patch)
tree45bd8579c07519502395c72d33446f51a3829cb0 /xpp/utils/zconf/Zaptel/Xpp.pm
parentc20d0a8f8b1229e90e4cc14fdbf98d33275c8d56 (diff)
New xpp release: r4786:
* New firmware protocol version: 2.9 . * fpga_load: initial clean-ups before interface split. * genzaptelconf: Don't leave an empty directory behind (4784) * Increase xpp poll_timeout to 1000ms - useful for CentOS 4 (r4781). * Fix initialization anoyance: if AB don't answer to polls, don't waitfor_xpds, and show no waiting XPDs (r4725). * Disable dtmf_detect by default once again (r4712). * Don't check twice for asterisk to stop. The second test was done while Asterisk was still stopping (r4708). * Support building the kernel with M= instead of with SUBDIRS= , as used in some newer build systems (r4677). Merged revisions 3105 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3106 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/utils/zconf/Zaptel/Xpp.pm')
-rw-r--r--xpp/utils/zconf/Zaptel/Xpp.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/xpp/utils/zconf/Zaptel/Xpp.pm b/xpp/utils/zconf/Zaptel/Xpp.pm
index 28de49d..ff0008a 100644
--- a/xpp/utils/zconf/Zaptel/Xpp.pm
+++ b/xpp/utils/zconf/Zaptel/Xpp.pm
@@ -23,6 +23,10 @@ sub by_connector {
return $a->connector cmp $b->connector;
}
+sub by_serial {
+ return $a->serial cmp $b->serial;
+}
+
sub xbuses {
my $optsort = shift || 'SORT_NAME';
my @xbuses;
@@ -46,6 +50,8 @@ sub xbuses {
$sorter = \&by_connector;
} elsif($optsort eq "SORT_NAME") {
$sorter = \&by_name;
+ } elsif($optsort eq "SORT_SERIAL") {
+ $sorter = \&by_serial;
} elsif(ref($optsort) eq 'CODE') {
$sorter = $optsort;
} else {