[asterisk-commits] seanbright: branch seanbright/resolve-shadow-warnings r114574 - /team/seanbri...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Apr 22 19:09:25 CDT 2008
Author: seanbright
Date: Tue Apr 22 19:09:25 2008
New Revision: 114574
URL: http://svn.digium.com/view/asterisk?view=rev&rev=114574
Log:
This does it for the apps/ directory.
Modified:
team/seanbright/resolve-shadow-warnings/apps/app_osplookup.c
Modified: team/seanbright/resolve-shadow-warnings/apps/app_osplookup.c
URL: http://svn.digium.com/view/asterisk/team/seanbright/resolve-shadow-warnings/apps/app_osplookup.c?view=diff&rev=114574&r1=114573&r2=114574
==============================================================================
--- team/seanbright/resolve-shadow-warnings/apps/app_osplookup.c (original)
+++ team/seanbright/resolve-shadow-warnings/apps/app_osplookup.c Tue Apr 22 19:09:25 2008
@@ -1193,7 +1193,7 @@
int recorded,
int cause,
time_t start,
- time_t connect,
+ time_t connect_time,
time_t end,
unsigned int release)
{
@@ -1216,11 +1216,11 @@
error = OSPPTransactionReportUsage(
handle,
- difftime(end, connect),
+ difftime(end, connect_time),
start,
end,
alert,
- connect,
+ connect_time,
isPddInfoPresent,
pdd,
release,
@@ -1664,7 +1664,7 @@
int inhandle = OSP_INVALID_HANDLE;
int outhandle = OSP_INVALID_HANDLE;
int recorded = 0;
- time_t start, connect, end;
+ time_t start, connect_time, end;
unsigned int release;
char buffer[OSP_INTSTR_SIZE];
const char* status;
@@ -1713,24 +1713,24 @@
if (chan->cdr) {
start = chan->cdr->start.tv_sec;
- connect = chan->cdr->answer.tv_sec;
- if (connect) {
+ connect_time = chan->cdr->answer.tv_sec;
+ if (connect_time) {
end = time(NULL);
} else {
- end = connect;
+ end = connect_time;
}
} else {
start = 0;
- connect = 0;
+ connect_time = 0;
end = 0;
}
ast_debug(1, "OSPFinish: start '%ld'\n", start);
- ast_debug(1, "OSPFinish: connect '%ld'\n", connect);
+ ast_debug(1, "OSPFinish: connect '%ld'\n", connect_time);
ast_debug(1, "OSPFinish: end '%ld'\n", end);
release = ast_check_hangup(chan) ? 0 : 1;
- if (osp_finish(outhandle, recorded, cause, start, connect, end, release) <= 0) {
+ if (osp_finish(outhandle, recorded, cause, start, connect_time, end, release) <= 0) {
ast_debug(1, "OSPFinish: Unable to report usage for outbound call\n");
}
switch (cause) {
@@ -1740,7 +1740,7 @@
cause = AST_CAUSE_NO_ROUTE_DESTINATION;
break;
}
- if (osp_finish(inhandle, recorded, cause, start, connect, end, release) <= 0) {
+ if (osp_finish(inhandle, recorded, cause, start, connect_time, end, release) <= 0) {
ast_debug(1, "OSPFinish: Unable to report usage for inbound call\n");
}
snprintf(buffer, sizeof(buffer), "%d", OSP_INVALID_HANDLE);
More information about the asterisk-commits
mailing list