소스 검색

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

Daniel-Constantin Mierla 5 년 전
부모
커밋
a1cae41717
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      units/ttlsxx0001/ttlsxx0001.sh

+ 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