Description
Library name and version
Azure.Communication.CallAutomation 1.1.0
Describe the bug
When adding another participant to a call, mid call, an incorrect event is being sent to the application if the person does not accept the call.
If the person accepts the call the ParticipantsUpdated
and AddParticipantSucceeded
is being sent correctly.
But if the person declines the call no AddParticipantFailed
event are sent and the ParticipantsUpdated
event shows the two phone numbers and the ACS instance in the call, when in fact there are only one person and the ACS instance in the call.
Expected behavior
Expected an AddParticipantFailed
event and that the ParticipantsUpdated
event shows corret amount of members in the call.(one person and the ACS instance)
Actual behavior
Sends AddParticipantSucceeded
event and the ParticipantsUpdated
event shows two persons and the ACS instance
Reproduction Steps
- Start call to ACS.
- Add another person to the call.
- Second person declines call.
var callerIdNumber = new PhoneNumberIdentifier("+4512345678");
var addThisPerson = new CallInvite(new PhoneNumberIdentifier("+4587654321"), callerIdNumber);
var addParticipantOptions = new AddParticipantOptions(addThisPerson);
await _callAutomationClient.GetCallConnection(callConnectionId)
.AddParticipantAsync(addParticipantOptions);
Environment
Azure Communication Service
Danish phone number (+45)
Event Grid System Topic (Microsoft.Communication.IncomingCall)
Event Subscription (webhook)
REST API with .NET 6