For those of you that are using Asterisk as VOIP server, we create a little
"new" check.

We asume that the Asterisk Manager API is installed and that the IP of the
SA system is allowed to access it and that you know what username/password
(known as secret) can "login" to it.

In order to access the Asterisk Manager functionality a user needs to
establish a session by opening a TCP/IP connection to the listening port
(usually 5038) of the Asterisk instance and logging into the manager using
the 'Login' action. This requires a previously established user account on
the Asterisk server. User accounts are configured in
/etc/asterisk/manager.conf. A user account consists of a set of permitted IP
hosts, an authentication secret (password), and a list of granted
permissions. 

>From within the main interface of Servers Alive do CTRL-P, this will open
the "Protocols" screen.
Create a new TCP protocol named "Asterisk Management API login" (click ADD)
In the tree at the left, goto TCP - Asterisk Management API login.


        Default Port: 5038
        Description: Successful login to the Asterisk Management API
        
        Packet to receive on connect:
        Asterisk Call Manager
        (x) Contains

        Packet to send o connect:
        Action: login\x0D\x0AUsername: myusername\x0D\x0ASecret:
mypassword\x0D\x0AEvents: off\x0D\x0A\x0D\x0A
        
        
        Packet to receive as response:
        Response: Success
        (x) Contains

Then click OK to add this new protocol


In the main interface of SA, then click on ADD (to create a new entry),
enter the IP/hostname of the Asterisk server, on the CHECK tab, select "TCP
protocol" and "Asterisk Management API login". 

Now you can check if the Asterisk Management API is running correctly and IF
you can login to it.



Just curious if someone will use it :-)

Dirk Bulinckx.
To unsubscribe send a message with UNSUBSCRIBE as subject to [email protected]

Reply via email to