]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add bridged method
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 2 Mar 2010 01:08:31 +0000 (01:08 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 2 Mar 2010 01:08:31 +0000 (01:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16857 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_lua/mod_lua_wrap.cpp

index 9159331dec6b574e81e5fceb2bedf7763da726b9..32cfe78062557e9f02c4c71726a673a9861a13eb 100644 (file)
@@ -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},