Module: kamailio
Branch: master
Commit: 660cc4640589fab5aad6cf8701b58b563e69eb6f
URL:
https://github.com/kamailio/kamailio/commit/660cc4640589fab5aad6cf8701b58b5…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2016-11-07T13:28:47+02:00
modules/ims_icscf: If a route block is defined for lir_user_unknown, run it instead of
default
---
Modified: modules/ims_icscf/cxdx_lir.c
---
Diff:
https://github.com/kamailio/kamailio/commit/660cc4640589fab5aad6cf8701b58b5…
Patch:
https://github.com/kamailio/kamailio/commit/660cc4640589fab5aad6cf8701b58b5…
---
diff --git a/modules/ims_icscf/cxdx_lir.c b/modules/ims_icscf/cxdx_lir.c
index 3b48a0c..25d7fef 100644
--- a/modules/ims_icscf/cxdx_lir.c
+++ b/modules/ims_icscf/cxdx_lir.c
@@ -137,11 +137,8 @@ void async_cdp_lir_callback(int is_timeout, void *param, AAAMessage
*lia, long e
case RC_IMS_DIAMETER_ERROR_USER_UNKNOWN:
/* Check, if route is set: */
if (route_lir_user_unknown_no >= 0) {
- /* exec routing script */
- init_run_actions_ctx(&ra_ctx);
- if (run_actions(&ra_ctx,
main_rt.rlist[route_uar_user_unknown_no], t->uas.request) < 0) {
- DBG("ims_icscf: error while trying script\n");
- }
+ LM_DBG("we have an unknown user route block so we will re-target
there\n");
+ data->act = main_rt.rlist[route_lir_user_unknown_no];
} else {
cscf_reply_transactional_async(t, t->uas.request, 604,
MSG_604_USER_UNKNOWN);
}