Module: kamailio
Branch: master
Commit: a41533b44959dd2b9fd310c8363fd60884ac3303
URL:
https://github.com/kamailio/kamailio/commit/a41533b44959dd2b9fd310c8363fd60…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-03-12T12:56:24+01:00
app_python: check and use kemi reply route callback name
---
Modified: src/modules/app_python/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a41533b44959dd2b9fd310c8363fd60…
Patch:
https://github.com/kamailio/kamailio/commit/a41533b44959dd2b9fd310c8363fd60…
---
diff --git a/src/modules/app_python/apy_kemi.c b/src/modules/app_python/apy_kemi.c
index f71a8171e7..e9759d43d6 100644
--- a/src/modules/app_python/apy_kemi.c
+++ b/src/modules/app_python/apy_kemi.c
@@ -61,7 +61,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);