A school wants a room device to show a short survey the moment a call disconnects. An engineer suggests polling the People API for a user list on a timer. What should run on the device instead?
Select an answer to reveal the explanation.
Short Explanation
A doorbell rings when someone is at the door, not when you flip through a staff directory. You want a device macro that listens for the call-disconnect xAPI event and then shows the survey. A People API user list does not fire when the call ends.
Full Explanation
A macro is JavaScript that runs on the device and can subscribe to xAPI events, so a call-disconnect event is the signal that should display the survey on that room device. The People API request that lists users returns directory records from the cloud and does not run when a call ends, so a timer poll of that list never learns that the call dropped. A messaging webhook in the cloud reacts to space posts and does not execute on the room device, which means it cannot paint a survey on the codec at disconnect. A Directory Connector sync copies Active Directory users into the organization and does not observe a call disconnect, because directory sync is not a device event stream. Exam caveat: Control Hub can distribute macros when the organization allows it, but distribution still depends on the macro runtime on the device and on an xAPI event, not on a user-list API. Operational check: place a test call to the school room device, hang up, and confirm the macro log shows the disconnect event before the survey appears.