push non-pc9x and non-spider nodes back for routing
[spider.git] / perl / Route.pm
index 0f23d45531c1e40ba6aa9640931b232e01a338eb..abc098471e7edaf0e7a721887a778359a77b3571 100644 (file)
@@ -312,7 +312,7 @@ sub findroutes
                unless ($seen->{$ncall}) {
 
                        # put non-pc9x nodes to the back of the queue
-                       my $l = $level + ($nref->{do_pc9x} ? 0 : 30);
+                       my $l = $level + ($nref->{do_pc9x} && ($nref->{version}||5454) >= 5454 ? 0 : 30);
                        dbg("recursing from $call -> $ncall level $l") if isdbg('routec');
                        my @rout = findroutes($ncall, $l+1, $seen);
                        push @out, @rout;