[Asterisk-cvs] asterisk/channels chan_agent.c,1.123,1.124
markster at lists.digium.com
markster at lists.digium.com
Fri Mar 4 22:20:09 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv23464/channels
Modified Files:
chan_agent.c
Log Message:
Don't consider wrapuptime when call was not answered
Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -d -r1.123 -r1.124
--- chan_agent.c 5 Mar 2005 02:54:49 -0000 1.123
+++ chan_agent.c 5 Mar 2005 04:17:13 -0000 1.124
@@ -388,7 +388,7 @@
if (p->chan)
ast_log(LOG_DEBUG, "Bridge on '%s' being cleared (2)\n", p->chan->name);
ast_hangup(p->chan);
- if (p->wrapuptime) {
+ if (p->wrapuptime && p->acknowledged) {
gettimeofday(&p->lastdisc, NULL);
p->lastdisc.tv_usec += (p->wrapuptime % 1000) * 1000;
if (p->lastdisc.tv_usec > 1000000) {
@@ -642,7 +642,7 @@
/* If they're dead, go ahead and hang up on the agent now */
if (!ast_strlen_zero(p->loginchan)) {
/* Store last disconnect time */
- if (p->wrapuptime) {
+ if (p->wrapuptime && p->acknowledged) {
gettimeofday(&p->lastdisc, NULL);
p->lastdisc.tv_usec += (p->wrapuptime % 1000) * 1000;
if (p->lastdisc.tv_usec >= 1000000) {
More information about the svn-commits
mailing list