#!/bin/bash
# this is a test
# this is a test 2
# this is a test 3
# this is a test 4

RETCODE=$([[ $(ssh dbi@kit-com.tail 'docker exec freeswitch fs_cli -x "show registrations" | grep -E -w -i -c "1000|1005|1006"') == 3 ]] && echo 0 || echo 1)

curl -fsS -m 10 --retry 5 https://hc-ping.com/7825356b-80b3-4b60-838e-d9dcc940c793/$RETCODE
