mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
filter out periodical call stats updates from linphone-daemon's event queue (there are too many)
This commit is contained in:
parent
58cee9ff5d
commit
baf6f95839
2 changed files with 7 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ void CallCommand::exec(Daemon *app, const char *args) {
|
|||
char *opt;
|
||||
LinphoneCallParams *cp;
|
||||
opt = strstr(early_media,"--early-media");
|
||||
cp = linphone_core_create_default_call_parameters(app->getCore());
|
||||
cp = linphone_core_create_call_params(app->getCore(), NULL);
|
||||
if (opt) {
|
||||
linphone_call_params_enable_early_media_sending(cp, TRUE);
|
||||
ostr << "Early media: Ok\n";
|
||||
|
|
|
|||
|
|
@ -515,7 +515,12 @@ void Daemon::callStateChanged(LinphoneCall *call, LinphoneCallState state, const
|
|||
}
|
||||
|
||||
void Daemon::callStatsUpdated(LinphoneCall *call, const LinphoneCallStats *stats) {
|
||||
if (mUseStatsEvents) mEventQueue.push(new CallStatsResponse(this, call, stats, true));
|
||||
if (mUseStatsEvents) {
|
||||
/* don't queue periodical updates (3 per seconds for just bandwidth updates) */
|
||||
if (!(stats->updated & LINPHONE_CALL_STATS_PERIODICAL_UPDATE)){
|
||||
mEventQueue.push(new CallStatsResponse(this, call, stats, true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Daemon::dtmfReceived(LinphoneCall *call, int dtmf) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue