Update readme.md
This commit is contained in:
@@ -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.
|
||||
|
||||
<br>
|
||||
<div style="border-left: 6px solid #FFA500; padding: 10px;">
|
||||
<strong>⚠️ Warning:</strong> Make sure the config follows proper json syntax.
|
||||
</div>
|
||||
@@ -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`.
|
||||
<br>
|
||||
|
||||
#### 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
|
||||
```
|
||||
<br>
|
||||
|
||||
## Process Walkthrough
|
||||
|
||||
Reference in New Issue
Block a user