<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">in jquery.verto.js:<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">        </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 166, 179);" class="">if</span><span style="font-variant-ligatures: no-common-ligatures;" class=""> (verto.options.sessid) {                                                                                                                              </span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">            verto.sessid = verto.options.sessid;                                                                                                                 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">        } </span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 166, 179);" class="">else</span><span style="font-variant-ligatures: no-common-ligatures;" class=""> {                                                                                                                                                 </span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">            verto.sessid = localStorage.getItem(</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(153, 153, 0);" class="">"verto_session_uuid"</span><span style="font-variant-ligatures: no-common-ligatures;" class="">) || generateGUID();                                                                         </span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">            localStorage.setItem(</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(153, 153, 0);" class="">"verto_session_uuid"</span><span style="font-variant-ligatures: no-common-ligatures;" class="">, verto.sessid);                                                                                            </span></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: Monaco; color: rgb(191, 191, 191); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">        }                                                                                                                                                        </span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><br class=""></span></div></div><div><br class=""><blockquote type="cite" class=""><div class="">On May 29, 2018, at 5:06 PM, Rick Jarvis <<a href="mailto:rick@magicmail.mooo.com" class="">rick@magicmail.mooo.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Thanks Mike. I wonder how a key/value store can report the correct state in that case? I realise this is beyond the scope of general Freeswitch stuff and more in the depths of coding, but if anyone has tackled this I'd love any pointers. I've looked through the Verto Communicator source and it didn't clue me up exactly (probably partly cos it's in Angular which I have no knowledge of)....<br class=""><br class=""><br class="">On 29/05/2018 19:59, Michael Jerris wrote:<br class=""><blockquote type="cite" class="">verto communicator stuffs the session id down in local storage for this.<br class=""><br class=""><br class=""><blockquote type="cite" class="">On May 29, 2018, at 2:29 PM, Rick Jarvis <<a href="mailto:rick@magicmail.mooo.com" class="">rick@magicmail.mooo.com</a>> wrote:<br class=""><br class="">My Verto app currently checks:<br class=""><br class="">     vertoHandle (to see if Verto has been initialised<br class="">     currentCall.state.name (to see if a call is connected)<br class=""><br class="">The problem with this of course is that if the browser is refreshed, those variables are lost and my app is assuming it needs to reconnect (which often, due to the magic of Verto, it doesn't actually need to).<br class=""><br class="">So my question is how best to check the session (and call) states? Would, say, loading those variables into the browser's localstorage be a good method, or is there a better way of querying the current sates?<br class=""><br class=""></blockquote></blockquote></div></div></blockquote></div><br class=""></body></html>