FS monitoring, check the outgoing profile
This commit is contained in:
parent
54be005968
commit
1c0962480b
1 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,13 @@ if !(echo $FS_STATUS | grep -q "external::provider") && (ping -qc 5 8.8.8.8 > /d
|
|||
fs_cli -x "sofia profile external start"
|
||||
fi
|
||||
|
||||
if !(echo $FS_STATUS | grep -q "outgoing::rhizomatica") && (ping -qc 5 10.23.0.2 > /dev/null); then
|
||||
logc "Missing outgoing profile! Restarting Profile";
|
||||
fs_cli -x "sofia profile outgoing stop"
|
||||
sleep 10
|
||||
fs_cli -x "sofia profile outgoing start"
|
||||
fi
|
||||
|
||||
if !(echo $FS_STATUS | grep -q "internalvpn") && (ping -qc 5 10.23.0.2 > /dev/null); then
|
||||
logc "Missing internal VPN. Restarting FreeSWITCH profile";
|
||||
fs_cli -x "sofia profile internalvpn stop"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue