From: Anthony Minessale Date: Tue, 2 Mar 2010 01:08:31 +0000 (+0000) Subject: add bridged method X-Git-Tag: v1.0.6~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85587aa6b9efaf607d1aea6da22db1c065f37784;p=thirdparty%2Ffreeswitch.git add bridged method git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16857 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/languages/mod_lua/mod_lua_wrap.cpp b/src/mod/languages/mod_lua/mod_lua_wrap.cpp index 9159331dec..32cfe78062 100644 --- a/src/mod/languages/mod_lua/mod_lua_wrap.cpp +++ b/src/mod/languages/mod_lua/mod_lua_wrap.cpp @@ -6900,6 +6900,31 @@ fail: } +static int _wrap_CoreSession_bridged(lua_State* L) { + int SWIG_arg = -1; + CoreSession *arg1 = (CoreSession *) 0 ; + bool result; + + SWIG_check_num_args("bridged",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("bridged",1,"CoreSession *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_CoreSession,0))){ + SWIG_fail_ptr("CoreSession_bridged",1,SWIGTYPE_p_CoreSession); + } + + result = (bool)(arg1)->bridged(); + SWIG_arg=0; + lua_pushboolean(L,(int)(result==true)); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_CoreSession_answered(lua_State* L) { int SWIG_arg = -1; CoreSession *arg1 = (CoreSession *) 0 ; @@ -7384,6 +7409,7 @@ static swig_lua_method swig_CoreSession_methods[] = { {"setAutoHangup", _wrap_CoreSession_setAutoHangup}, {"setHangupHook", _wrap_CoreSession_setHangupHook}, {"ready", _wrap_CoreSession_ready}, + {"bridged", _wrap_CoreSession_bridged}, {"answered", _wrap_CoreSession_answered}, {"mediaReady", _wrap_CoreSession_mediaReady}, {"waitForAnswer", _wrap_CoreSession_waitForAnswer},