Module: kamailio
Branch: 5.4
Commit: bf38c7b04171e6f410ff885f10abe0f815d27de9
URL:
https://github.com/kamailio/kamailio/commit/bf38c7b04171e6f410ff885f10abe0f…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2020-08-20T15:35:04+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/bf38c7b04171e6f410ff885f10abe0f…
Patch:
https://github.com/kamailio/kamailio/commit/bf38c7b04171e6f410ff885f10abe0f…
---
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,