[asterisk-dev] CLI manager logout

Clod Patry cpatry at gmail.com
Mon Nov 10 19:09:18 CST 2008


hi Matt,
not really, since you can have many "y" connected from the same ip.
and with a manager logout y from x.x.x.x, which one it's gonna logout?


On Mon, Nov 10, 2008 at 5:19 PM, Matt Riddell <lists at venturevoip.com> wrote:
> On 11/11/2008 11:08 a.m., Clod Patry wrote:
>> hi guys,
>>
>> I faced the problem where a customer called me and reported some
>> "weird" connection that he was not sure.
>> example:
>> deer*CLI>  manager show connected
>>    Username         IP Address
>>    pv               64.34.139.75
>>    abc             64.34.139.75
>> deer*CLI>
>>
>>
>> Right now, there's no way to logout a connected manager user.
>>
>> So I realized there was no quick way for a CLI user to logout
>> connected session. The only way that is possible is via a restart now.
>>
>> What I've in mind is something like a CLI command: manager logout<session_id>.
>>
>> But, since sessions doesnt have an id, this makes the logout
>> "impossible", since N username could connect from M IP addresses.
>> In case 1 username are connected from 3 differents IP, which one will
>> we logout? We can't.
>>
>> What do you think about having something like an id in the struct
>> mansession, so we could identify the session.
>> That will leads to a possible manager logout<session_id>, which will
>> be much more simpler for the CLI users.
>
> Alternatively you could do
>
> manager logout y from x.x.x.x
>
> --
> Kind Regards,
>
> Matt Riddell
> Director
> _______________________________________________
>
> http://www.venturevoip.com (Great new VoIP end to end solution)
> http://www.venturevoip.com/news.php (Daily Asterisk News - html)
> http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>



-- 
Clod Patry



More information about the asterisk-dev mailing list