+13Jun01=======================================================================
+1. fix init cnd rinit cmds
10Jun01=======================================================================
1. fix set/here and unset/here
2. fix indirect routing to users two hops away
my $dxchan = DXChannel->get($call);
if ($dxchan) {
if ($dxchan->is_node) {
-
# first clear out any nodes on this dxchannel
- my $node = Route::Node::get($self->{call});
- my @rout = $node->del_nodes if $node;
- DXProt::route_pc21($self, @rout);
+ my $parent = Route::Node::get($call);
+ my @rout = $parent->del_nodes;
+ $dxchan->route_pc21($self, @rout) if @rout;
$dxchan->send(DXProt::pc18());
$dxchan->state('init');
push @out, $self->msg('init1', $call);
my $dxchan = DXChannel->get($call);
if ($dxchan) {
if ($dxchan->is_node) {
-
- # first clear out any nodes on this dxchannel
- my $node = Route::Node::get($self->{call});
- my @rout = $node->del_nodes if $node;
- DXProt::route_pc21($self, @rout);
- $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 {
# first clear out any nodes on this dxchannel
my $parent = Route::Node::get($self->{call});
- my @rout;
- for ($parent->nodes) {
- my $r = Route::Node::get($_);
- push @rout, $r->del_node if $r;
- }
+ my @rout = $parent->del_nodes;
$self->route_pc21(@rout, $parent);
$self->send_local_config();
$self->send(pc20());