File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,8 @@ 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 -v ' rinstance' )
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' | grep -E ' ^[A-Za-z]' )
254+
254255
255256 OLDIFS=$IFS
256257 IFS=$' \n '
You can’t perform that action at this time.
0 commit comments