When the ast_device_state() function is called to retrieve device state, and