xpp: dahdi_registration: wait at end of assignments
Wait for assindments to end only after calling all of them. Otherwise we are likely to get a timeout with multiple Astribanks. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
parent
754d981621
commit
b54ec6efd3
@ -109,9 +109,15 @@ foreach my $xbus (Dahdi::Xpp::xbuses($sorter)) {
|
|||||||
system @cmd;
|
system @cmd;
|
||||||
warn "Failed '@cmd' (status=$?)\n" if $?;
|
warn "Failed '@cmd' (status=$?)\n" if $?;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (defined($on) && $on) {
|
||||||
|
if ($opts{'R'} || ! $default_auto_assign) {
|
||||||
# wait for UDEV to do its stuff
|
# wait for UDEV to do its stuff
|
||||||
system "dahdi_waitfor_span_assignments assigned";
|
system "dahdi_waitfor_span_assignments assigned";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
foreach my $xbus (Dahdi::Xpp::xbuses($sorter)) {
|
||||||
foreach my $xpd (Dahdi::Xpp::Xpd::telephony_devs($xbus->xpds())) {
|
foreach my $xpd (Dahdi::Xpp::Xpd::telephony_devs($xbus->xpds())) {
|
||||||
my $spanno = $xpd->xpd_getattr('span');
|
my $spanno = $xpd->xpd_getattr('span');
|
||||||
myprintf "\t%-10s: ", $xpd->fqn;
|
myprintf "\t%-10s: ", $xpd->fqn;
|
||||||
|
Loading…
Reference in New Issue
Block a user