Module: kamailio
Branch: master
Commit: d98a005ac57b957231f8bda26c711bf7c7260049
URL:
https://github.com/kamailio/kamailio/commit/d98a005ac57b957231f8bda26c711bf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-11-24T18:42:07+01:00
app_lua: detect if a kemi function was already added in the exports list
---
Modified: src/modules/app_lua/app_lua_kemi_export.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d98a005ac57b957231f8bda26c711bf…
Patch:
https://github.com/kamailio/kamailio/commit/d98a005ac57b957231f8bda26c711bf…
---
diff --git a/src/modules/app_lua/app_lua_kemi_export.c
b/src/modules/app_lua/app_lua_kemi_export.c
index 0fe6c0d9cb..29aa0e3d2b 100644
--- a/src/modules/app_lua/app_lua_kemi_export.c
+++ b/src/modules/app_lua/app_lua_kemi_export.c
@@ -9281,6 +9281,9 @@ lua_CFunction sr_kemi_lua_export_associate(sr_kemi_t *ket)
_sr_kemi_lua_export_list[i].ket = ket;
return _sr_kemi_lua_export_list[i].pfunc;
}
+ if(_sr_kemi_lua_export_list[i].ket==ket) {
+ return _sr_kemi_lua_export_list[i].pfunc;
+ }
}
LM_ERR("no more indexing slots\n");
return NULL;