Skip to content

Do not modify raw packets#714

Merged
ladvoc merged 3 commits into
mainfrom
ladvoc/set-iden
Sep 25, 2025
Merged

Do not modify raw packets#714
ladvoc merged 3 commits into
mainfrom
ladvoc/set-iden

Conversation

@ladvoc

@ladvoc ladvoc commented Sep 23, 2025

Copy link
Copy Markdown
Contributor

Normally, the participant identity and SID fields should be set for any outgoing packet based on the local participant's info; #688 introduced setting these fields at the session level to enforce this. However, this should not apply to raw packets.

Currently, Python uses raw packets for data streams. In the case of user transcriptions, the sender identity field is explicitly set to the user’s identity to indicate that the transcription corresponds to the user’s voice rather than the agent’s—even though the agent is technically the sender.

Do not set participant identity and SID fields on raw packets.
@ladvoc
ladvoc marked this pull request as ready for review September 25, 2025 00:49

@cloudwebrtc cloudwebrtc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@s-hamdananwar s-hamdananwar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@ladvoc
ladvoc merged commit 7688e49 into main Sep 25, 2025
16 of 19 checks passed
@ladvoc
ladvoc deleted the ladvoc/set-iden branch September 25, 2025 01:49
@github-actions github-actions Bot mentioned this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants