When you say call state, do you mean something like "ringing" or "answered"?<br>-MC<br><br><div class="gmail_quote">On Thu, Aug 27, 2009 at 3:23 AM, delianSPAM <span dir="ltr"><<a href="mailto:delianspam@gmail.com">delianspam@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="BG">
<div>
<p><span lang="EN-US">Hello Everybody!</span></p>
<p><span lang="EN-US"> </span></p>
<p><span lang="EN-US">How do you get the call state in Python?</span></p>
<p><span lang="EN-US"> </span></p>
<p><span lang="EN-US">I have tried:</span></p>
<p><span lang="EN-US">…</span></p>
<p>session.answer()</p>
<p>state_result=str(session.getVariable("state"))</p>
<p>console_log("debug",state_result)<span lang="EN-US"></span></p>
<p><span lang="EN-US">…</span></p>
<p><span lang="EN-US"> </span></p>
<p><span lang="EN-US">But it returns: “None”</span></p>
<p> </p>
<p><span lang="EN-US">Thank you!</span></p>
<p><span lang="EN-US"> </span></p>
<p><span lang="EN-US">Best Regards, Delian Tashev</span></p>
</div>
</div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>