2
0
Эх сурвалжийг харах

units/ttlsxx0001: connect with openssl and check if it was accepted

Daniel-Constantin Mierla 5 жил өмнө
parent
commit
a1cae41717

+ 9 - 0
units/ttlsxx0001/ttlsxx0001.sh

@@ -13,5 +13,14 @@ kill_pidfile ${KAMPID}
 if [ ! "$ret" -eq 0 ] ; then
     exit $ret
 fi
+sleep 1
+echo
+echo "--- grep output"
+echo
+grep "TLS accept successful" /tmp/kamailio-ttlsxx0001.log
+ret=$?
+if [ ! "$ret" -eq 0 ] ; then
+    exit 1
+fi
 
 exit $ret