Commit 5d65d0ef authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Restart streams when receiving an INVITE with Replaces header.

parent 18438800
......@@ -60,7 +60,7 @@ public:
void pingReply ();
void referred (const Address &referToAddr);
virtual void remoteRinging ();
void replaceOp (SalCallOp *newOp);
virtual void replaceOp (SalCallOp *newOp);
virtual void terminated ();
void updated (bool isUpdate);
void updatedByRemote ();
......
......@@ -46,6 +46,7 @@ public:
void pauseForTransfer ();
void pausedByRemote ();
void remoteRinging () override;
void replaceOp (SalCallOp *newOp) override;
int resumeAfterFailedTransfer ();
void resumed ();
void startPendingRefer ();
......
......@@ -320,6 +320,12 @@ void MediaSessionPrivate::remoteRinging () {
}
}
void MediaSessionPrivate::replaceOp (SalCallOp *newOp) {
CallSessionPrivate::replaceOp(newOp);
stopStreams();
initializeStreams();
}
int MediaSessionPrivate::resumeAfterFailedTransfer () {
L_Q();
if (automaticallyPaused && (state == CallSession::State::Pausing))
......
......@@ -5324,6 +5324,7 @@ static void recovered_call_on_network_switch_in_early_media_base (bool_t callerL
}
wait_for_until(marie->lc, pauline->lc, NULL, 1, 2000);
liblinphone_tester_check_rtcp(marie, pauline);
if (linphone_core_get_current_call(pauline->lc)
&& (linphone_call_get_state(linphone_core_get_current_call(pauline->lc)) == LinphoneCallIncomingEarlyMedia)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment