Domotiga/Asterisk

Asterisk

There is limited support for Asterisk call monitoring, and CDR records.

To enable call manager access needed for DomotiGa to monitor incoming calls (still work in progress) make sure that the manager socket is started.

sudo vi /etc/asterisk/manager.conf

[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
bindaddr = 0.0.0.0

[asterisk]
secret = password
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

This defines a user called 'asterisk' with password 'password' enter these in the Setup Asterisk menu. Together with IP adress of your asterisk server (or localhost if this is the same as the DomotiGa server) and port 5038.

The default DomotiGa database already contains the tables to store CDR records suppied by Asterisk. You only have to tell Asterisk how to access them.

sudo vi /etc/asterisk/cdr_mysql.conf

[global]
hostname=localhost
dbname=domotiga
table=cdr
user=domouser
password=kung-fu
;userfield=1
;sock=/var/lib/mysql/mysql.sock

If this database is on a different machine than Asterisk, you have to make sure the user domouser has been granted for access from this Asterisk machine.

Startup Log Entries:

2008/11/11 22:56:42  Asterisk API interface enabled.
2008/11/11 22:56:42  Asterisk API interface connecting to 192.168.100.2:5038
2008/11/11 22:56:43  Asterisk TCP socket connected.
2008/11/11 22:56:43  Asterisk Call Manager/1.0

To Do

  • Poll missed calls/voicemail counters from eventmanager and log these, also increment missed calls and voicemails in status bar.

Screenshots

Attachments