Skip to content
Open

Enum #117

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
1 change: 1 addition & 0 deletions images/kamailio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
18 changes: 14 additions & 4 deletions images/kamailio/cscf/serving.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()) {
xinfo("ENUM lookup failed\n");
}
}
}
}

route[MTERM] {
Expand Down