dbg("Thingy::broadcast: " . $thing->ascii) if isdbg('thing');
my @dxchan;
- my $to ||= $thing->{touser};
+ my $to ||= $thing->{route};
+ $to ||= $thing->{touser};
$to ||= $thing->{group};
if ($to && is_callsign($to) && (my $ref = Route::get($to))) {
dbg("Thingy::broadcast: routing for $to") if isdbg('thing');
{
my $thing = shift;
unless ($thing->{Aranea}) {
- $thing->{Aranea} = Aranea::genmsg($thing, qw(id out));
+ $thing->{Aranea} = Aranea::genmsg($thing, qw(id out o));
}
return $thing->{Aranea};
}
# {user} as well as a true user and also it may not
# have originated here.
- my $from = $thing->{user} if Route::Node::get($thing->{user});
+ my $from = $thing->{o};
+ $from ||= $thing->{user} if Route::Node::get($thing->{user});
$from ||= $thing->{origin};
my $to = $thing->{touser} if Route::Node::get($thing->{touser});
$to ||= $thing->{group};
+
$thing->{DXProt} = DXProt::pc51($to, $from, $thing->{out});
}
}
}
} else {
+ $thing->{route} = $thing->{o} if $thing->{o};
$thing->broadcast($dxchan);
}
}