#!/bin/bash


shopt -s nocasematch
STR=$(docker exec freeswitch fs_cli -x "show registrations") 
#STR=$(docker exec -ti freeswitch fs_cli -x "show registrations") 



[[ $STR =~ .*1000.* ]] && [[ $STR =~ .*1006.* ]] && [[ $STR =~ .*1004.* ]]

curl -fsS -m 10 --retry 5 -o /dev/null https://hc.noxs.me/ping/f8f980fe-f6f4-47d7-a481-8b4639d80861/$?



#if [[ $STR =~ .*1000.* ]] && [[ $STR =~ .*1006.* ]] && [[ $STR =~ .*1004.* ]] ; then
#	echo "matched"
#	
#exit 0
#else
#	echo "no match"
#	exit 1
#fi
