Module: sip-router
Branch: master
Commit: 2bcf11332135c3f23ce2cf0aa519ed57c4d2e4d7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2bcf113…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 16 22:40:54 2011 +0100
app_lua: include xhttp api headers
---
modules/app_lua/app_lua_exp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/app_lua/app_lua_exp.c b/modules/app_lua/app_lua_exp.c
index d8bc577..c998b7e 100644
--- a/modules/app_lua/app_lua_exp.c
+++ b/modules/app_lua/app_lua_exp.c
@@ -40,6 +40,7 @@
#include "../../modules_k/maxfwd/api.h"
#include "../../modules_k/registrar/api.h"
#include "../../modules_k/dispatcher/api.h"
+#include "../../modules/xhttp/api.h"
#include "app_lua_api.h"
@@ -1249,7 +1250,7 @@ static int lua_sr_xhttp_reply(lua_State *L)
LM_WARN("invalid parameters from Lua env\n");
return app_lua_return_error(L);
}
- rcode = (char*)lua_toint(L, -4);
+ rcode = lua_tointeger(L, -4);
reason.s = (char*)lua_tostring(L, -3);
ctype.s = (char*)lua_tostring(L, -2);
mbody.s = (char*)lua_tostring(L, -1);