Module: kamailio
Branch: master
Commit: daf0d1722e01b5d1a819a7045f8c3347a948144e
URL:
https://github.com/kamailio/kamailio/commit/daf0d1722e01b5d1a819a7045f8c334…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-09-21T15:03:52+02:00
app_python3: use global parameter for request route callback
---
Modified: src/modules/app_python3/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/daf0d1722e01b5d1a819a7045f8c334…
Patch:
https://github.com/kamailio/kamailio/commit/daf0d1722e01b5d1a819a7045f8c334…
---
diff --git a/src/modules/app_python3/apy_kemi.c b/src/modules/app_python3/apy_kemi.c
index a2ca3e0693d..339d505cdda 100644
--- a/src/modules/app_python3/apy_kemi.c
+++ b/src/modules/app_python3/apy_kemi.c
@@ -63,7 +63,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) {