diff --git a/CHANGELOG.md b/CHANGELOG.md index c03607c68..fdd5e085d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Fix android it should answer call immediately with x_autoanswer (issue 908) - Fix it should display call duration correctly after manually allow Notification permissions (issue 918) - Fix it should load video when turning it on from a voice call (issue 934) +- Fix it should play RBT when make call without SDP (issue 964) #### 2.14.10 diff --git a/src/components/CallVoices.tsx b/src/components/CallVoices.tsx index 8ac23472f..ee9102bcc 100644 --- a/src/components/CallVoices.tsx +++ b/src/components/CallVoices.tsx @@ -16,8 +16,8 @@ export const CallVoices = observer(() => { void cs.calls.map(_ => _.callkeepUuid) const oc = cs.getOngoingCall() - const isOutgoingProgress = - oc && !oc.incoming && !oc.answered && oc.sessionStatus === 'progress' + const isOutgoing = oc && !oc.incoming && !oc.answered + const isOutgoingProgress = isOutgoing && oc.sessionStatus === 'progress' // when receive a 18x response (usually 180 or 183) with SDP // don't play the local RBT, but the audio data in the RTP packets @@ -26,8 +26,8 @@ export const CallVoices = observer(() => { return ( <> - {isOutgoingProgress && - (playEarlyMedia ? ( + {isOutgoing && + (isOutgoingProgress && playEarlyMedia && oc.earlyMedia ? ( ) : ( <>