Commit 65b11b9e authored by Citronalco's avatar Citronalco
Browse files

I'm not good in markdown

parent d2a6a7e9
......@@ -10,21 +10,27 @@ So far I have only tested with OwnCloud 9.
#### Configuration
1. This script uses Asterisk Manager to access the caller id database, so you need to set up an user with "system" permissions if you have not already done so. To add an user create the file "/etc/asterisk/manager.d/carddav2asterisk.conf":
```[carddavimport]
```
[carddavimport]
secret = cidpwd
permit = 127.0.0.1/255.255.255.0
read = system
write = system```
1. Open the script in an editor and edit the user's credentials and host and port of Asterisk's Manager interface:```
write = system
```
1. Open the script in an editor and edit the user's credentials and host and port of Asterisk's Manager interface:
```
# ASTERISK MANAGER CONNECTION
HOST = 'localhost'
PORT = 5038
USER = 'carddavimport'
PASS = 'cidpwd'```
1. Change NATIONALPREFIX and DOMESTICPREFIX to match your location:```
PASS = 'cidpwd'
```
1. Change NATIONALPREFIX and DOMESTICPREFIX to match your location:
```
# PERSONAL SETTINGS
NATIONALPREFIX = "0049"
DOMESTICPREFIX = "0841"```
DOMESTICPREFIX = "0841"
```
1. If you haven't configured CID lookup in Asterisk yet, you may want to add something like this somewhere at the beginning of your dialplan in extensions.conf: ``exten => <yourExtension>,n,Set(CALLERID(name)=${IF(${DB_EXISTS(cidname/${CALLERID(num)})}?${DB(cidname/${CALLERID(num)})}:${CALLERID(name)})})``
#### How to run the script
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment