Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv30712/channels
Modified Files:
chan_agent.c
Log Message:
ensure that agent channels don't get seized during login (issue #5020)
Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- chan_agent.c 14 Sep 2005 00:39:05 -0000 1.150
+++ chan_agent.c 14 Sep 2005 00:59:51 -0000 1.151
@@ -1749,6 +1749,11 @@
if (!strcmp(p->agent, user) &&
!strcmp(p->password, pass) && !p->pending) {
login_state = 1; /* Successful Login */
+
+ /* Ensure we can't be gotten until we're done */
+ gettimeofday(&p->lastdisc, NULL);
+ p->lastdisc.tv_sec++;
+
/* Set Channel Specific Agent Overides */
if (pbx_builtin_getvar_helper(chan,
"AGENTACKCALL") && strlen(pbx_builtin_getvar_helper(chan, "AGENTACKCALL"))) {
if
(!strcasecmp(pbx_builtin_getvar_helper(chan, "AGENTACKCALL"), "always"))
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs