mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Add "Logoff" before logging in (bug #119)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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));
|
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");
|
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");
|
astman_send_error(s, "Authentication Required");
|
||||||
} else {
|
} else {
|
||||||
while( tmp ) {
|
while( tmp ) {
|
||||||
|
Reference in New Issue
Block a user