diff options
author | Mark Spencer <markster@digium.com> | 2003-08-18 06:03:16 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-08-18 06:03:16 +0000 |
commit | e71e9b07a89460899de794e2b15745a2e86bb356 (patch) | |
tree | 870a2b64a398d10151c2e35bce262fa24fd9aece | |
parent | 5ff7c338f2ba529ed4d4d5e8687c1a8608d4836c (diff) |
Add "Logoff" before logging in (bug #119)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -571,7 +571,10 @@ static int process_message(struct mansession *s, struct message *m) ast_log(LOG_EVENT, "Manager '%s' logged on from %s\n", s->username, inet_ntoa(s->sin.sin_addr)); astman_send_ack(s, "Authentication accepted"); } - } else + } else if (!strcasecmp(action, "Logoff")) { + astman_send_ack(s, "See ya"); + return -1; + } else astman_send_error(s, "Authentication Required"); } else { while( tmp ) { |