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

Ignore events from calls not in db #1

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

EddieAbbondanzio
Copy link

@EddieAbbondanzio EddieAbbondanzio commented Jun 28, 2024

Hepipe fails to start if the telephony service was already active and processing calls before Hepipe comes online. This is because it's receiving RTCP events for calls that don't exist in it's database.

This PR fixes that by ignore RTCP events if the call doesn't exist. The fix follows the suggestion outlined here:
sipcapture#28

Comment on lines +285 to +291
// Ignore RTCP events for calls that aren't in the database. This can happen
// if hepipe is just starting up but the telephony service already has calls
// in progress.
if (!call) {
return;
}

Copy link
Author

Choose a reason for hiding this comment

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

The main change

Comment on lines +36 to +39
if (!message) {
return;
}

Copy link
Author

Choose a reason for hiding this comment

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

The other change.

@EddieAbbondanzio EddieAbbondanzio merged commit 3cb923d into master Jun 28, 2024
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.

1 participant