diff --git a/sdk/communication/azure-communication-callautomation/assets.json b/sdk/communication/azure-communication-callautomation/assets.json index 9b09002cae9ec..f9b4280a9b17e 100644 --- a/sdk/communication/azure-communication-callautomation/assets.json +++ b/sdk/communication/azure-communication-callautomation/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/communication/azure-communication-callautomation", - "Tag": "java/communication/azure-communication-callautomation_768622e9b4" + "Tag": "java/communication/azure-communication-callautomation_8eed475b32" } \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/src/test/resources/interruptAudioAndAnnounceToholdParticipantInACallTest.json b/sdk/communication/azure-communication-callautomation/src/test/resources/interruptAudioAndAnnounceToholdParticipantInACallTest.json new file mode 100644 index 0000000000000..7e306b4fa3743 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/src/test/resources/interruptAudioAndAnnounceToholdParticipantInACallTest.json @@ -0,0 +1 @@ +["{\"to\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"from\":{\"kind\":\"communicationUser\",\"rawId\":\"REDACTED\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"serverCallId\":\"REDACTED\",\"callerDisplayName\":\"\",\"incomingCallContext\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\"}","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2a002280-735b-49f6-9b04-f3e34728ad19\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"2a002280-735b-49f6-9b04-f3e34728ad19\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2024-12-20T18:25:09.7605863\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2a002280-735b-49f6-9b04-f3e34728ad19\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2a002280-735b-49f6-9b04-f3e34728ad19\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"2a002280-735b-49f6-9b04-f3e34728ad19\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2024-12-20T18:25:09.7195532\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2a002280-735b-49f6-9b04-f3e34728ad19\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":1,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2024-12-20T18:25:09.7195532\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"type\":\"Microsoft.Communication.CallConnected\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"callConnectionId\":\"2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\",\"publicEventType\":\"Microsoft.Communication.CallConnected\"},\"time\":\"2024-12-20T18:25:09.836015\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2024-12-20T18:25:15.741316\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2a002280-735b-49f6-9b04-f3e34728ad19\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":true}],\"sequenceNumber\":3,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"2a002280-735b-49f6-9b04-f3e34728ad19\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2024-12-20T18:25:15.741316\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2a002280-735b-49f6-9b04-f3e34728ad19\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"type\":\"Microsoft.Communication.PlayStarted\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"Action completed successfully.\"},\"callConnectionId\":\"2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\",\"publicEventType\":\"Microsoft.Communication.PlayStarted\"},\"time\":\"2024-12-20T18:25:21.4972602\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"type\":\"Microsoft.Communication.PlayCanceled\",\"data\":{\"version\":\"2024-09-01-preview\",\"resultInformation\":{\"code\":400,\"subCode\":8508,\"message\":\"Action falied, the operation was cancelled.\"},\"callConnectionId\":\"2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\",\"publicEventType\":\"Microsoft.Communication.PlayCanceled\"},\"time\":\"2024-12-20T18:25:24.4389091\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2a002280-735b-49f6-9b04-f3e34728ad19\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"2a002280-735b-49f6-9b04-f3e34728ad19\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2024-12-20T18:25:24.5361406\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2a002280-735b-49f6-9b04-f3e34728ad19\"}]","[{\"id\":\"REDACTED\",\"source\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"type\":\"Microsoft.Communication.ParticipantsUpdated\",\"data\":{\"participants\":[{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false},{\"identifier\":{\"rawId\":\"REDACTED\",\"kind\":\"communicationUser\",\"communicationUser\":{\"id\":\"REDACTED\"}},\"isMuted\":false,\"isOnHold\":false}],\"sequenceNumber\":5,\"resultInformation\":{\"code\":200,\"subCode\":0,\"message\":\"\"},\"version\":\"2024-09-01-preview\",\"callConnectionId\":\"2a002280-ba93-4255-9f16-c3f0d32cbebb\",\"serverCallId\":\"REDACTED\",\"correlationId\":\"bef88182-f4f9-4cb8-9a94-7c58ede238b1\",\"publicEventType\":\"Microsoft.Communication.ParticipantsUpdated\"},\"time\":\"2024-12-20T18:25:24.5361406\\u002B00:00\",\"specversion\":\"1.0\",\"datacontenttype\":\"application/json\",\"subject\":\"calling/callConnections/2a002280-ba93-4255-9f16-c3f0d32cbebb\"}]"] \ No newline at end of file