Description
We plan to integrate our user presence status into several third-party and custom applications. One limitation we’ve come across is that incoming and outgoing calls via a provisioned desk phone do not update the user’s presence status to ‘On Phone Call’ like it does when calling via the client app. However, there appears to be a way to build this integration utilizing the webhooks and APIs. The phone.caller_connected
and phone.caller_ended
webhooks do trigger when calls are made from the desk phone. So one thought is to subscribe to the necessary phone events and then PUT /users/{userId}/presence_status
when triggered. It appears this API call does not support the ‘On Phone Call’ status so the best we can do is change the status to Away or Do Not Disturb.
Before heading down this road does anyone know if native integration exists and if not are there any better suggestions for accomplishing this? Our desk phones are Yealink Model: SIP-T54W.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth, Webhook
Which Endpoint/s?
/users/{userId}/presence_status