ejabberd mod-client-asterisk is a module for ejabberd which connect to an Asterisk Management Interface listening to Call events. This allows the Jabber users to know about the call state of their buddies.
Asterisk ejabberd
Gui Screenshot
Our Jabber Client (here Empathy) says user « nico » is on the phone.
How to use mod-client-asterisk ?
- Put the file mod_client_asterisk.beam in /usr/lib/ejabberd/ebin/
- Edit /etc/ejabberd/ejabberd.cfg, and add the lines in the modules definitions :
{modules, [ {mod_client_asterisk, [ {server_asterisk, SERVER_NAME}, {port_asterisk, SERVER_PORT}, {username, "USERNAME"}, {secret, "SECRET"}, {directory,[ {"NUM1","USER1","DOMAIN"}, {"NUM2","USER2","DOMAIN"}, {"NUM3","USER3","DOMAIN"} ... ]} ]}, ... {mod_shared_roster,[]}, ... {mod_vcard, []}, {mod_version, []} ]}.
SERVER_NAME and SERVER_PORT (without quotation mark) are the name of the pabx and the AMI port used (usually 5038),
USERNAME and SECRET (with quotation mark) are the parameters to connect to asterisk,
NUM1, USER1 and DOMAIN (with quotation mark) are the phone number, the Jabber name and the jabber domain used of the first user.
You need the mod_shared_roster to be activated.
You may also like these posts
Asterisk Click2Dial Firefox Extension
Want to call someone directly with its number found on a Web page or in an email: Asterisk Click2Dial is for you !