Sep 14 2021 01:40 AM
Hi everyone, we have two issues with MS Graph setPresence:
1. Every time I do api call with a valid availability/activity, I get 200 OK but I don’t see the status actually changing in the Teams App. What’s funny, I can see it being changed if I am logged as another user and just observe the user I change the status for. The status updates only when I restart teams app.
2. Although I set the Presence State to “Busy – InACall”, incoming calls are not rejected. And yes, Busy on Busy (Busy Options) is activated. So if I have a real Teams call a new incoming call is rejected.
Any ideas how to resolve these two issues?
Thanks.
Sep 16 2021 09:12 AM - edited Sep 17 2021 12:11 AM
@relkniw - We tried to repro the issue. For 1st issue We see the status is getting updated right away without restarting the app. Could you please share the request and response headers for the request where you see the status is not getting updated? Please make sure you have removed any PII. We are looking into 2nd issue.
Sep 17 2021 03:08 AM
@Meghana-MSFT- We are using the nuget Microsoft.Graph SDK with c# in VisualStudio. What is the best way to see the request and response headers?
Sep 17 2021 05:28 AM - edited Sep 17 2021 05:46 AM
As described here https://docs.microsoft.com/en-us/graph/api/presence-setpresence:
Important
Provide the ID of the application as sessionId in the request.
Sep 22 2021 06:44 AM
@relkniw -
1. Please put a debugger at catch block and look for the message. You will find the request-ids in it.
try{
await graphClient.Users["{user-id}"].Presence
.SetPresence(sessionId,availability,activity,expirationDuration)
.Request()
.PostAsync();
}
catch(Exception e)
{
Console.WriteLine(e.Message);
}
2. For the 2nd issue, we tried in below ways
Could you please try and confirm what is happening in your case? By real Teams call do you mean an actual call between 2 people?
Thanks,
--------------------------------------------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
Sep 22 2021 11:44 PM
2. Yes I mean a Call between two people. Have you configured the "Busy on busy when in a call" as "Enabled". You find that setting in the Teams Admin -> Voice -> Calling policies -> Global.
If this is configured, a new incomming call will be rejected if 2 people were in actual Teams call. But not if the Presence State is set to "Busy – InACall".
Sep 23 2021 01:17 AM
Sep 23 2021 08:18 AM
@relkniw -
2. We were able to repro the issue, We are checking it internally. we will let you know.
Sep 28 2021 04:03 AM
1. We do not get an exception.
The Problem is:
- Call SetPresence with Busy - InACall for Gerd Winkler via MS Garph API
- My Status in the header of my MS Teams Client will not change:
- But my status in the contact list of another MS Teams client will change immediately:
Sep 30 2021 04:23 AM
Thanks,
--------------------------------------------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
Nov 08 2021 11:42 PM
Nov 09 2021 10:42 PM
Nov 12 2021 07:26 AM
Jan 21 2022 02:42 AM - edited Jan 21 2022 02:43 AM
Hi Meghana,
any news regarding my 2. issue "When the Presence State is set to "Busy – InACall", a new incoming call is not rejected"?
Regards
Gerd
Feb 10 2022 02:57 AM
@relkniw - @relkniw - We got an update from the engineering team regarding the second issue. This status is not for the purpose to block call, its just for display purpose. You can suggest this feature on Microsoft Uservoice.
Feb 10 2022 11:33 PM - edited Feb 10 2022 11:34 PM
Feb 22 2024 10:27 PM
Feb 22 2024 11:44 PM