Module: kamailio
Branch: master
Commit: 204839ec9aeb0f31425732dd0a2e8e256481dae5
URL: 
https://github.com/kamailio/kamailio/commit/204839ec9aeb0f31425732dd0a2e8e256481dae5

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-04-19T09:25:19+02:00

cfgutils: kemi export try/un/lock_key2() functions

- different kemi functions cannot be exported with same name, even if
  they have different number of parameters
- GH #4216

---

Modified: src/modules/cfgutils/cfgutils.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/204839ec9aeb0f31425732dd0a2e8e256481dae5.diff
Patch: 
https://github.com/kamailio/kamailio/commit/204839ec9aeb0f31425732dd0a2e8e256481dae5.patch

---

diff --git a/src/modules/cfgutils/cfgutils.c b/src/modules/cfgutils/cfgutils.c
index fd0a5e5b2b3..2d3809e670c 100644
--- a/src/modules/cfgutils/cfgutils.c
+++ b/src/modules/cfgutils/cfgutils.c
@@ -1050,7 +1050,7 @@ static sr_kemi_t sr_kemi_cfgutils_exports[] = {
                { SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
                        SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
        },
-       { str_init("cfgutils"), str_init("lock"),
+       { str_init("cfgutils"), str_init("lock_key2"),
                SR_KEMIP_INT, cfg_lock_key2,
                { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
                        SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
@@ -1060,7 +1060,7 @@ static sr_kemi_t sr_kemi_cfgutils_exports[] = {
                { SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
                        SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
        },
-       { str_init("cfgutils"), str_init("unlock"),
+       { str_init("cfgutils"), str_init("unlock_key2"),
                SR_KEMIP_INT, cfg_unlock_key2,
                { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
                        SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
@@ -1070,7 +1070,7 @@ static sr_kemi_t sr_kemi_cfgutils_exports[] = {
                { SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
                        SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
        },
-       { str_init("cfgutils"), str_init("trylock"),
+       { str_init("cfgutils"), str_init("trylock_key2"),
                SR_KEMIP_INT, cfg_trylock_key2,
                { SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
                        SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to