]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
lua stuff
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 2 Sep 2009 17:59:01 +0000 (17:59 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 2 Sep 2009 17:59:01 +0000 (17:59 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14742 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_core.h
src/mod/languages/mod_lua/freeswitch.i
src/switch_cpp.cpp

index 9a576a2591ab2813f3f77afd1f6d0d3e33583dea..a08eb6676cd1f92dc120be4e786d809a0a066641 100644 (file)
@@ -671,7 +671,7 @@ SWITCH_DECLARE(switch_core_session_t *) switch_core_session_locate(_In_z_ const
   \note if the session was located it will have a read lock obtained which will need to be released with switch_core_session_rwunlock()
 */
 #ifdef SWITCH_DEBUG_RWLOCKS
-#define switch_core_session_locate(uuid_str) switch_core_session_perform_force_locate(uuid_str, __FILE__, __SWITCH_FUNC__, __LINE__)
+#define switch_core_session_force_locate(uuid_str) switch_core_session_perform_force_locate(uuid_str, __FILE__, __SWITCH_FUNC__, __LINE__)
 #else
 SWITCH_DECLARE(switch_core_session_t *) switch_core_session_force_locate(_In_z_ const char *uuid_str);
 #endif
index 57f7e0d5a39d8b4c012bb55a8b0bef512ab280e7..3745e09cb25ceaa19ff1f524afb1f2c7aaff141a 100644 (file)
 
 %ignore SwitchToMempool;   
 %newobject EventConsumer::pop;
+%newobject Session;
+%newobject CoreSession;
+%newobject Event;
+%newobject Stream;
 
 /**
  * tell swig to grok everything defined in these header files and
index 066fef73b4a2524e4c042de0a017b3ba1a123948..d8684f673d7f3f3598488e7fb7df789bcf299f51 100644 (file)
@@ -507,7 +507,7 @@ SWITCH_DECLARE_CONSTRUCTOR CoreSession::CoreSession(switch_core_session_t *new_s
                session = new_session;
                channel = switch_core_session_get_channel(session);
                allocated = 1;
-               switch_core_session_read_lock(session);
+               switch_core_session_read_lock_hangup(session);
                uuid = strdup(switch_core_session_get_uuid(session));
        }
 }