<div dir="ltr">Hello,<div><br></div><div>Need some help regarding session state validation.</div><div><br></div><div>In documentation I see this:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><h4 style="color:rgb(0,0,0);margin:0px 0px 0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none;font-size:14.8480014801025px;font-family:sans-serif;line-height:19.2000007629395px;background-image:none;background-repeat:initial"><span class="" id="session:ready">session:ready</span></h4></div><div><p style="margin:0.4em 0px 0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px">- checks whether the session is still active (true anytime between call starts and hangup)</p></div><div><p style="margin:0.4em 0px 0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px">- also session:ready will return false if the call is being transferred. Bottom line is you should always be checking session:ready on any loops and periodically throughout your script and exit asap if it returns false.</p></div></blockquote><div><p style="margin:0.4em 0px 0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)"><br></span></p><p style="margin:0.4em 0px 0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><span style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)">My experience is that after transfer the return value of session:ready() is is not consistent - what is the correct way to check session state in that case?</span></p></div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Thanks</div><div><br></div>Zvi Agmon<div><a href="http://www.lexifone.com/" target="_blank">Lexifone</a><br></div><div>email: <a href="mailto:zvi@lexifone.com" target="_blank">zvi@lexifone.com</a></div><div>Office: +972-4-6817711</div><div>Cell: +972-54-4505109</div></div></div></div>
</div></div>