Module: kamailio
Branch: master
Commit: 90cb4c8a3376b967960a2185b3acc669734f5e33
URL:
https://github.com/kamailio/kamailio/commit/90cb4c8a3376b967960a2185b3acc66…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-09-22T14:11:04+02:00
app_python: use global parameter for request route callback
---
Modified: src/modules/app_python/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/90cb4c8a3376b967960a2185b3acc66…
Patch:
https://github.com/kamailio/kamailio/commit/90cb4c8a3376b967960a2185b3acc66…
---
diff --git a/src/modules/app_python/apy_kemi.c b/src/modules/app_python/apy_kemi.c
index d163a792c16..c9addc7600a 100644
--- a/src/modules/app_python/apy_kemi.c
+++ b/src/modules/app_python/apy_kemi.c
@@ -60,7 +60,7 @@ int sr_kemi_config_engine_python(
ret = apy_exec(
msg, rname->s, (rparam && rparam->s) ? rparam->s : NULL, 0);
} else {
- ret = apy_exec(msg, "ksr_request_route", NULL, 1);
+ ret = apy_exec(msg, kemi_request_route_callback.s, NULL, 1);
}
} else if(rtype == CORE_ONREPLY_ROUTE) {
if(kemi_reply_route_callback.len > 0) {