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" ]
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue