diff --git a/readme.md b/readme.md index 9fb7339..a5d4b57 100644 --- a/readme.md +++ b/readme.md @@ -7,6 +7,7 @@ The files are stored typically inside of `/var/lib/asterisk/PC-Contact-Sync` and #### Config Fields `config.json` has several fields. The config file needs to be next to the script in order to be read. +
⚠️ Warning: Make sure the config follows proper json syntax.
@@ -27,7 +28,17 @@ prepend_extensions 3. Add Extensions you want either black/white listed to the `extension_filter_list`. 4. Add words that are in contacts you want removed to `blacklisted_terms`. 5. Add extra contacts you want added to the phones in `prepend_extensions`. +
+#### Cronjob Example + +``` +# Run Polycom directory sync every 4 hours at :00 +0 */4 * * * /usr/bin/php /var/lib/asterisk/PC-Contact-Sync/gen_polycom_directory.php >> /var/log/gen_polycom_directory.log 2>&1 + +# Run PC sidecar sync every 4 hours at :05 (5 mins after) +5 */4 * * * /usr/bin/php /var/lib/asterisk/PC-Contact-Sync/gen_pc_sidecar.php >> /var/log/gen_pc_sidecar.log 2>&1 +```
## Process Walkthrough