[sr-dev] git:5.3:3af15354: async: fix async_ms_route and export it to kemi

Federico Cabiddu federico.cabiddu at gmail.com
Thu Aug 20 15:35:46 CEST 2020


Module: kamailio
Branch: 5.3
Commit: 3af15354836f69ec2cbd6f107f860cfc1ffc334e
URL: https://github.com/kamailio/kamailio/commit/3af15354836f69ec2cbd6f107f860cfc1ffc334e

Author: Federico Cabiddu <federico.cabiddu at gmail.com>
Committer: Federico Cabiddu <federico.cabiddu at gmail.com>
Date: 2020-08-20T15:35:31+02:00

async: fix async_ms_route and export it to kemi

(cherry picked from commit b787627819fc93dcc8c68a4950c9760d298ce555)

---

Modified: src/modules/async/async_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/3af15354836f69ec2cbd6f107f860cfc1ffc334e.diff
Patch: https://github.com/kamailio/kamailio/commit/3af15354836f69ec2cbd6f107f860cfc1ffc334e.patch

---

diff --git a/src/modules/async/async_mod.c b/src/modules/async/async_mod.c
index aae3c65500..3415d60224 100644
--- a/src/modules/async/async_mod.c
+++ b/src/modules/async/async_mod.c
@@ -404,7 +404,7 @@ static int w_async_ms_route(sip_msg_t *msg, char *rt, char *sec)
 		LM_ERR("no async interval value\n");
 		return -1;
 	}
-	return ki_async_route(msg, &rn, s);
+	return ki_async_ms_route(msg, &rn, s);
 }
 
 /**
@@ -505,6 +505,11 @@ static sr_kemi_t sr_kemi_async_exports[] = {
 		{ SR_KEMIP_STR, SR_KEMIP_INT, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
+	{ str_init("async"), str_init("ms_route"),
+		SR_KEMIP_INT, ki_async_ms_route,
+		{ SR_KEMIP_STR, SR_KEMIP_INT, SR_KEMIP_NONE,
+			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+	},
 	{ str_init("async"), str_init("task_route"),
 		SR_KEMIP_INT, ki_async_task_route,
 		{ SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,




More information about the sr-dev mailing list