There isn't a specific command in the manager API itself to do it. However there is a CLI command and you can use the manager command action to get the information. Below is an example, you will need to parse the response part to see who is connected.

Action: Command
Command: show manager connected

Response: Follows
 Username         IP Address
 something        127.0.0.1

As far as I know, there isn't a way to modify or look at the global variables directly. You could make a kludge that would call to a special extension that runs NoOp or something that can be seen from an Event, but thats not going to be fun.

--johann

Umar Sear wrote:

Hi all,

Does anyone know of a way to setup global var using the manager interface.

Basically I want to be able to have multiple manager clients login,
however in a sort of master slave scenario. So the first client that
logs in, sets a global variable which tells subsequent clients at
least one client is already logged in.

The Master would then set additional variables which the slaves would
periodically read.

Is this possible ?

Thanks in advance for any help.

Umar
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users



_______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to