Skip to content

Commit

Permalink
Enable SIP tracing on support session events
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Stell0 authored and Amygos committed Dec 9, 2024
1 parent 01e4630 commit 1be506b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions imageroot/events/support-session-started/10enable_siptrace
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

#
# Copyright (C) 2024 Nethesis S.r.l.
# SPDX-License-Identifier: GPL-3.0-or-later
#

exec 1>&2
set -e

podman exec kamailio kamcmd siptrace.status on
11 changes: 11 additions & 0 deletions imageroot/events/support-session-stopped/10disable_siptrace
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

#
# Copyright (C) 2024 Nethesis S.r.l.
# SPDX-License-Identifier: GPL-3.0-or-later
#

exec 1>&2
set -e

podman exec kamailio kamcmd siptrace.status off

0 comments on commit 1be506b

Please sign in to comment.