From b54ec6efd3e2e315833148d06232734fa97047a7 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 24 Dec 2017 17:59:49 +0200 Subject: [PATCH] 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 --- xpp/dahdi_registration | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xpp/dahdi_registration b/xpp/dahdi_registration index 2772e00..29e180f 100755 --- a/xpp/dahdi_registration +++ b/xpp/dahdi_registration @@ -109,9 +109,15 @@ foreach my $xbus (Dahdi::Xpp::xbuses($sorter)) { system @cmd; warn "Failed '@cmd' (status=$?)\n" if $?; } + } +} +if (defined($on) && $on) { + if ($opts{'R'} || ! $default_auto_assign) { # wait for UDEV to do its stuff system "dahdi_waitfor_span_assignments assigned"; } +} +foreach my $xbus (Dahdi::Xpp::xbuses($sorter)) { foreach my $xpd (Dahdi::Xpp::Xpd::telephony_devs($xbus->xpds())) { my $spanno = $xpd->xpd_getattr('span'); myprintf "\t%-10s: ", $xpd->fqn;