[sr-dev] git:master:f0fe6b35: app_lua: check and use kemi reply route callback name
Daniel-Constantin Mierla
miconda at gmail.com
Mon Mar 12 12:57:05 CET 2018
Module: kamailio
Branch: master
Commit: f0fe6b351cc1e40327356dbbc14229dd462df050
URL: https://github.com/kamailio/kamailio/commit/f0fe6b351cc1e40327356dbbc14229dd462df050
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/f0fe6b351cc1e40327356dbbc14229dd462df050.diff
Patch: https://github.com/kamailio/kamailio/commit/f0fe6b351cc1e40327356dbbc14229dd462df050.patch
---
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);
More information about the sr-dev
mailing list