mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
fix msvc build.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6692 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -238,12 +238,12 @@ static switch_status_t my_on_hangup(switch_core_session_t *session)
|
||||
switch_channel_set_variable(channel, "end_uepoch", tmp);
|
||||
|
||||
uduration = caller_profile->times->hungup - caller_profile->times->created;
|
||||
duration = tt_hungup - tt_created;
|
||||
mduration = mtt_hungup - mtt_created;
|
||||
duration = (int32_t)(tt_hungup - tt_created);
|
||||
mduration = (int32_t)(mtt_hungup - mtt_created);
|
||||
|
||||
if (caller_profile->times->answered) {
|
||||
billsec = tt_hungup - tt_answered;
|
||||
billmsec = mtt_hungup - mtt_answered;
|
||||
billsec = (int32_t)(tt_hungup - tt_answered);
|
||||
billmsec = (int32_t)(mtt_hungup - mtt_answered);
|
||||
billusec = caller_profile->times->hungup - caller_profile->times->answered;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,8 +104,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
|
||||
|
||||
snprintf(path_buf, sizeof(path_buf), "%s%s%s", source->location, SWITCH_PATH_SEPARATOR, fname);
|
||||
if (switch_stristr(".loc", path_buf)) {
|
||||
int fd;
|
||||
ssize_t bytes;
|
||||
int fd, bytes;
|
||||
char *p;
|
||||
|
||||
if ((fd = open(path_buf, O_RDONLY)) < 0) {
|
||||
|
||||
Reference in New Issue
Block a user