We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5001f18 commit 968af19Copy full SHA for 968af19
scripts/monofon/monofon-health.sh
@@ -250,7 +250,7 @@ function check_trunks() {
250
# Check if PJSIP is being used by trying to run a PJSIP command
251
if asterisk -rx "module show like pjsip" 2>/dev/null | grep -q "res_pjsip.so"; then
252
# PJSIP mode - use pjsip show contacts for a cleaner output
253
- trunk_list=$(asterisk -rx "pjsip show contacts" | grep -E '^[[:space:]]*Contact:' | grep -v "Objects found" | sed '1d' | sed 's/^[[:space:]]*Contact:[[:space:]]*//' | grep 'voip')
+ trunk_list=$(asterisk -rx "pjsip show contacts" | grep -E '^[[:space:]]*Contact:' | grep -v "Objects found" | sed '1d' | sed 's/^[[:space:]]*Contact:[[:space:]]*//' | grep -v 'rinstance')
254
255
OLDIFS=$IFS
256
IFS=$'\n'
0 commit comments