check_sip_latency: improve output

This commit is contained in:
Benjamin Renard 2022-05-19 12:13:29 +02:00
parent 8253e3e1bc
commit 257848145f

View file

@ -61,7 +61,7 @@ latency=`/usr/bin/sudo -u root /usr/sbin/rasterisk -rnx "sip show peer $PEER"|gr
if [ ! -n "$latency" ]
then
/bin/echo "SIP Latency UNKNOWN"
echo "UNKNOWN - SIP peer $PEER unknown"
exit 3
fi
@ -82,5 +82,5 @@ else
exitcode=0
fi
/bin/echo "SIP Latency ${nstatus} : $details | latency=${latency}ms"
echo "${nstatus} - SIP Latency is ${nstatus}: $details | latency=${latency}ms"
exit $exitcode