Module: kamailio
Branch: master
Commit: 971f7e170565a6815142b25450a1749f8f66ebf1
URL: 
https://github.com/kamailio/kamailio/commit/971f7e170565a6815142b25450a1749f8f66ebf1

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2025-10-10T15:30:51+02:00

core: added coreparam[iuid] to set a string instance unique id

---

Modified: src/core/coreparam.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/971f7e170565a6815142b25450a1749f8f66ebf1.diff
Patch: 
https://github.com/kamailio/kamailio/commit/971f7e170565a6815142b25450a1749f8f66ebf1.patch

---

diff --git a/src/core/coreparam.c b/src/core/coreparam.c
index de20d36e278..dbd8ae5bca7 100644
--- a/src/core/coreparam.c
+++ b/src/core/coreparam.c
@@ -21,16 +21,21 @@
 #include <stdlib.h>
 
 #include "dprint.h"
+#include "str.h"
 #include "rand/ksrxrand.h"
 #include "mem/pkg.h"
 #include "coreparam.h"
 
 int ksr_coreparam_store_nval(str *pname, ksr_cpval_t *pval, void *eparam);
 int ksr_coreparam_store_sval_pkg(str *pname, ksr_cpval_t *pval, void *eparam);
+
 long ksr_timer_sanity_check = 0;
+str _ksr_iuid = STR_NULL;
 
 /* clang-format off */
 static ksr_cpexport_t _ksr_cpexports[] = {
+       { str_init("iuid"), KSR_CPTYPE_STR,
+               ksr_coreparam_store_sval_pkg, &_ksr_iuid },
        { str_init("random_engine"), KSR_CPTYPE_STR,
                ksr_xrand_cp, NULL },
        { str_init("timer_sanity_check"), KSR_CPTYPE_NUM,

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to