Would this actually be correct for an ongoing call? Seems like you'd need to get the start time and subtract it from the current time instead.

sparql will be going away, too. Is using the database necessary, as opposed to getting information on the active call(s) directly? That's part of why I'd suggest voicecall-manager.