#
# XML Ping handler
#
-# $Id$
+#
#
# Copyright (c) Dirk Koopman, G1TLH
#
use DXDebug;
use DXProt;
use IsoTime;
-use Investigate;
use Time::HiRes qw(gettimeofday tv_interval);
+use Route::Node;
use vars qw(@ISA %pings);
@ISA = qw(DXXml);
$tochan->{pingave} = $tochan->{pingave} + (($t - $tochan->{pingave}) / 6);
}
$tochan->{nopings} = $nopings; # pump up the timer
+ dbg("ROUTE: $tochan->{call} ping obscount reset to $tochan->{nopings}") if isdbg('obscount');
+ my $nref = Route::Node::get($tochan->{call});
+ if ($nref) {
+ my $n = $nref->reset_obs;
+ dbg("ROUTE: reset obscount on $tochan->{call} to $n (ping)") if isdbg('obscount');
+ }
}
_handle_believe($from, $fromdxchan->{call});
}
{
my ($from, $via) = @_;
- if (my $ivp = Investigate::get($from, $via)) {
- $ivp->handle_ping;
- } else {
- my $user = DXUser->get_current($from);
- if ($user) {
- $user->set_believe($via);
- $user->put;
- }
+ my $user = DXUser->get_current($from);
+ if ($user) {
+ $user->set_believe($via);
+ $user->put;
}
}
1;