diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 5167a2d..8ea6427 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index 01dc9f8..fd9aad9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,29 @@ # hass-asterisk Home Assistant platform for Asterisk integration + + +##### Example configuration + +``` +asterisk_ami: + host: localhost + username: admin + password: correcthorsebatterystaple + monitor: + - 100 + - 101 + - 102 +``` + +The platform requires a matching entry in Asterisk's manager.conf or similar. For example: + +``` +[admin] +secret = correcthorsebatterystaple +deny=0.0.0.0/0.0.0.0 +permit=127.0.0.1/255.255.255.0 +read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message +writetimeout = 5000 +``` + +TODO: Confirm which permissions are actually needed