Forum Discussion
MS Graph setPresence problems
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
- When 2 people were in actual Teams call, a new incoming call is not rejected.
- When the Presence State is set to "Busy – InACall", a new incoming call is not rejected.
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.
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".