Module: kamailio
Branch: master
Commit: 12bd6d04c44b5c7d129ed539153afafe899d1df7
URL:
https://github.com/kamailio/kamailio/commit/12bd6d04c44b5c7d129ed539153afaf…
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_jsdt: check and use kemi reply route callback name
---
Modified: src/modules/app_jsdt/app_jsdt_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/12bd6d04c44b5c7d129ed539153afaf…
Patch:
https://github.com/kamailio/kamailio/commit/12bd6d04c44b5c7d129ed539153afaf…
---
diff --git a/src/modules/app_jsdt/app_jsdt_mod.c b/src/modules/app_jsdt/app_jsdt_mod.c
index bbafc66972..98824e77f1 100644
--- a/src/modules/app_jsdt/app_jsdt_mod.c
+++ b/src/modules/app_jsdt/app_jsdt_mod.c
@@ -147,7 +147,10 @@ int sr_kemi_config_engine_jsdt(sip_msg_t *msg, int rtype, str
*rname,
ret = app_jsdt_run_ex(msg, "ksr_request_route", NULL, NULL, NULL, 1);
}
} else if(rtype==CORE_ONREPLY_ROUTE) {
- ret = app_jsdt_run_ex(msg, "ksr_reply_route", NULL, NULL, NULL, 0);
+ if(kemi_reply_route_callback.len>0) {
+ ret = app_jsdt_run_ex(msg, kemi_reply_route_callback.s, NULL,
+ NULL, NULL, 0);
+ }
} else if(rtype==BRANCH_ROUTE) {
if(rname!=NULL && rname->s!=NULL) {
ret = app_jsdt_run_ex(msg, rname->s, NULL, NULL, NULL, 0);