From be8f9b5ba4c299db572cb1e3489e181f3918c011 Mon Sep 17 00:00:00 2001 From: poslop Date: Wed, 22 Apr 2026 10:50:09 -0500 Subject: [PATCH] fixed syntax --- gen_polycom_directory.php | 47 +++++++++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/gen_polycom_directory.php b/gen_polycom_directory.php index 052472a..e899a70 100755 --- a/gen_polycom_directory.php +++ b/gen_polycom_directory.php @@ -125,14 +125,43 @@ echo "Wrote $out_file with " . $root->childNodes->length . " contacts\n"; /** Optional: push check-sync to re-download directory without reboot */ if ($do_notify) { - asterisk_bin=/usr/sbin/asterisk - endpoints=$($asterisk_bin -rx "pjsip show endpoints" \ - | sed -n 's/^[[:space:]]*Endpoint:[[:space:]]\+\([^[:space:]/]\+\).*/\1/p' \ - | grep -vE '^(anonymous|system)$' \ - | sort -u) + $asteriskBin = '/usr/sbin/asterisk'; - for ep in $endpoints; do - echo "Sending check-sync to $ep" - $asterisk_bin -rx "pjsip send notify polycom-check-cfg endpoint $ep" - done + $excludedEndpoints = [ + '101', '102', '103', '104', '105', '106', '107', '108', '109', '110', '111', '112', '113', '114', '900', 'Voyant', '