Skip to content

Conversation

@orgads
Copy link
Contributor

@orgads orgads commented Jan 7, 2026

Initial call recording is set by "record call". This worked for offer/answer but not for publish.

ctx->ngbuf->sdp_out = sdp_out.s;
parser->dict_add_str(ctx->resp, "sdp", &sdp_out);
sdp_out = STR_NULL; // ownership passed to output
if (sdp_out.len) {
Copy link
Member

Choose a reason for hiding this comment

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

Wondering about this additional condition here. If sdp_create returned success then the string should always be valid. Is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copied it from call_offer_answer_ng (and same logic exists in call_subscribe_request_ng). If the condition is redundant then I guess it should be removed everywhere.

Copy link
Member

Choose a reason for hiding this comment

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

All right, fair enough

@orgads orgads force-pushed the publish-record-call branch from d395293 to 5529ccc Compare January 8, 2026 09:48
Initial call recording is set by "record call". This worked for
offer/answer but not for publish.
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.

2 participants