mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
try to use clock_gettime to make sure we don't care if the system time changes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7165 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -307,7 +307,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_displace_session(switch_core_session_
|
||||
switch_channel_pre_answer(channel);
|
||||
|
||||
if (limit) {
|
||||
to = time(NULL) + limit;
|
||||
to = switch_timestamp(NULL) + limit;
|
||||
}
|
||||
|
||||
if (flags && strchr(flags, 'm')) {
|
||||
@@ -763,7 +763,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t
|
||||
}
|
||||
|
||||
if (limit) {
|
||||
to = time(NULL) + limit;
|
||||
to = switch_timestamp(NULL) + limit;
|
||||
}
|
||||
|
||||
if ((status = switch_core_media_bug_add(session, record_callback, fh, to, flags, &bug)) != SWITCH_STATUS_SUCCESS) {
|
||||
|
Reference in New Issue
Block a user