Project

General

Profile

How to know if the agent is logged in from the CLI

Added by Bilal Ghayad almost 12 years ago

Dears;

How can I know if the agent is logged from the Asterisk CLI?

Regards
Bilal


Replies (2)

RE: How to know if the agent is logged in from the CLI - Added by Ron Salvatore Koss almost 12 years ago

You could do a "sip show users", that gives you something like that:

Peer User/ANR Call ID Seq (Tx/Rx) Format Hold Last Message
10.x.x.x (None) 76aaa3919a2 00101/28299 0x0 (nothing) No Rx: REGISTER
10.x.x.x account115 6e78e5992f5 00102/18232 0x4 (ulaw) No Rx: ACK

All accounts listed in the user row, that are not set to "None", are logged in. Furthermore, you can see the format is "(nothing)" and Rx is "Register".

Note that, if you have a cluster, you must do this on every server to catch all clients. This is not comfortable and I would not recommend it - except you want to write an AGI for certain purpose but if you would do so, then you wouldn't have asked that ...

RE: How to know if the agent is logged in from the CLI - Added by Ron Salvatore Koss almost 12 years ago

and you only get the phone extension, not the user.
sorry, the page ate my tabs.

    (1-2/2)
    Go to top