Asterisk ejabberd mod-client-asterisk

 

Image

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.

Download

Go to the Project Page on Launchpad

Asterisk ejabberd

Gui Screenshot

Image

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.

Licences

GNU GPL v2

OS Compatibility

Anywhere you have an Erlang VM : Linux, Windows, MAC OS X

Languages

English

You may also like these posts

Image

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 !