diff --git a/lib/NGCP/Panel/Controller/CallRouting.pm b/lib/NGCP/Panel/Controller/CallRouting.pm index 30e6cb8d7f..0d0d1a27df 100644 --- a/lib/NGCP/Panel/Controller/CallRouting.pm +++ b/lib/NGCP/Panel/Controller/CallRouting.pm @@ -322,7 +322,7 @@ sub callroutingverify :Chained('/') :PathPart('callroutingverify') :Args(0) { caller => $data->{caller_in}, callee => $data->{callee_in}, ); - unless (scalar @{$data->{callee_peers}}) { + unless ($data->{callee_peers} && scalar @{$data->{callee_peers}}) { push @log, sprintf "no callee peers found"; goto RESULT; }