Module: kamailio
Branch: master
Commit: b787627819fc93dcc8c68a4950c9760d298ce555
URL:
https://github.com/kamailio/kamailio/commit/b787627819fc93dcc8c68a4950c9760…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2020-08-20T11:06:56+02:00
async: fix async_ms_route and export it to kemi
---
Modified: src/modules/async/async_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b787627819fc93dcc8c68a4950c9760…
Patch:
https://github.com/kamailio/kamailio/commit/b787627819fc93dcc8c68a4950c9760…
---
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,