Module: kamailio
Branch: master
Commit: 5460949614c92c7dbfb7f63274540500f2a69d5b
URL:
https://github.com/kamailio/kamailio/commit/5460949614c92c7dbfb7f6327454050…
Author: Miteshkumar Thakkar <mitesht(a)users.noreply.github.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-03-23T17:27:32+01:00
app_lua: Fixed error 'too many parameters'
- Calling function KSR.secsipid.secsipid_add_identity() has six parameters, is giving
error 'too many parameters'
---
Modified: src/modules/app_lua/app_lua_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5460949614c92c7dbfb7f6327454050…
Patch:
https://github.com/kamailio/kamailio/commit/5460949614c92c7dbfb7f6327454050…
---
diff --git a/src/modules/app_lua/app_lua_api.c b/src/modules/app_lua/app_lua_api.c
index da3b4eeb17..3fa131ca3a 100644
--- a/src/modules/app_lua/app_lua_api.c
+++ b/src/modules/app_lua/app_lua_api.c
@@ -969,7 +969,7 @@ int sr_kemi_lua_exec_func_ex(lua_State* L, sr_kemi_t *ket, int
pdelta)
return app_lua_return_false(L);
}
- if(argc>=SR_KEMI_PARAMS_MAX+pdelta) {
+ if(argc>SR_KEMI_PARAMS_MAX+pdelta) {
LM_ERR("too many parameters for: %.*s.%.*s\n",
mname->len, mname->s, fname->len, fname->s);
return app_lua_return_false(L);