<span class="Apple-style-span" style="color: rgb(255, 0, 0);"><span class="Apple-style-span" style="font-weight: bold;">Hi,</span></span><div><span class="Apple-style-span" style="color: rgb(255, 0, 0);"><span class="Apple-style-span" style="font-weight: bold;"><br>
</span></span></div><div><span class="Apple-style-span" style="color: rgb(255, 0, 0);"><span class="Apple-style-span" style="font-weight: bold;">     One thing i forget to tell i can able to get this </span></span><span class="Apple-style-span" style="font-weight: bold;">Disconnection cause</span><span class="Apple-style-span" style="color: rgb(255, 0, 0);"><span class="Apple-style-span" style="font-weight: bold;"> and </span></span><span class="Apple-style-span" style="font-weight: bold;">Disconnection code</span><span class="Apple-style-span" style="color: rgb(255, 0, 0);"><span class="Apple-style-span" style="font-weight: bold;"> in Freeswitch console but when i set in the variable i did not get the cause or cause code in javascript.</span></span></div>
<div><br></div><div><span class="Apple-style-span" style="font-weight: bold;">I use these line in Javascript i get the output in the Freeswitch console.</span></div><div><br></div><div><div><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="color: rgb(51, 51, 255);">console_log(&quot;notice&quot;, &quot;Disconnect cause: &quot; + session.cause + &quot;\n&quot;);</span></span></div>
<div><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="color: rgb(51, 51, 255);">console_log(&quot;notice&quot;, &quot;Disconnect cause: &quot; + session.causecode + &quot;\n&quot;);</span></span></div>
<div><br></div><div><span class="Apple-style-span" style="font-weight: bold;">OUTPUT: (For the Above line)</span></div><div><br></div><div><div><span class="Apple-style-span" style="color: rgb(204, 0, 0);"><span class="Apple-style-span" style="font-weight: bold;">2009-02-26 18:08:57 [NOTICE] odbc1.js:1 console_log() Disconnect cause: <span class="Apple-style-span" style="color: rgb(0, 0, 0);">NORMAL_CLEARING</span></span></span></div>
<div><span class="Apple-style-span" style="color: rgb(204, 0, 0);"><span class="Apple-style-span" style="font-weight: bold;">2009-02-26 18:08:57 [NOTICE] odbc1.js:1 console_log() Disconnect cause: <span class="Apple-style-span" style="color: rgb(0, 0, 0);">16</span></span></span></div>
<div><br></div></div><div><span class="Apple-style-span" style="font-weight: bold;">But same session cause and code if i set in the variable i did not get output</span></div><div><br></div><div><div><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="color: rgb(51, 51, 255);">session.setVariable(&quot;session.causecode&quot;, &quot;discause: &quot; + session.causecode+ &quot;\n);</span></span></div>
<div><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="color: rgb(51, 51, 255);">session.setVariable(&quot;notice&quot;, &quot;Disconnect cause: &quot; + session.cause + &quot;\n&quot;);</span></span></div>
<div><br></div></div></div><div><span class="Apple-style-span" style="font-weight: bold;">OUTPUT:</span></div><div><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="color: rgb(255, 0, 0);"><br>
</span></span></div><div><div><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="color: rgb(255, 0, 0);">variable_session.causecode: </span>[discause: 0]</span></div><div><span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="color: rgb(255, 0, 0);">variable_notice: </span>[Disconnect cause: NONE]</span></div>
<div><span class="Apple-style-span" style="font-weight: bold;"><br></span></div><div><span class="Apple-style-span" style="font-weight: bold;">Correct me where i am wrong how can i get the disconnection cause in variable.</span></div>
<div><span class="Apple-style-span" style="font-weight: bold;"><br></span></div><div><span class="Apple-style-span" style="font-weight: bold;">Please help to solve the problem.</span></div></div><div><br></div><div><br></div>
<div><br><span class="Apple-style-span" style="font-weight: bold;">-- <br>Warm Regards,<br>N.Baskar<br></span><br>
</div>