diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-11 21:12:30 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-11 21:12:30 +0000 |
commit | 3c88084e25cd93b36571864e39ac1d863534e8b7 (patch) | |
tree | 1045847968b1370fbf420336fb083ea4d8b79947 /channels | |
parent | f3f1de7ff3b35a3bf6e50ca75f223a567388b3a1 (diff) |
The cli command "agent logoff Agent/x soft" did not work...at all. Now it does.
(closes issue #10178, reported and patched by makoto, with slight modification for 1.4 and trunk by me)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74719 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_agent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index 66104e771..c106162e4 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -1998,6 +1998,8 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode) ast_device_state_changed("Agent/%s", p->agent); while (res >= 0) { ast_mutex_lock(&p->lock); + if (!p->loginstart && p->chan) + ast_softhangup(p->chan, AST_SOFTHANGUP_EXPLICIT); if (p->chan != chan) res = -1; ast_mutex_unlock(&p->lock); |