Module: kamailio
Branch: master
Commit: 1f1fe5e29f6f49a849e4a5da717a92e02db1fcad
URL:
https://github.com/kamailio/kamailio/commit/1f1fe5e29f6f49a849e4a5da717a92e…
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_sqlang: check and use kemi reply route callback name
---
Modified: src/modules/app_sqlang/app_sqlang_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1f1fe5e29f6f49a849e4a5da717a92e…
Patch:
https://github.com/kamailio/kamailio/commit/1f1fe5e29f6f49a849e4a5da717a92e…
---
diff --git a/src/modules/app_sqlang/app_sqlang_mod.c
b/src/modules/app_sqlang/app_sqlang_mod.c
index 6bbf70e199..00818830b3 100644
--- a/src/modules/app_sqlang/app_sqlang_mod.c
+++ b/src/modules/app_sqlang/app_sqlang_mod.c
@@ -148,7 +148,10 @@ int sr_kemi_config_engine_sqlang(sip_msg_t *msg, int rtype, str
*rname,
ret = app_sqlang_run_ex(msg, "ksr_request_route", NULL, NULL, NULL, 1);
}
} else if(rtype==CORE_ONREPLY_ROUTE) {
- ret = app_sqlang_run_ex(msg, "ksr_reply_route", NULL, NULL, NULL, 0);
+ if(kemi_reply_route_callback.len>0) {
+ ret = app_sqlang_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_sqlang_run_ex(msg, rname->s, NULL, NULL, NULL, 0);