Skip to content

ENGDESK-37949: fix inbound ice lite #379

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

Merged

Conversation

Elhodred
Copy link

No description provided.

Copy link

@tajamulTelnyx tajamulTelnyx left a comment

Choose a reason for hiding this comment

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

LGTM

@Elhodred Elhodred changed the base branch from telnyx/telephony/development-backup-032025 to telnyx/telephony/development March 20, 2025 14:05
@Elhodred Elhodred requested a review from dev-ryanc March 24, 2025 15:31
@@ -1516,7 +1516,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(rtp_session->session), SWITCH_LOG_WARNING, "Error sending STUN Binding Request on ICE candidate still unresponsive to %s:%u\n", from_host, from_port);
}
}
} else if (packet->header.type == SWITCH_STUN_BINDING_RESPONSE && (ice->type & ICE_LITE)) {
} else if (packet->header.type == SWITCH_STUN_BINDING_RESPONSE && (ice->type & ICE_LITE_INBOUND)) {
Copy link

Choose a reason for hiding this comment

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

what happens if only ICE_LITE is set?

Copy link
Author

Choose a reason for hiding this comment

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

ICE-LITE won't be set ever, is a channel variable we have to specifically set to make FS to act as an ICE-LITE agent and we are not doing it for any flow. Moreover, it's a completely different flow not related to this change.
With ICE-LITE enabled, FS will never send a STUN BINDING REQUEST, so we won't receive responses

Copy link
Author

Choose a reason for hiding this comment

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

BTW, I added that condition to check ICE_LITE in a previous PR when I misunderstood the purpose of ICE_LITE flag

@damirn damirn merged commit 9367b00 into telnyx/telephony/deploy-development Apr 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants