foreach $call (@calls) {
$call = uc $call;
next if $call eq $main::mycall;
- my $dxchan = DXChannel->get($call);
+ my $dxchan = DXChannel::get($call);
if ($dxchan) {
if ($dxchan->is_node) {
-
- # first clear out any nodes on this dxchannel
- my @gonenodes = grep { $_->dxchan == $dxchan } DXNode::get_all();
- foreach my $node (@gonenodes) {
- next if $node->dxchan == $DXProt::me;
- next unless $node->dxchan == $dxchan;
- DXProt::broadcast_ak1a(DXProt::pc21($node->call, 'Gone, re-init') , $dxchan) unless $dxchan->{isolate};
- $node->del();
- }
-# $dxchan->send(DXProt::pc38());
- $dxchan->send(DXProt::pc20());
+ my $parent = Route::Node::get($call);
$dxchan->state('init');
+ $dxchan->send_local_config;
+ $dxchan->send(DXProt::pc20());
push @out, $self->msg('init1', $call);
}
} else {