mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
add fsctl sync_clock_when_idle so you can sync the clock but have it not do it till there are 0 calls
This commit is contained in:
@@ -2018,6 +2018,10 @@ SWITCH_DECLARE(int32_t) switch_core_session_ctl(switch_session_ctl_t cmd, void *
|
||||
switch_time_sync();
|
||||
newintval = 0;
|
||||
break;
|
||||
case SCSC_SYNC_CLOCK_WHEN_IDLE:
|
||||
newintval = switch_core_session_sync_clock();
|
||||
printf("WTF [%d]\n", newintval);
|
||||
break;
|
||||
case SCSC_PAUSE_INBOUND:
|
||||
if (oldintval) {
|
||||
switch_set_flag((&runtime), SCF_NO_NEW_SESSIONS);
|
||||
|
Reference in New Issue
Block a user