check_sip_latency: improve output
This commit is contained in:
parent
8253e3e1bc
commit
257848145f
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ latency=`/usr/bin/sudo -u root /usr/sbin/rasterisk -rnx "sip show peer $PEER"|gr
|
||||||
|
|
||||||
if [ ! -n "$latency" ]
|
if [ ! -n "$latency" ]
|
||||||
then
|
then
|
||||||
/bin/echo "SIP Latency UNKNOWN"
|
echo "UNKNOWN - SIP peer $PEER unknown"
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -82,5 +82,5 @@ else
|
||||||
exitcode=0
|
exitcode=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/bin/echo "SIP Latency ${nstatus} : $details | latency=${latency}ms"
|
echo "${nstatus} - SIP Latency is ${nstatus}: $details | latency=${latency}ms"
|
||||||
exit $exitcode
|
exit $exitcode
|
||||||
|
|
Loading…
Reference in a new issue