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, change the next config file with the items below!.

sudo vi /etc/asterisk/manager.conf

displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
bindaddr =

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 'manager.config' file.
Together with IP adress of your asterisk server (or localhost if this is the same as the DomotiGa server) and port 5038 (bindaddr= is listen to all).

The default DomotiGa database already contains the tables to store CDR records suppied by Asterisk.
You only have to tell the Asterisk PBX how to access them.
Make or chnage the next file with the lines below;

sudo nano /etc/asterisk/cdr_mysql.conf

; If on other host
hostname=[ip number]
; Not sure if next line needed !

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 PBX machine.

When these files where changed, restart the asterisk PBX

To check if the Asterisk server can make connection to the domotiga server give the next command in the /var/log/asterisk directory:

grep domotiga full

If you see the line ' Failed to connect to mysql database domotiga on [ip number] you have to give the MySQL database rights to receive information from the hosts 'all' together with the correct 'domouser'.

Check also the right port number in the file 'cdr_mysql.conf' (see above)

Startup Log Entries:

2008/11/11 22:56:42  Asterisk API interface enabled.
2008/11/11 22:56:42  Asterisk API interface connecting to
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.


    Updated by: scdhome, Updated almost 5 years ago
    Access count: 80569 since 2011-08-25

    Attached Files

    Also available in: PDF HTML TXT