Skip to content
Snippets Groups Projects
Commit b4192a24 authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

Fix the problem of long latency at the beginning of transmissions.

parent d04edd7d
Branches
Tags
No related merge requests found
......@@ -439,6 +439,10 @@ IAXVoIPLink::answer(const CallID& id)
call->setState(Call::Active);
call->setConnectionState(Call::Connected);
// Start audio
audiolayer->startStream();
audiolayer->flushMic();
return true;
}
......@@ -638,6 +642,7 @@ IAXVoIPLink::iaxHandleCallEvent(iax_event* event, IAXCall* call)
}
Manager::instance().peerAnsweredCall(id);
audiolayer->flushMic();
audiolayer->startStream();
// start audio here?
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment