<div dir="ltr">Hello, I'm trying to detect if a user is online within a lua script called from a chatplan. <div><br></div><div>From what I've read I should use sofia_contact in the chatplan, save the output in a custom channel variable and read the variable in my lua script. However as there is no session object active i don't see an easy way to read my custom channel variable from within my lua script.</div>
<div><br></div><div>How would you more experienced folks out there do this? I just want to know if the user is offline, so that I can send the message via other means if they are etc.</div><div><br></div><div>Thanks in advance</div>
<div><br></div><div>James</div></div>