mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Restart streams when receiving an INVITE with Replaces header.
This commit is contained in:
parent
184388008e
commit
5d65d0ef72
4 changed files with 9 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue