Module: kamailio
Branch: master
Commit: b045e5314834a312e6a7b6fa772641cafaa5aab6
URL:
https://github.com/kamailio/kamailio/commit/b045e5314834a312e6a7b6fa772641c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-09-20T12:15:39+02:00
app_lua: use global parameter for request route callback
---
Modified: src/modules/app_lua/app_lua_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b045e5314834a312e6a7b6fa772641c…
Patch:
https://github.com/kamailio/kamailio/commit/b045e5314834a312e6a7b6fa772641c…
---
diff --git a/src/modules/app_lua/app_lua_mod.c b/src/modules/app_lua/app_lua_mod.c
index 0e44a51f2b4..dc1b4184d3b 100644
--- a/src/modules/app_lua/app_lua_mod.c
+++ b/src/modules/app_lua/app_lua_mod.c
@@ -110,7 +110,8 @@ int sr_kemi_config_engine_lua(
ret = app_lua_run_ex(msg, rname->s,
(rparam && rparam->s) ? rparam->s : NULL, NULL, NULL, 0);
} else {
- ret = app_lua_run_ex(msg, "ksr_request_route", NULL, NULL, NULL, 1);
+ ret = app_lua_run_ex(
+ msg, kemi_reply_route_callback.s, NULL, NULL, NULL, 1);
}
} else if(rtype == CORE_ONREPLY_ROUTE) {
if(kemi_reply_route_callback.len > 0) {