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

Enable SIP tracing on support session events #46

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Enable SIP tracing on support session events #46

merged 2 commits into from
Dec 9, 2024

Conversation

Stell0
Copy link
Collaborator

@Stell0 Stell0 commented Nov 14, 2024

Trigger kamcmd siptrace.status on in the Kamailio container
when the support-session-started event is fired by NethServer 8.
Conversely, run kamcmd siptrace.status off on the
support-session-stopped event to disable SIP tracing.

What

This pull request introduces dynamic control over Kamailio SIP
tracing based on the state of support sessions, allowing the
command kamcmd siptrace.status on to be executed when a
support session starts and kamcmd siptrace.status off when it
stops.

Why

By enabling SIP tracing specifically during active support
sessions, we can capture necessary TLS debug information without
overloading the system with traces outside of these sessions. This
improves both performance and debugging efficiency by limiting the
trace data to relevant periods.

NethServer/dev#7098

@Stell0 Stell0 marked this pull request as ready for review November 18, 2024 15:02
@Stell0 Stell0 requested a review from Amygos November 26, 2024 14:28
Load siptrace module to enable debugging of TLS traffic. Set it to be
disabled by default to avoid unnecessary tracing on startup. This can
be toggled at runtime using:

- `kamcmd siptrace.status on` to enable
- `kamcmd siptrace.status off` to disable

This setup provides a flexible debugging option without impacting
performance in regular operation.
Trigger `kamcmd siptrace.status on` in the Kamailio container
when the `support-session-started` event is fired by NethServer 8.
Conversely, run `kamcmd siptrace.status off` on the
`support-session-stopped` event to disable SIP tracing.

This change allows dynamic control of Kamailio SIP tracing,
specifically for TLS debugging purposes, helping to limit
trace data only when support session is activated.
@Amygos Amygos merged commit 1be506b into main Dec 9, 2024
7 checks passed
@Amygos Amygos deleted the 7098 branch December 9, 2024 15:59
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