[Asterisk-cvs] asterisk/apps app_osplookup.c,1.1,1.2
markster at lists.digium.com
markster at lists.digium.com
Fri Jun 25 00:42:01 CDT 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv7361/apps
Modified Files:
app_osplookup.c
Log Message:
Small outgoing OSP cleanups
Index: app_osplookup.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_osplookup.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- app_osplookup.c 25 Jun 2004 03:59:07 -0000 1.1
+++ app_osplookup.c 25 Jun 2004 04:27:55 -0000 1.2
@@ -192,7 +192,10 @@
}
if (chan->cdr) {
start = chan->cdr->answer.tv_sec;
- duration = time(NULL) - start;
+ if (start)
+ duration = time(NULL) - start;
+ else
+ duration = 0;
} else
ast_log(LOG_WARNING, "OSPFinish called on channel '%s' with no CDR!\n", chan->name);
LOCAL_USER_ADD(u);
More information about the svn-commits
mailing list