[asterisk-commits] mmichelson: branch 1.2 r74719 - /branches/1.2/channels/chan_agent.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jul 11 16:12:31 CDT 2007
Author: mmichelson
Date: Wed Jul 11 16:12:30 2007
New Revision: 74719
URL: http://svn.digium.com/view/asterisk?view=rev&rev=74719
Log:
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)
Modified:
branches/1.2/channels/chan_agent.c
Modified: branches/1.2/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_agent.c?view=diff&rev=74719&r1=74718&r2=74719
==============================================================================
--- branches/1.2/channels/chan_agent.c (original)
+++ branches/1.2/channels/chan_agent.c Wed Jul 11 16:12:30 2007
@@ -1998,6 +1998,8 @@
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);
More information about the asterisk-commits
mailing list