Module: kamailio
Branch: master
Commit: 97d71334ca56cdcd9573ed605adfe26a24696a0a
URL:
https://github.com/kamailio/kamailio/commit/97d71334ca56cdcd9573ed605adfe26…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-03-12T13:05:35+01:00
app_python3: check and use kemi reply route callback name
---
Modified: src/modules/app_python3/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/97d71334ca56cdcd9573ed605adfe26…
Patch:
https://github.com/kamailio/kamailio/commit/97d71334ca56cdcd9573ed605adfe26…
---
diff --git a/src/modules/app_python3/apy_kemi.c b/src/modules/app_python3/apy_kemi.c
index d053ac1b7d..ce6bc68733 100644
--- a/src/modules/app_python3/apy_kemi.c
+++ b/src/modules/app_python3/apy_kemi.c
@@ -64,7 +64,9 @@ int sr_kemi_config_engine_python(sip_msg_t *msg, int rtype, str *rname,
ret = apy_exec(msg, "ksr_request_route", NULL, 1);
}
} else if(rtype==CORE_ONREPLY_ROUTE) {
- ret = apy_exec(msg, "ksr_reply_route", NULL, 0);
+ if(kemi_reply_route_callback.len>0) {
+ ret = apy_exec(msg, kemi_reply_route_callback.s, NULL, 0);
+ }
} else if(rtype==BRANCH_ROUTE) {
if(rname!=NULL && rname->s!=NULL) {
ret = apy_exec(msg, rname->s, NULL, 0);