Module: kamailio
Branch: master
Commit: f0fe6b351cc1e40327356dbbc14229dd462df050
URL:
https://github.com/kamailio/kamailio/commit/f0fe6b351cc1e40327356dbbc14229d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-03-12T12:56:24+01:00
app_lua: check and use kemi reply route callback name
---
Modified: src/modules/app_lua/app_lua_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f0fe6b351cc1e40327356dbbc14229d…
Patch:
https://github.com/kamailio/kamailio/commit/f0fe6b351cc1e40327356dbbc14229d…
---
diff --git a/src/modules/app_lua/app_lua_mod.c b/src/modules/app_lua/app_lua_mod.c
index b4786b2745..362a9bc6b6 100644
--- a/src/modules/app_lua/app_lua_mod.c
+++ b/src/modules/app_lua/app_lua_mod.c
@@ -122,7 +122,10 @@ int sr_kemi_config_engine_lua(sip_msg_t *msg, int rtype, str *rname,
ret = app_lua_run_ex(msg, "ksr_request_route", NULL, NULL, NULL, 1);
}
} else if(rtype==CORE_ONREPLY_ROUTE) {
- ret = app_lua_run_ex(msg, "ksr_reply_route", NULL, NULL, NULL, 0);
+ if(kemi_reply_route_callback.len>0) {
+ ret = app_lua_run_ex(msg, kemi_reply_route_callback.s, NULL,
+ NULL, NULL, 0);
+ }
} else if(rtype==BRANCH_ROUTE) {
if(rname!=NULL && rname->s!=NULL) {
ret = app_lua_run_ex(msg, rname->s, NULL, NULL, NULL, 0);