fix lua originate

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9297 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2008-08-14 17:35:46 +00:00
parent 23c0d9ebbf
commit 12f01067c5
3 changed files with 12 additions and 6 deletions
+3 -2
View File
@@ -7438,6 +7438,7 @@ static int _wrap_Session_originate(lua_State* L) {
CoreSession *arg2 = (CoreSession *) 0 ;
char *arg3 = (char *) 0 ;
int arg4 ;
int result;
SWIG_check_num_args("originate",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("originate",1,"LUA::Session *");
@@ -7456,9 +7457,9 @@ static int _wrap_Session_originate(lua_State* L) {
arg3 = (char *)lua_tostring(L, 3);
arg4 = (int)lua_tonumber(L, 4);
(arg1)->originate(arg2,arg3,arg4);
result = (int)(arg1)->originate(arg2,arg3,arg4);
SWIG_arg=0;
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;