Skip to content

Commit 968af19

Browse files
committed
monofon-health: exclude 'rinstance' from trunk list
1 parent 5001f18 commit 968af19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/monofon/monofon-health.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function check_trunks() {
250250
# Check if PJSIP is being used by trying to run a PJSIP command
251251
if asterisk -rx "module show like pjsip" 2>/dev/null | grep -q "res_pjsip.so"; then
252252
# 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')
253+
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')
254254

255255
OLDIFS=$IFS
256256
IFS=$'\n'

0 commit comments

Comments
 (0)