Module: kamailio
Branch: master
Commit: 88ca83a5379dbaca3a87fdcb26dd2855b5ba871d
URL:
https://github.com/kamailio/kamailio/commit/88ca83a5379dbaca3a87fdcb26dd285…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-22T19:24:18+01:00
core: function to get current tkv param
---
Modified: src/core/async_task.c
Modified: src/core/async_task.h
---
Diff:
https://github.com/kamailio/kamailio/commit/88ca83a5379dbaca3a87fdcb26dd285…
Patch:
https://github.com/kamailio/kamailio/commit/88ca83a5379dbaca3a87fdcb26dd285…
---
diff --git a/src/core/async_task.c b/src/core/async_task.c
index 17c385a51fd..e66205335fa 100644
--- a/src/core/async_task.c
+++ b/src/core/async_task.c
@@ -538,6 +538,14 @@ static async_wgroup_t *_async_tkv_awg = NULL;
static async_tkv_param_t *_ksr_async_tkv_param = NULL;
static int _ksr_async_tkv_ridx = -1;
+/**
+ *
+ */
+async_tkv_param_t *ksr_async_tkv_param_get(void)
+{
+ return _ksr_async_tkv_param;
+}
+
/**
*
*/
diff --git a/src/core/async_task.h b/src/core/async_task.h
index b4276c2d27c..67df94d6169 100644
--- a/src/core/async_task.h
+++ b/src/core/async_task.h
@@ -65,8 +65,9 @@ typedef struct async_tkv_param
str sval;
} async_tkv_param_t;
-#define KSR_ASYNC_TKV_SIZE 512
+#define KSR_ASYNC_TKV_SIZE 1024
void async_tkv_init(void);
int async_tkv_emit(int dtype, char *pkey, char *fmt, ...);
+async_tkv_param_t *ksr_async_tkv_param_get(void);
#endif