- $self->send_route_pc92($main::mycall, \&pc92c, 1, $node, @rout) if @rout;
+ push @lines, pc92c($node, @rout);
+ }
+ }
+ return @lines;
+}
+
+
+sub send_pc92_config
+{
+ my $self = shift;
+
+ dbg('DXProt::send_pc92_config') if isdbg('trace');
+
+ my @out = $self->gen_pc92_update(1);
+
+ # send the complete config out on this interface
+ for (@out) {
+ $self->send($_);
+ }
+}
+
+sub send_pc92_update
+{
+ my @out = $main::me->gen_pc92_update(0);
+
+ # broadcast the lines to all PC92 nodes
+ for (@out) {
+ $main::me->broadcast_route_pc9x($main::mycall, undef, $_, 0);
+ }
+}
+
+sub time_out_pc92_routes
+{
+ my @nodes = grep {$_->call ne $main::mycall && ($_->do_pc92 || $_->via_pc92)} Route::Node::get_all();
+ my @rdel;
+ foreach my $n (@nodes) {
+ my $o = $n->dec_obs;
+ if ($o <= 0) {
+ if (my $dxchan = DXChannel::get($n->call)) {
+ dbg("ROUTE: disconnecting local pc92 $dxchan->{call} on obscount") if isdbg('route');
+ $dxchan->disconnect;
+ next;
+ }
+ my @parents = map {Route::Node::get($_)} $n->parents;
+ for (@parents) {
+ if ($_) {
+ dbg("ROUTE: deleting pc92 $_->{call} from $n->{call} on obscount") if isdbg('route');
+ push @rdel, $n->del($_);
+ }
+ }