Forum Discussion
relkniw
Oct 22, 2024Brass Contributor
Ms Graph API: Set "Busy - In a call" does not cause new calls to be rejected
Hi everybody, Although I set the Presence State to “Busy – InACall”, new incoming calls are not rejected. And yes, Busy on Busy (Busy Options) is activated. So if I have a real Teams call a new inc...
relkniw
Oct 24, 2024Brass Contributor
Nivedipa-MSFT - we are using nuget package Microsoft.Graph 5.56
Nivedipa-MSFT
Microsoft
Oct 28, 2024relkniw - We are asking about the Graph API that you are using to set the presence state to 'Busy – In a Call'. It will help us to test it on our end.
- relkniwOct 28, 2024Brass Contributor
Nivedipa-MSFT : we are using following API:
var requestBody = new SetPresencePostRequestBody
{
SessionId = Config.CurrentValue.ApplicationClient.Id,
Availability = "Busy",
Activity = "InACall",
ExpirationDuration = XmlConvert.ToTimeSpan(Config.CurrentValue.PresenceSettings.ExpirationDuration),
};
await graphAppClient.Users[pUserPrincipalNameOrId].Presence
.SetPresence
.PostAsync(requestBody);