onRemoteSessionReceived method
Handles the remote session received from the peer connection.
Implementation
void onRemoteSessionReceived(String? sdp) {
if (sdp != null) {
peerConnection?.remoteSessionReceived(sdp);
} else {
// Invalid params — SDP was required but missing.
final err = ArgumentError.notNull('sdp');
GlobalLogger().e('Call :: onRemoteSessionReceived called with null SDP');
_txClient.emitTelnyxError(
createTelnyxError(
TelnyxErrorCodes.invalidCallParameters,
originalError: err,
message: 'Remote SDP was null when answering a call',
),
callId: callId,
);
}
}