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:
Anthony Minessale
2011-10-12 14:55:32 -05:00
parent 1bf97fa7ba
commit 2094f2d33b
6 changed files with 51 additions and 3 deletions

View File

@@ -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);