[Asterisk-cvs] asterisk/channels chan_agent.c,1.121,1.122

markster at lists.digium.com markster at lists.digium.com
Fri Mar 4 20:56:22 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv23007/channels

Modified Files:
	chan_agent.c 
Log Message:
Minor persistence fixes


Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- chan_agent.c	4 Mar 2005 06:47:24 -0000	1.121
+++ chan_agent.c	5 Mar 2005 02:53:27 -0000	1.122
@@ -1363,6 +1363,8 @@
 			ast_queue_log("NONE", "NONE", agent, "AGENTCALLBACKLOGOFF", "%s|%ld|%s", p->loginchan, logintime, "CommandLogoff");
 			p->loginchan[0] = '\0';
 			ast_cli(fd, "Logging out %s\n", agent);
+			if (persistent_agents)
+				dump_agents();
 			break;
 		}
 	}
@@ -1752,7 +1754,7 @@
 								res = ast_safe_sleep(chan, 500);
 							ast_mutex_unlock(&p->lock);
 							if (persistent_agents)
-                                                        	dump_agents();
+								dump_agents();
 						} else if (!res) {
 #ifdef HONOR_MUSIC_CLASS
 							/* check if the moh class was changed with setmusiconhold */
@@ -2123,7 +2125,7 @@
 	/* Read in the config */
 	read_agent_config();
 	if (persistent_agents)
-        	reload_agents();
+		reload_agents();
 	return 0;
 }
 
@@ -2131,7 +2133,7 @@
 {
 	read_agent_config();
 	if (persistent_agents)
-                reload_agents();
+		reload_agents();
 	return 0;
 }
 




More information about the svn-commits mailing list