[asterisk-commits] branch 1.2 - r7449 /branches/1.2/channels/chan_agent.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Dec 12 22:43:39 CST 2005


Author: kpfleming
Date: Mon Dec 12 22:43:38 2005
New Revision: 7449

URL: http://svn.digium.com/view/asterisk?rev=7449&view=rev
Log:
only report AGENT_IDLE for callback mode agents when they are actually idle (issue #5902)

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?rev=7449&r1=7448&r2=7449&view=diff
==============================================================================
--- branches/1.2/channels/chan_agent.c (original)
+++ branches/1.2/channels/chan_agent.c Mon Dec 12 22:43:38 2005
@@ -1417,7 +1417,7 @@
 		/* Set a default status. It 'should' get changed. */
 		status = "AGENT_UNKNOWN";
 
-		if (!ast_strlen_zero(p->loginchan)) {
+		if (!ast_strlen_zero(p->loginchan) && !p->chan) {
 			loginChan = p->loginchan;
 			talkingtoChan = "n/a";
 			status = "AGENT_IDLE";



More information about the asterisk-commits mailing list