Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIP transport: call callback when data is dropped due to invalid headers #4026

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

sauwming
Copy link
Member

To continue #3961.

Currently, the app is not notified if incoming data is dropped due to errors of PJSIP_EMISSINGHDR or PJSIP_EINVALIDHDR. So the patch will now call the callbacks in such scenario.

The original patch is created by @pespin.
This PR is to minimise the flow/code changes.

/* Not enough data in packet. */
return total_processed;
}
dd_status = PJSIP_ERXOVERFLOW;
Copy link
Member

Choose a reason for hiding this comment

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

  • Better put comment for future ref about the two cases of EPARTIALMSG, i.e: really partial message or overflow (buffer too small or packet too large)?
  • And/or print log (as in the other errors)?

@sauwming sauwming merged commit f5d890a into master Aug 2, 2024
36 checks passed
@sauwming sauwming deleted the sip-tp-notify branch August 2, 2024 04:09
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.

2 participants