[asterisk-dev] ami active sessions

Clod Patry cpatry at gmail.com
Tue Sep 11 02:15:55 CDT 2007


hi,
when speaking with outtolunch on IRC, he mentionned that seeing for
how long a current manager session would be excellent.
So i've coded his request:

rabbit*CLI> manager show connected
  Username         IP Address       Opened
  flash                  127.0.0.1         116

where 116 is the numbers of seconds elapsed since the connection was
successfully accepted thru the AMI.

My question is more: what could be a correct output for that new
option (called opened, for opened for x sec.) ?
%d sec. ? but if theres a connection for hours or days, that probably
not a good idea, but dont know how that could be small and revelent.
Any suggestion are welcome :)

Knowing that time in the mansession, raise me idea an old idea that we
could limit a user to like 120 seconds before disconnecting that user.


-- 
Clod Patry



More information about the asterisk-dev mailing list