increase sps during recovery
This commit is contained in:
parent
96b790fa2e
commit
f1aead3174
|
@ -3544,12 +3544,22 @@ SWITCH_STANDARD_API(sofia_function)
|
||||||
sofia_glue_recover(SWITCH_TRUE);
|
sofia_glue_recover(SWITCH_TRUE);
|
||||||
stream->write_function(stream, "Flushing recovery database.\n");
|
stream->write_function(stream, "Flushing recovery database.\n");
|
||||||
} else {
|
} else {
|
||||||
int x = sofia_glue_recover(SWITCH_FALSE);
|
int32_t old = 0, x = 0;
|
||||||
|
|
||||||
|
switch_core_session_ctl(SCSC_SPS, &old);
|
||||||
|
|
||||||
|
x = 10000000;
|
||||||
|
switch_core_session_ctl(SCSC_SPS, &x);
|
||||||
|
|
||||||
|
x = sofia_glue_recover(SWITCH_FALSE);
|
||||||
|
|
||||||
if (x) {
|
if (x) {
|
||||||
stream->write_function(stream, "Recovered %d call(s)\n", x);
|
stream->write_function(stream, "Recovered %d call(s)\n", x);
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, "No calls to recover.\n");
|
stream->write_function(stream, "No calls to recover.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch_core_session_ctl(SCSC_SPS, &old);
|
||||||
}
|
}
|
||||||
|
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in New Issue