Skip to content
Open
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
3 changes: 2 additions & 1 deletion images/kamailio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ RUN --mount=type=bind,from=build,source=/kamailio/utils/kamctl/db_redis/kamailio
&& mkdir -p /etc/cscf/schema/serving \
&& cp /dbmap/dialog_in /dbmap/dialog_out /dbmap/dialog_vars /etc/cscf/schema/serving \
&& cp /dbmap/contact /dbmap/impu /dbmap/impu_contact /dbmap/subscriber_scscf /dbmap/impu_subscriber /etc/cscf/schema/serving \
&& cp /dbmap/ro_session /etc/cscf/schema/serving
&& cp /dbmap/ro_session /etc/cscf/schema/serving \
&& cp /dbmap/rtpengine /etc/cscf/schema/serving
COPY cscf/ /etc/cscf

ENTRYPOINT ["kamailio", "-DD", "-E"]
Expand Down
10 changes: 9 additions & 1 deletion images/kamailio/cscf/serving.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#!trydefenv RO_IMPI
#!trydefenvs DBURL
#!defenvs RTPADR
#!trydefenvs RTPADR
#!defenvs REALM
#!defexps SERVER "scscf.ims." + REALM
#!defexps SRVURI "sip:" + SERVER
Expand Down Expand Up @@ -36,7 +36,9 @@ loadmodule "ims_auth"
loadmodule "ims_isc"
loadmodule "rtpengine"

#!ifdef RTPADR
modparam("rtpengine", "rtpengine_sock", RTPADR)
#!endif

include_file "common.cfg"

Expand Down Expand Up @@ -93,6 +95,12 @@ modparam("ims_charging", "db_mode", 1)
modparam("ims_charging", "db_url", DB_URL)
#!endif

#!ifndef RTPADR
modparam("rtpengine", "db_url", DB_URL)
modparam("rtpengine", "table_name", "rtpengine")
modparam("db_redis", "keys", "rtpengine=entry:id")
#!endif

#modparam("db_redis", "keys", "dialog_in=entry:hash_entry,hash_id")
#modparam("db_redis", "keys", "dialog_out=entry:id")
#modparam("db_redis", "keys", "dialog_vars=entry:hash_entry,hash_id")
Expand Down