Skip to content

Add pjmedia_ice_parse_cand#4729

Merged
sauwming merged 1 commit intopjsip:masterfrom
saghul:parse-cand
Jan 9, 2026
Merged

Add pjmedia_ice_parse_cand#4729
sauwming merged 1 commit intopjsip:masterfrom
saghul:parse-cand

Conversation

@saghul
Copy link
Copy Markdown
Contributor

@saghul saghul commented Jan 8, 2026

When PJMEDIA is used without SIP it's useful to be able to parse
candidate lines if they follow the same format as SDP. An example of
this is parsing candidates coming from WebRTC events.

Comment thread pjmedia/src/pjmedia/transport_ice.c Outdated
Comment thread pjmedia/include/pjmedia/transport_ice.h Outdated
@sauwming sauwming added this to the release-2.17 milestone Jan 8, 2026
@sauwming sauwming requested a review from nanangizz January 8, 2026 03:37
@saghul saghul force-pushed the parse-cand branch 2 times, most recently from 303403a to 6e84f63 Compare January 8, 2026 10:16
@saghul
Copy link
Copy Markdown
Contributor Author

saghul commented Jan 8, 2026

@sauwming Done!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR exposes a previously internal function for parsing ICE candidate strings as a public API, enabling PJMEDIA to parse WebRTC-style candidate lines when used without SIP.

Key changes:

  • Converts the static parse_cand function into the public pjmedia_ice_parse_cand API
  • Refactors parameter handling to remove the unused obj_name parameter and generate it internally
  • Updates all internal call sites to use the new function signature

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pjmedia/include/pjmedia/transport_ice.h Adds public API declaration and documentation for pjmedia_ice_parse_cand
pjmedia/src/pjmedia/transport_ice.c Moves parse_cand from private static function to public API, removes forward declaration, and updates 3 call sites to use the new signature

Comment thread pjmedia/include/pjmedia/transport_ice.h
When PJMEDIA is used without SIP it's useful to be able to parse
candidate lines if they follow the same format as SDP. An example of
this is parsing candidates coming from WebRTC events.
@saghul
Copy link
Copy Markdown
Contributor Author

saghul commented Jan 9, 2026

Updated again!

@sauwming sauwming merged commit 046dbd6 into pjsip:master Jan 9, 2026
49 of 50 checks passed
@saghul
Copy link
Copy Markdown
Contributor Author

saghul commented Jan 9, 2026

Thanks guys!

wosrediinanatour pushed a commit to wosrediinanatour/pjproject that referenced this pull request Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants