[sr-dev] git:master: acc: increment crt position when adding extra time value
Daniel-Constantin Mierla
miconda at gmail.com
Tue Sep 3 16:18:39 CEST 2013
Module: sip-router
Branch: master
Commit: 4812b91a3c00e71a3ac9636b88bc75e5368fa657
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4812b91a3c00e71a3ac9636b88bc75e5368fa657
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Tue Sep 3 15:11:47 2013 +0200
acc: increment crt position when adding extra time value
---
modules/acc/acc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/acc/acc.c b/modules/acc/acc.c
index 272a70f..91affb3 100644
--- a/modules/acc/acc.c
+++ b/modules/acc/acc.c
@@ -412,9 +412,11 @@ int acc_db_request( struct sip_msg *rq)
/* extra time value */
if(acc_time_mode==1) {
VAL_INT(db_vals+(m++)) = (int)acc_env.tv.tv_usec;
+ i++;
} else if(acc_time_mode==2) {
VAL_DOUBLE(db_vals+(m++)) = ((double)(acc_env.tv.tv_sec * 1000)
+ (acc_env.tv.tv_usec / 1000)) / 1000;
+ i++;
}
/* extra columns */
More information about the sr-dev
mailing list