[asterisk-dev] ami active sessions

Richard Lyman pchammer at dynx.net
Tue Sep 11 09:37:28 CDT 2007


Clod Patry wrote:
> 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.
>
>
>   
we ended up with similar mods.
http://dynx.net/ASTERISK/diff-patches/manager.c.sessionstart.diff

by the time i went to bed i had added all these

"Username", "IP Address", "Start", "Elapsed", "FileDes", "HttpCnt", "Read", "Write"









More information about the asterisk-dev mailing list