From 634053d477dd993a28c45bc5815206e1a46eea94 Mon Sep 17 00:00:00 2001 From: Lyubomir Yatanski Date: Wed, 24 Dec 2025 11:26:17 +0200 Subject: [PATCH 1/3] add enum to kamailio image --- images/kamailio/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/images/kamailio/Dockerfile b/images/kamailio/Dockerfile index b06afe5..a1b4ee6 100644 --- a/images/kamailio/Dockerfile +++ b/images/kamailio/Dockerfile @@ -39,6 +39,7 @@ RUN cmake -S /kamailio -B /out -G Ninja -D CMAKE_BUILD_TYPE=Release \ pua ims_registrar_pcscf ims_usrloc_pcscf ims_ipsec_pcscf ims_qos \ ims_icscf \ ims_registrar_scscf ims_usrloc_scscf ims_auth ims_isc ims_charging \ + enum \ presence \ dispatcher \ rtpengine \ From 26074d258952e3eb08416a88280ea74bcdc35b44 Mon Sep 17 00:00:00 2001 From: Lyubomir Yatanski Date: Wed, 24 Dec 2025 11:43:54 +0200 Subject: [PATCH 2/3] add enum query on the serving scscf --- images/kamailio/cscf/serving.cfg | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/images/kamailio/cscf/serving.cfg b/images/kamailio/cscf/serving.cfg index 72d0398..010064d 100644 --- a/images/kamailio/cscf/serving.cfg +++ b/images/kamailio/cscf/serving.cfg @@ -34,10 +34,13 @@ loadmodule "ims_usrloc_scscf" loadmodule "ims_registrar_scscf" loadmodule "ims_auth" loadmodule "ims_isc" +loadmodule "enum" loadmodule "rtpengine" modparam("rtpengine", "rtpengine_sock", RTPADR) +modparam("enum", "domain_suffix", REALM) + include_file "common.cfg" modparam("rr", "add_username", 1) @@ -201,14 +204,21 @@ route[SUBSCRIBE] { } route[MORIG] { + $avp(RR_USER)="mo"; + $var(direction) = "orig"; + route(BILL); + if("INVITE" == $rm) { t_on_reply("INVITE"); rtpengine_manage(); - } - $avp(RR_USER)="mo"; - $var(direction) = "orig"; - route(BILL); + # other networks / PSTN + if($rU =~ "\+[0-9]+") { + if(!enum_query()) { + exit; + } + } + } } route[MTERM] { From 6ee61fb9fe50ceb5b5864c785c8b10d82b2dd19c Mon Sep 17 00:00:00 2001 From: Lyubomir Yatanski Date: Wed, 24 Dec 2025 14:48:22 +0200 Subject: [PATCH 3/3] enum is not configured by default --- images/kamailio/cscf/serving.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/kamailio/cscf/serving.cfg b/images/kamailio/cscf/serving.cfg index 010064d..074be14 100644 --- a/images/kamailio/cscf/serving.cfg +++ b/images/kamailio/cscf/serving.cfg @@ -215,7 +215,7 @@ route[MORIG] { # other networks / PSTN if($rU =~ "\+[0-9]+") { if(!enum_query()) { - exit; + xinfo("ENUM lookup failed\n"); } } }