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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 1 addition & 5 deletions modules/kamailio/config/kamailio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ loadmodule "http_async_client.so"
loadmodule "acc.so"
loadmodule "uac.so"
loadmodule "sdpops.so"
#!ifdef WITH_SIPTRACE
loadmodule "siptrace.so"
#!endif


# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -167,15 +165,13 @@ modparam("pv", "shvset", "fakeprack=i:0")
#!ifdef WITH_TLS
modparam("tls", "config", "/etc/kamailio/tls/")
#!endif
#!ifdef WITH_SIPTRACE
modparam("siptrace", "trace_mode", 1)
modparam("siptrace", "trace_to_database", 0)
modparam("siptrace", "trace_on", 1)
modparam("siptrace", "trace_on", 0)
modparam("siptrace", "duplicate_uri", "sip:127.0.0.1:5065")
modparam("siptrace", "hep_mode_on", 1)
modparam("siptrace", "hep_version", 2)
modparam("siptrace", "hep_capture_id", 1)
#!endif

# -----------------------------------------------------------------------------
# Routing Logic
Expand Down
1 change: 0 additions & 1 deletion modules/kamailio/config/template.kamailio-local.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#!define WITH_TLS
#!define LOCALNETWORKS "${LOCALNETWORKS}"
#!define PRIVATE_IP "${PRIVATE_IP}"
##!define WITH_SIPTRACE

server_header="Server: ${KML_SERVER_HEADER}"
user_agent_header="User-Agent: ${KML_UA_HEADER}"
Expand Down
Loading