Seems alright to me. You may add another condition "where status = 'INACTIVE' "

last_call_et is the number of seconds since the session was last active.

Sanjay