[sr-dev] git:master:1f1fe5e2: app_sqlang: check and use kemi reply route callback name

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 12 12:57:06 CET 2018


Module: kamailio
Branch: master
Commit: 1f1fe5e29f6f49a849e4a5da717a92e02db1fcad
URL: https://github.com/kamailio/kamailio/commit/1f1fe5e29f6f49a849e4a5da717a92e02db1fcad

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/1f1fe5e29f6f49a849e4a5da717a92e02db1fcad.diff
Patch: https://github.com/kamailio/kamailio/commit/1f1fe5e29f6f49a849e4a5da717a92e02db1fcad.patch

---

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);




More information about the sr-dev mailing list