Module: kamailio
Branch: master
Commit: d74de4a355ec62df7a0f01ffa53519f71bf65f2a
URL:
https://github.com/kamailio/kamailio/commit/d74de4a355ec62df7a0f01ffa53519f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-04-25T15:06:19+02:00
app_lua: print error message if kemi function not found
---
Modified: modules/app_lua/app_lua_sr.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d74de4a355ec62df7a0f01ffa53519f…
Patch:
https://github.com/kamailio/kamailio/commit/d74de4a355ec62df7a0f01ffa53519f…
---
diff --git a/modules/app_lua/app_lua_sr.c b/modules/app_lua/app_lua_sr.c
index 5e00fa2..df7700a 100644
--- a/modules/app_lua/app_lua_sr.c
+++ b/modules/app_lua/app_lua_sr.c
@@ -1458,6 +1458,10 @@ int sr_kemi_exec_func(lua_State* L, str *mname, int midx, str
*fname)
ket = sr_kemi_lookup(mname, midx, fname);
if(ket==NULL) {
+ LM_ERR("cannot find function (%d): %.*s.%.*s\n", midx,
+ (mname && mname->len>0)?mname->len:0,
+ (mname && mname->len>0)?mname->s:"",
+ fname->len, fname->s);
return app_lua_return_false(L);
}
if(mname->len<=0) {