<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][15361] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=15361">15361</a></dd>
<dt>Author</dt> <dd>anthm</dd>
<dt>Date</dt> <dd>2009-11-04 17:58:26 -0600 (Wed, 04 Nov 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>reswig</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtrunksrcincludeswitch_cpph">freeswitch/trunk/src/include/switch_cpp.h</a></li>
<li><a href="#freeswitchtrunksrcmodlanguagesmod_javasrcorgfreeswitchswigCoreSessionjava">freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java</a></li>
<li><a href="#freeswitchtrunksrcmodlanguagesmod_javasrcorgfreeswitchswigfreeswitchJNIjava">freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java</a></li>
<li><a href="#freeswitchtrunksrcmodlanguagesmod_javaswitch_swig_wrapcpp">freeswitch/trunk/src/mod/languages/mod_java/switch_swig_wrap.cpp</a></li>
<li><a href="#freeswitchtrunksrcmodlanguagesmod_luamod_lua_wrapcpp">freeswitch/trunk/src/mod/languages/mod_lua/mod_lua_wrap.cpp</a></li>
<li><a href="#freeswitchtrunksrcmodlanguagesmod_managedfreeswitch_wrapcxx">freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx</a></li>
<li><a href="#freeswitchtrunksrcmodlanguagesmod_managedmanagedswigcs">freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs</a></li>
<li><a href="#freeswitchtrunksrcmodlanguagesmod_perlfreeswitchpm">freeswitch/trunk/src/mod/languages/mod_perl/freeswitch.pm</a></li>
<li><a href="#freeswitchtrunksrcmodlanguagesmod_perlmod_perl_wrapcpp">freeswitch/trunk/src/mod/languages/mod_perl/mod_perl_wrap.cpp</a></li>
<li><a href="#freeswitchtrunksrcmodlanguagesmod_pythonfreeswitchpy">freeswitch/trunk/src/mod/languages/mod_python/freeswitch.py</a></li>
<li><a href="#freeswitchtrunksrcmodlanguagesmod_pythonmod_python_wrapcpp">freeswitch/trunk/src/mod/languages/mod_python/mod_python_wrap.cpp</a></li>
<li><a href="#freeswitchtrunksrcswitch_cppcpp">freeswitch/trunk/src/switch_cpp.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunksrcincludeswitch_cpph"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/include/switch_cpp.h (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/include/switch_cpp.h        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/include/switch_cpp.h        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -216,6 +216,7 @@
</span><span class="cx">                  SWITCH_DECLARE(int) answer();
</span><span class="cx">                  SWITCH_DECLARE(int) preAnswer();
</span><span class="cx">                  SWITCH_DECLARE(void) hangup(const char *cause = &quot;normal_clearing&quot;);
</span><ins>+                 SWITCH_DECLARE(void) hangupState(void);
</ins><span class="cx">                  SWITCH_DECLARE(void) setVariable(char *var, char *val);
</span><span class="cx">                  SWITCH_DECLARE(void) setPrivate(char *var, void *val);
</span><span class="cx">                  SWITCH_DECLARE(void *) getPrivate(char *var);
</span></span></pre></div>
<a id="freeswitchtrunksrcmodlanguagesmod_javasrcorgfreeswitchswigCoreSessionjava"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -132,6 +132,10 @@
</span><span class="cx">     freeswitchJNI.CoreSession_hangup__SWIG_1(swigCPtr, this);
</span><span class="cx">   }
</span><span class="cx"> 
</span><ins>+  public void hangupState() {
+    freeswitchJNI.CoreSession_hangupState(swigCPtr, this);
+  }
+
</ins><span class="cx">   public void setVariable(String var, String val) {
</span><span class="cx">     freeswitchJNI.CoreSession_setVariable(swigCPtr, this, var, val);
</span><span class="cx">   }
</span></span></pre></div>
<a id="freeswitchtrunksrcmodlanguagesmod_javasrcorgfreeswitchswigfreeswitchJNIjava"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -110,6 +110,7 @@
</span><span class="cx">   public final static native int CoreSession_preAnswer(long jarg1, CoreSession jarg1_);
</span><span class="cx">   public final static native void CoreSession_hangup__SWIG_0(long jarg1, CoreSession jarg1_, String jarg2);
</span><span class="cx">   public final static native void CoreSession_hangup__SWIG_1(long jarg1, CoreSession jarg1_);
</span><ins>+  public final static native void CoreSession_hangupState(long jarg1, CoreSession jarg1_);
</ins><span class="cx">   public final static native void CoreSession_setVariable(long jarg1, CoreSession jarg1_, String jarg2, String jarg3);
</span><span class="cx">   public final static native void CoreSession_setPrivate(long jarg1, CoreSession jarg1_, String jarg2, long jarg3);
</span><span class="cx">   public final static native long CoreSession_getPrivate(long jarg1, CoreSession jarg1_, String jarg2);
</span></span></pre></div>
<a id="freeswitchtrunksrcmodlanguagesmod_javaswitch_swig_wrapcpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/languages/mod_java/switch_swig_wrap.cpp (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/languages/mod_java/switch_swig_wrap.cpp        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/mod/languages/mod_java/switch_swig_wrap.cpp        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -1990,6 +1990,17 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangupState(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
+  CoreSession *arg1 = (CoreSession *) 0 ;
+  
+  (void)jenv;
+  (void)jcls;
+  (void)jarg1_;
+  arg1 = *(CoreSession **)&amp;jarg1; 
+  (arg1)-&gt;hangupState();
+}
+
+
</ins><span class="cx"> SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setVariable(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
</span><span class="cx">   CoreSession *arg1 = (CoreSession *) 0 ;
</span><span class="cx">   char *arg2 = (char *) 0 ;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodlanguagesmod_luamod_lua_wrapcpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/languages/mod_lua/mod_lua_wrap.cpp (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/languages/mod_lua/mod_lua_wrap.cpp        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/mod/languages/mod_lua/mod_lua_wrap.cpp        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -4802,6 +4802,30 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+static int _wrap_CoreSession_hangupState(lua_State* L) {
+  int SWIG_arg = -1;
+  CoreSession *arg1 = (CoreSession *) 0 ;
+  
+  SWIG_check_num_args(&quot;hangupState&quot;,1,1)
+  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg(&quot;hangupState&quot;,1,&quot;CoreSession *&quot;);
+  
+  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&amp;arg1,SWIGTYPE_p_CoreSession,0))){
+    SWIG_fail_ptr(&quot;CoreSession_hangupState&quot;,1,SWIGTYPE_p_CoreSession);
+  }
+  
+  (arg1)-&gt;hangupState();
+  SWIG_arg=0;
+  
+  return SWIG_arg;
+  
+  if(0) SWIG_fail;
+  
+fail:
+  lua_error(L);
+  return SWIG_arg;
+}
+
+
</ins><span class="cx"> static int _wrap_CoreSession_setVariable(lua_State* L) {
</span><span class="cx">   int SWIG_arg = -1;
</span><span class="cx">   CoreSession *arg1 = (CoreSession *) 0 ;
</span><span class="lines">@@ -7332,6 +7356,7 @@
</span><span class="cx">     {&quot;answer&quot;, _wrap_CoreSession_answer}, 
</span><span class="cx">     {&quot;preAnswer&quot;, _wrap_CoreSession_preAnswer}, 
</span><span class="cx">     {&quot;hangup&quot;, _wrap_CoreSession_hangup}, 
</span><ins>+    {&quot;hangupState&quot;, _wrap_CoreSession_hangupState}, 
</ins><span class="cx">     {&quot;setVariable&quot;, _wrap_CoreSession_setVariable}, 
</span><span class="cx">     {&quot;setPrivate&quot;, _wrap_CoreSession_setPrivate}, 
</span><span class="cx">     {&quot;getPrivate&quot;, _wrap_CoreSession_getPrivate}, 
</span></span></pre></div>
<a id="freeswitchtrunksrcmodlanguagesmod_managedfreeswitch_wrapcxx"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_wrap.cxx        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -29114,6 +29114,14 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_hangupState(void * jarg1) {
+  CoreSession *arg1 = (CoreSession *) 0 ;
+  
+  arg1 = (CoreSession *)jarg1; 
+  (arg1)-&gt;hangupState();
+}
+
+
</ins><span class="cx"> SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_SetVariable(void * jarg1, char * jarg2, char * jarg3) {
</span><span class="cx">   CoreSession *arg1 = (CoreSession *) 0 ;
</span><span class="cx">   char *arg2 = (char *) 0 ;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodlanguagesmod_managedmanagedswigcs"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/mod/languages/mod_managed/managed/swig.cs        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -218,6 +218,10 @@
</span><span class="cx">     freeswitchPINVOKE.CoreSession_Hangup(swigCPtr, cause);
</span><span class="cx">   }
</span><span class="cx"> 
</span><ins>+  public void hangupState() {
+    freeswitchPINVOKE.CoreSession_hangupState(swigCPtr);
+  }
+
</ins><span class="cx">   public void SetVariable(string var, string val) {
</span><span class="cx">     freeswitchPINVOKE.CoreSession_SetVariable(swigCPtr, var, val);
</span><span class="cx">   }
</span><span class="lines">@@ -11558,6 +11562,9 @@
</span><span class="cx">   [DllImport(&quot;mod_managed&quot;, EntryPoint=&quot;CSharp_CoreSession_Hangup&quot;)]
</span><span class="cx">   public static extern void CoreSession_Hangup(HandleRef jarg1, string jarg2);
</span><span class="cx"> 
</span><ins>+  [DllImport(&quot;mod_managed&quot;, EntryPoint=&quot;CSharp_CoreSession_hangupState&quot;)]
+  public static extern void CoreSession_hangupState(HandleRef jarg1);
+
</ins><span class="cx">   [DllImport(&quot;mod_managed&quot;, EntryPoint=&quot;CSharp_CoreSession_SetVariable&quot;)]
</span><span class="cx">   public static extern void CoreSession_SetVariable(HandleRef jarg1, string jarg2, string jarg3);
</span><span class="cx"> 
</span></span></pre></div>
<a id="freeswitchtrunksrcmodlanguagesmod_perlfreeswitchpm"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/languages/mod_perl/freeswitch.pm (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/languages/mod_perl/freeswitch.pm        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/mod/languages/mod_perl/freeswitch.pm        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -404,6 +404,7 @@
</span><span class="cx"> *answer = *freeswitchc::CoreSession_answer;
</span><span class="cx"> *preAnswer = *freeswitchc::CoreSession_preAnswer;
</span><span class="cx"> *hangup = *freeswitchc::CoreSession_hangup;
</span><ins>+*hangupState = *freeswitchc::CoreSession_hangupState;
</ins><span class="cx"> *setVariable = *freeswitchc::CoreSession_setVariable;
</span><span class="cx"> *setPrivate = *freeswitchc::CoreSession_setPrivate;
</span><span class="cx"> *getPrivate = *freeswitchc::CoreSession_getPrivate;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodlanguagesmod_perlmod_perl_wrapcpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/languages/mod_perl/mod_perl_wrap.cpp (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/languages/mod_perl/mod_perl_wrap.cpp        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/mod/languages/mod_perl/mod_perl_wrap.cpp        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -6045,6 +6045,33 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+XS(_wrap_CoreSession_hangupState) {
+  {
+    CoreSession *arg1 = (CoreSession *) 0 ;
+    void *argp1 = 0 ;
+    int res1 = 0 ;
+    int argvi = 0;
+    dXSARGS;
+    
+    if ((items &lt; 1) || (items &gt; 1)) {
+      SWIG_croak(&quot;Usage: CoreSession_hangupState(self);&quot;);
+    }
+    res1 = SWIG_ConvertPtr(ST(0), &amp;argp1,SWIGTYPE_p_CoreSession, 0 |  0 );
+    if (!SWIG_IsOK(res1)) {
+      SWIG_exception_fail(SWIG_ArgError(res1), &quot;in method '&quot; &quot;CoreSession_hangupState&quot; &quot;', argument &quot; &quot;1&quot;&quot; of type '&quot; &quot;CoreSession *&quot;&quot;'&quot;); 
+    }
+    arg1 = reinterpret_cast&lt; CoreSession * &gt;(argp1);
+    (arg1)-&gt;hangupState();
+    
+    
+    XSRETURN(argvi);
+  fail:
+    
+    SWIG_croak_null();
+  }
+}
+
+
</ins><span class="cx"> XS(_wrap_CoreSession_setVariable) {
</span><span class="cx">   {
</span><span class="cx">     CoreSession *arg1 = (CoreSession *) 0 ;
</span><span class="lines">@@ -11679,6 +11706,7 @@
</span><span class="cx"> {&quot;freeswitchc::CoreSession_answer&quot;, _wrap_CoreSession_answer},
</span><span class="cx"> {&quot;freeswitchc::CoreSession_preAnswer&quot;, _wrap_CoreSession_preAnswer},
</span><span class="cx"> {&quot;freeswitchc::CoreSession_hangup&quot;, _wrap_CoreSession_hangup},
</span><ins>+{&quot;freeswitchc::CoreSession_hangupState&quot;, _wrap_CoreSession_hangupState},
</ins><span class="cx"> {&quot;freeswitchc::CoreSession_setVariable&quot;, _wrap_CoreSession_setVariable},
</span><span class="cx"> {&quot;freeswitchc::CoreSession_setPrivate&quot;, _wrap_CoreSession_setPrivate},
</span><span class="cx"> {&quot;freeswitchc::CoreSession_getPrivate&quot;, _wrap_CoreSession_getPrivate},
</span></span></pre></div>
<a id="freeswitchtrunksrcmodlanguagesmod_pythonfreeswitchpy"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/languages/mod_python/freeswitch.py (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/languages/mod_python/freeswitch.py        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/mod/languages/mod_python/freeswitch.py        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -262,6 +262,7 @@
</span><span class="cx">     def answer(*args): return _freeswitch.CoreSession_answer(*args)
</span><span class="cx">     def preAnswer(*args): return _freeswitch.CoreSession_preAnswer(*args)
</span><span class="cx">     def hangup(*args): return _freeswitch.CoreSession_hangup(*args)
</span><ins>+    def hangupState(*args): return _freeswitch.CoreSession_hangupState(*args)
</ins><span class="cx">     def setVariable(*args): return _freeswitch.CoreSession_setVariable(*args)
</span><span class="cx">     def setPrivate(*args): return _freeswitch.CoreSession_setPrivate(*args)
</span><span class="cx">     def getPrivate(*args): return _freeswitch.CoreSession_getPrivate(*args)
</span></span></pre></div>
<a id="freeswitchtrunksrcmodlanguagesmod_pythonmod_python_wrapcpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/languages/mod_python/mod_python_wrap.cpp (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/languages/mod_python/mod_python_wrap.cpp        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/mod/languages/mod_python/mod_python_wrap.cpp        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -6368,6 +6368,27 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+SWIGINTERN PyObject *_wrap_CoreSession_hangupState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+  PyObject *resultobj = 0;
+  CoreSession *arg1 = (CoreSession *) 0 ;
+  void *argp1 = 0 ;
+  int res1 = 0 ;
+  PyObject * obj0 = 0 ;
+  
+  if (!PyArg_ParseTuple(args,(char *)&quot;O:CoreSession_hangupState&quot;,&amp;obj0)) SWIG_fail;
+  res1 = SWIG_ConvertPtr(obj0, &amp;argp1,SWIGTYPE_p_CoreSession, 0 |  0 );
+  if (!SWIG_IsOK(res1)) {
+    SWIG_exception_fail(SWIG_ArgError(res1), &quot;in method '&quot; &quot;CoreSession_hangupState&quot; &quot;', argument &quot; &quot;1&quot;&quot; of type '&quot; &quot;CoreSession *&quot;&quot;'&quot;); 
+  }
+  arg1 = reinterpret_cast&lt; CoreSession * &gt;(argp1);
+  (arg1)-&gt;hangupState();
+  resultobj = SWIG_Py_Void();
+  return resultobj;
+fail:
+  return NULL;
+}
+
+
</ins><span class="cx"> SWIGINTERN PyObject *_wrap_CoreSession_setVariable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
</span><span class="cx">   PyObject *resultobj = 0;
</span><span class="cx">   CoreSession *arg1 = (CoreSession *) 0 ;
</span><span class="lines">@@ -10419,6 +10440,7 @@
</span><span class="cx">          { (char *)&quot;CoreSession_answer&quot;, _wrap_CoreSession_answer, METH_VARARGS, NULL},
</span><span class="cx">          { (char *)&quot;CoreSession_preAnswer&quot;, _wrap_CoreSession_preAnswer, METH_VARARGS, NULL},
</span><span class="cx">          { (char *)&quot;CoreSession_hangup&quot;, _wrap_CoreSession_hangup, METH_VARARGS, NULL},
</span><ins>+         { (char *)&quot;CoreSession_hangupState&quot;, _wrap_CoreSession_hangupState, METH_VARARGS, NULL},
</ins><span class="cx">          { (char *)&quot;CoreSession_setVariable&quot;, _wrap_CoreSession_setVariable, METH_VARARGS, NULL},
</span><span class="cx">          { (char *)&quot;CoreSession_setPrivate&quot;, _wrap_CoreSession_setPrivate, METH_VARARGS, NULL},
</span><span class="cx">          { (char *)&quot;CoreSession_getPrivate&quot;, _wrap_CoreSession_getPrivate, METH_VARARGS, NULL},
</span></span></pre></div>
<a id="freeswitchtrunksrcswitch_cppcpp"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/switch_cpp.cpp (15360 => 15361)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/switch_cpp.cpp        2009-11-04 23:30:40 UTC (rev 15360)
+++ freeswitch/trunk/src/switch_cpp.cpp        2009-11-04 23:58:26 UTC (rev 15361)
</span><span class="lines">@@ -564,6 +564,14 @@
</span><span class="cx">     return status == SWITCH_STATUS_SUCCESS ? 1 : 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+SWITCH_DECLARE(void) CoreSession::hangupState(void)
+{
+        sanity_check_noreturn;        
+        this-&gt;begin_allow_threads();
+        switch_core_session_hangup_state(session);
+        this-&gt;end_allow_threads();
+}
+
</ins><span class="cx"> SWITCH_DECLARE(void) CoreSession::hangup(const char *cause)
</span><span class="cx"> {
</span><span class="cx">         this_check_void();
</span></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>