From fefc834438601b09d765bfb66f021b12d2133eac Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Tue, 6 May 2025 01:11:42 -0700 Subject: [PATCH 01/23] updating ga5 version --- .../communication/callautomation/__init__.py | 16 +- .../callautomation/_api_versions.py | 8 +- .../callautomation/_call_automation_client.py | 167 +- .../callautomation/_call_connection_client.py | 93 +- .../callautomation/_content_downloader.py | 2 +- .../_credential/call_automation_policy.py | 8 +- .../callautomation/_generated/_client.py | 11 +- .../_generated/_configuration.py | 6 +- .../_generated/_utils/__init__.py | 6 + .../serialization.py} | 28 +- .../{_vendor.py => _utils/utils.py} | 16 +- .../callautomation/_generated/aio/_client.py | 11 +- .../_generated/aio/_configuration.py | 6 +- .../callautomation/_generated/aio/_vendor.py | 25 - .../_generated/aio/operations/__init__.py | 2 - .../_generated/aio/operations/_operations.py | 1142 ++------ .../_generated/models/__init__.py | 82 +- .../_generated/models/_enums.py | 84 +- .../_generated/models/_models.py | 2518 +++-------------- .../_generated/operations/__init__.py | 2 - .../_generated/operations/_operations.py | 1513 +++------- .../communication/callautomation/_models.py | 55 +- .../aio/_call_automation_client_async.py | 135 +- .../aio/_call_connection_client_async.py | 62 +- .../aio/_content_downloader_async.py | 2 +- .../swagger/SWAGGER.md | 4 +- .../tests/test_call_media_client.py | 80 +- .../tests/test_callautomation_client.py | 47 - .../tests/test_e2e_media_client.py | 95 +- 29 files changed, 1083 insertions(+), 5143 deletions(-) create mode 100644 sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_utils/__init__.py rename sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/{_serialization.py => _utils/serialization.py} (98%) rename sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/{_vendor.py => _utils/utils.py} (60%) delete mode 100644 sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_vendor.py diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py index 392b05b4502d..27c239188895 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py @@ -43,12 +43,12 @@ RecordingContent, RecordingChannel, RecordingFormat, + RecordingKind, RecordingStorageKind, RecognizeInputType, MediaStreamingAudioChannelType, MediaStreamingContentType, - MediaStreamingTransportType, - TranscriptionTransportType, + StreamingTransportType, DtmfTone, CallConnectionState, RecordingState, @@ -97,12 +97,12 @@ "RecordingContent", "RecordingChannel", "RecordingFormat", + "RecordingKind", "RecordingStorageKind", "RecognizeInputType", "MediaStreamingAudioChannelType", "MediaStreamingContentType", - "MediaStreamingTransportType", - "TranscriptionTransportType", + "StreamingTransportType", "DtmfTone", "CallConnectionState", "RecordingState", @@ -137,6 +137,14 @@ def __getattr__(name): from ._models import ServerCallLocator return ServerCallLocator + if name == "RoomCallLocator": + warnings.warn( + "RoomCallLocator is deprecated and should not be used. Please pass in 'room_id' directly.", + DeprecationWarning, + ) + from ._models import RoomCallLocator + + return RoomCallLocator if name == "MicrosoftBotIdentifier": warnings.warn( f"{name} is deprecated and should not be used. Please use 'MicrosoftTeamsAppIdentifier' instead.", diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py index 7be0c3c6c50b..e6012c5e5b03 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py @@ -9,13 +9,9 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): V2023_03_06 = "2023-03-06" - V2023_06_15_PREVIEW = "2023-06-15-preview" V2023_10_15 = "2023-10-15" - V2023_10_03_PREVIEW = "2023-10-03-preview" V2024_04_15 = "2024-04-15" - V2024_06_15_PREVIEW = "2024-06-15-preview" V2024_09_15 = "2024-09-15" - V2024_11_15_PREVIEW = "2024-11-15-preview" - V2024_09_01_PREVIEW = "2024-09-01-preview" + V2025_05_15 = "2025-05-15" -DEFAULT_VERSION = ApiVersion.V2024_09_01_PREVIEW.value +DEFAULT_VERSION = ApiVersion.V2025_05_15.value diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py index bf03cb267b20..3fdce47abf0d 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from typing import List, Union, Optional, TYPE_CHECKING, Iterable, overload, Dict +from typing import List, Union, Optional, TYPE_CHECKING, Iterable, overload from urllib.parse import urlparse import warnings @@ -15,8 +15,6 @@ from ._generated._client import AzureCommunicationCallAutomationService from ._shared.auth_policy_utils import get_authentication_policy from ._shared.utils import parse_connection_str -from ._credential.call_automation_auth_policy_utils import get_call_automation_auth_policy -from ._credential.credential_utils import get_custom_enabled, get_custom_url from ._generated.models import ( CreateCallRequest, AnswerCallRequest, @@ -24,7 +22,6 @@ RejectCallRequest, StartCallRecordingRequest, CallIntelligenceOptions, - CustomCallingContext, ConnectRequest ) from ._models import ( @@ -41,7 +38,6 @@ serialize_phone_identifier, serialize_identifier, serialize_communication_user_identifier, - serialize_msft_teams_app_identifier, build_call_locator, process_repeatability_first_sent, ) @@ -62,7 +58,6 @@ CommunicationIdentifier, CommunicationUserIdentifier, PhoneNumberIdentifier, - MicrosoftTeamsAppIdentifier, ) from ._generated.models._enums import ( CallRejectReason, @@ -112,26 +107,14 @@ def __init__( if not parsed_url.netloc: raise ValueError(f"Invalid URL: {format(endpoint)}") - custom_enabled = get_custom_enabled() - custom_url = get_custom_url() - if custom_enabled and custom_url is not None: - self._client = AzureCommunicationCallAutomationService( - custom_url, - credential, - api_version=api_version or DEFAULT_VERSION, - authentication_policy=get_call_automation_auth_policy(custom_url, credential, acs_url=endpoint), - sdk_moniker=SDK_MONIKER, - **kwargs, - ) - else: - self._client = AzureCommunicationCallAutomationService( - endpoint, - credential, - api_version=api_version or DEFAULT_VERSION, - authentication_policy=get_authentication_policy(endpoint, credential), - sdk_moniker=SDK_MONIKER, - **kwargs, - ) + self._client = AzureCommunicationCallAutomationService( + endpoint, + credential, + api_version=api_version or DEFAULT_VERSION, + authentication_policy=get_authentication_policy(endpoint, credential), + sdk_moniker=SDK_MONIKER, + **kwargs, + ) self._call_recording_client = self._client.call_recording self._downloader = ContentDownloader(self._call_recording_client) @@ -174,7 +157,6 @@ def connect_call( *, server_call_id: str, cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint:Optional[str] = None, operation_context: Optional[str] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, @@ -189,9 +171,6 @@ def connect_call( :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str or None - :keyword backup_cognitive_services_endpoint: - The identifier of the Backup Cognitive Service resource assigned to this call. - :paramtype backup_cognitive_services_endpoint: str or None :keyword operation_context: Value that can be used to track the call and its associated events. :paramtype operation_context: str or None :keyword media_streaming: Media Streaming Options. @@ -212,7 +191,6 @@ def connect_call( *, group_call_id: str, cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint:Optional[str] = None, operation_context: Optional[str] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, @@ -227,9 +205,6 @@ def connect_call( :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str or None - :keyword backup_cognitive_services_endpoint: - The identifier of the Backup Cognitive Service resource assigned to this call. - :paramtype backup_cognitive_services_endpoint: str or None :keyword operation_context: Value that can be used to track the call and its associated events. :paramtype operation_context: str or None :keyword media_streaming: Media Streaming Options. @@ -250,7 +225,6 @@ def connect_call( *, room_id: str, cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint:Optional[str] = None, operation_context: Optional[str] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, @@ -265,9 +239,6 @@ def connect_call( :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str or None - :keyword backup_cognitive_services_endpoint: - The identifier of the Backup Cognitive Service resource assigned to this call. - :paramtype backup_cognitive_services_endpoint: str or None :keyword operation_context: Value that can be used to track the call and its associated events. :paramtype operation_context: str or None :keyword media_streaming: Media Streaming Options. @@ -289,10 +260,8 @@ def connect_call( ) -> CallConnectionProperties: cognitive_services_endpoint=kwargs.pop("cognitive_services_endpoint", None) - backup_cognitive_services_endpoint=kwargs.pop("backup_cognitive_services_endpoint", None) call_intelligence_options = CallIntelligenceOptions( cognitive_services_endpoint=cognitive_services_endpoint, - backup_cognitive_services_endpoint=backup_cognitive_services_endpoint ) if cognitive_services_endpoint else None media_streaming_options : Optional[MediaStreamingOptions] = None @@ -332,12 +301,8 @@ def create_call( source_display_name: Optional[str] = None, operation_context: Optional[str] = None, cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint:Optional[str] = None, - sip_headers: Optional[Dict[str, str]] = None, - voip_headers: Optional[Dict[str, str]] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, - teams_app_source: Optional['MicrosoftTeamsAppIdentifier'] = None, **kwargs ) -> CallConnectionProperties: """Create a call connection request to a target identity. @@ -358,23 +323,12 @@ def create_call( :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str or None - :keyword backup_cognitive_services_endpoint: - The identifier of the Backup Cognitive Service resource assigned to this call. - :paramtype backup_cognitive_services_endpoint: str or None - :keyword sip_headers: Sip Headers for PSTN Call - :paramtype sip_headers: Dict[str, str] or None - :keyword voip_headers: Voip Headers for Voip Call - :paramtype voip_headers: Dict[str, str] or None :keyword media_streaming: Media Streaming Options. :paramtype media_streaming: ~azure.communication.callautomation.MediaStreamingOptions or None :keyword transcription: Configuration of live transcription. :paramtype transcription: ~azure.communication.callautomation.TranscriptionOptions or None - :keyword teams_app_source: Overrides default client source by a MicrosoftTeamsAppIdentifier type source. - Required for creating call with Teams resource account ID. - This is per-operation setting and does not change the client's default source. - :paramtype teams_app_source: ~azure.communication.callautomation.MicrosoftTeamsAppIdentifier or None :return: CallConnectionProperties :rtype: ~azure.communication.callautomation.CallConnectionProperties :raises ~azure.core.exceptions.HttpResponseError: @@ -385,15 +339,9 @@ def create_call( source_display_name = source_display_name or target_participant.source_display_name target_participant = target_participant.target - user_custom_context = None - if sip_headers or voip_headers: - user_custom_context = CustomCallingContext(voip_headers=voip_headers, sip_headers=sip_headers) - call_intelligence_options = ( CallIntelligenceOptions( - cognitive_services_endpoint=cognitive_services_endpoint, - backup_cognitive_services_endpoint=backup_cognitive_services_endpoint - if backup_cognitive_services_endpoint else None + cognitive_services_endpoint=cognitive_services_endpoint ) if cognitive_services_endpoint else None @@ -411,13 +359,10 @@ def create_call( source_caller_id_number=serialize_phone_identifier(source_caller_id_number), source_display_name=source_display_name, source=serialize_communication_user_identifier(self.source), - teams_app_source=serialize_msft_teams_app_identifier(teams_app_source), operation_context=operation_context, call_intelligence_options=call_intelligence_options, media_streaming_options=media_config, - transcription_options=transcription_config, - cognitive_services_endpoint=cognitive_services_endpoint, - custom_calling_context=user_custom_context, + transcription_options=transcription_config ) process_repeatability_first_sent(kwargs) result = self._client.create_call(create_call_request=create_call_request, **kwargs) @@ -478,9 +423,6 @@ def answer_call( callback_url: str, *, cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint:Optional[str] = None, - sip_headers: Optional[Dict[str, str]] = None, - voip_headers: Optional[Dict[str, str]] = None, operation_context: Optional[str] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, @@ -497,13 +439,6 @@ def answer_call( :keyword cognitive_services_endpoint: The endpoint url of the Azure Cognitive Services resource attached. :paramtype cognitive_services_endpoint: str - :keyword backup_cognitive_services_endpoint: - The endpoint url of the Azure Backup Cognitive Services resource attached. - :paramtype backup_cognitive_services_endpoint: str - :keyword sip_headers: Sip Headers for PSTN Call - :paramtype sip_headers: Dict[str, str] or None - :keyword voip_headers: Voip Headers for Voip Call - :paramtype voip_headers: Dict[str, str] or None :keyword operation_context: The operation context. :paramtype operation_context: str :keyword media_streaming: Media Streaming Options. @@ -516,17 +451,9 @@ def answer_call( :rtype: ~azure.communication.callautomation.CallConnectionProperties :raises ~azure.core.exceptions.HttpResponseError: """ - user_custom_context = None - if sip_headers or voip_headers: - user_custom_context = CustomCallingContext( - voip_headers=voip_headers, - sip_headers=sip_headers - ) call_intelligence_options = CallIntelligenceOptions( - cognitive_services_endpoint=cognitive_services_endpoint, - backup_cognitive_services_endpoint=backup_cognitive_services_endpoint - if backup_cognitive_services_endpoint else None + cognitive_services_endpoint=cognitive_services_endpoint ) if cognitive_services_endpoint else None answer_call_request = AnswerCallRequest( @@ -539,9 +466,7 @@ def answer_call( ) if media_streaming else None, transcription_options=transcription.to_generated() if transcription else None, - cognitive_services_endpoint=cognitive_services_endpoint, - operation_context=operation_context, - custom_calling_context=user_custom_context + operation_context=operation_context ) process_repeatability_first_sent(kwargs) @@ -554,9 +479,6 @@ def redirect_call( self, incoming_call_context: str, target_participant: "CommunicationIdentifier", - *, - sip_headers: Optional[Dict[str, str]] = None, - voip_headers: Optional[Dict[str, str]] = None, **kwargs, ) -> None: """Redirect incoming call to a specific target. @@ -566,10 +488,6 @@ def redirect_call( :type incoming_call_context: str :param target_participant: The target identity to redirect the call to. :type target_participant: ~azure.communication.callautomation.CommunicationIdentifier - :keyword sip_headers: Sip Headers for PSTN Call - :paramtype sip_headers: Dict[str, str] or None - :keyword voip_headers: Voip Headers for Voip Call - :paramtype voip_headers: Dict[str, str] or None :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -578,13 +496,9 @@ def redirect_call( if isinstance(target_participant, CallInvite): target_participant = target_participant.target - user_custom_context = None - if sip_headers or voip_headers: - user_custom_context = CustomCallingContext(voip_headers=voip_headers, sip_headers=sip_headers) redirect_call_request = RedirectCallRequest( incoming_call_context=incoming_call_context, - target=serialize_identifier(target_participant), - custom_calling_context=user_custom_context, + target=serialize_identifier(target_participant) ) process_repeatability_first_sent(kwargs) self._client.redirect_call(redirect_call_request=redirect_call_request, **kwargs) @@ -768,57 +682,6 @@ def start_recording( :raises ~azure.core.exceptions.HttpResponseError: """ - @overload - def start_recording( - self, - *, - call_connection_id: str, - recording_state_callback_url: Optional[str] = None, - recording_content_type: Optional[Union[str, 'RecordingContent']] = None, - recording_channel_type: Optional[Union[str, 'RecordingChannel']] = None, - recording_format_type: Optional[Union[str, 'RecordingFormat']] = None, - audio_channel_participant_ordering: Optional[List['CommunicationIdentifier']] = None, - channel_affinity: Optional[List['ChannelAffinity']] = None, - recording_storage: Optional[Union['AzureCommunicationsRecordingStorage', - 'AzureBlobContainerRecordingStorage']] = None, - pause_on_start: Optional[bool] = None, - **kwargs - ) -> RecordingProperties: - """Start recording for a ongoing call. Locate the call with call connection id. - - :keyword str call_connection_id: Call connection ID to locate ongoing call. - :keyword recording_state_callback_url: The url to send notifications to. - :paramtype recording_state_callback_url: str or None - :keyword recording_content_type: The content type of call recording. - :paramtype recording_content_type: str or ~azure.communication.callautomation.RecordingContent or None - :keyword recording_channel_type: The channel type of call recording. - :paramtype recording_channel_type: str or ~azure.communication.callautomation.RecordingChannel or None - :keyword recording_format_type: The format type of call recording. - :paramtype recording_format_type: str or ~azure.communication.callautomation.RecordingFormat or None - :keyword audio_channel_participant_ordering: - The sequential order in which audio channels are assigned to participants in the unmixed recording. - When 'recordingChannelType' is set to 'unmixed' and `audioChannelParticipantOrdering is not specified, - the audio channel to participant mapping will be automatically assigned based on the order in - which participant first audio was detected. - Channel to participant mapping details can be found in the metadata of the recording. - :paramtype audio_channel_participant_ordering: - list[~azure.communication.callautomation.CommunicationIdentifier] or None - :keyword channel_affinity: The channel affinity of call recording - When 'recordingChannelType' is set to 'unmixed', if channelAffinity is not specified, - 'channel' will be automatically assigned. - Channel-Participant mapping details can be found in the metadata of the recording. - :paramtype channel_affinity: list[~azure.communication.callautomation.ChannelAffinity] or None - :keyword recording_storage: Defines the kind of external storage. Known values are: - ``AzureCommunicationsRecordingStorage`` and ``AzureBlobContainerRecordingStorage``. - If no storage option is provided, the default is Azure Communications recording storage. - :paramtype recording_storage: AzureCommunicationsRecordingStorage or AzureBlobContainerRecordingStorage or None - :keyword pause_on_start: The state of the pause on start option. - :paramtype pause_on_start: bool or None - :return: RecordingProperties - :rtype: ~azure.communication.callautomation.RecordingProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace def start_recording( self, @@ -836,10 +699,8 @@ def start_recording( args ) external_storage = build_external_storage(kwargs.pop("recording_storage", None)) - call_connection_id = kwargs.pop("call_connection_id", None) start_recording_request = StartCallRecordingRequest( call_locator=call_locator if call_locator else None, - call_connection_id=call_connection_id if call_connection_id else None, recording_state_callback_uri=kwargs.pop("recording_state_callback_url", None), recording_content_type=kwargs.pop("recording_content_type", None), recording_channel_type=kwargs.pop("recording_channel_type", None), diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py index 553cda6854bc..dab8956a392e 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py @@ -50,13 +50,10 @@ UnholdRequest, StartMediaStreamingRequest, StopMediaStreamingRequest, - InterruptAudioAndAnnounceRequest, ) from ._generated.models._enums import RecognizeInputType from ._shared.auth_policy_utils import get_authentication_policy from ._shared.utils import parse_connection_str -from ._credential.call_automation_auth_policy_utils import get_call_automation_auth_policy -from ._credential.credential_utils import get_custom_enabled, get_custom_url if TYPE_CHECKING: from ._call_automation_client import CallAutomationClient @@ -103,26 +100,14 @@ def __init__( if not parsed_url.netloc: raise ValueError(f"Invalid URL: {format(endpoint)}") - custom_enabled = get_custom_enabled() - custom_url = get_custom_url() - if custom_enabled and custom_url is not None: - self._client = AzureCommunicationCallAutomationService( - custom_url, - credential, - api_version=api_version or DEFAULT_VERSION, - authentication_policy=get_call_automation_auth_policy(custom_url, credential, acs_url=endpoint), - sdk_moniker=SDK_MONIKER, - **kwargs, - ) - else: - self._client = AzureCommunicationCallAutomationService( - endpoint, - credential, - api_version=api_version or DEFAULT_VERSION, - authentication_policy=get_authentication_policy(endpoint, credential), - sdk_moniker=SDK_MONIKER, - **kwargs, - ) + self._client = AzureCommunicationCallAutomationService( + endpoint, + credential, + api_version=api_version or DEFAULT_VERSION, + authentication_policy=get_authentication_policy(endpoint, credential), + sdk_moniker=SDK_MONIKER, + **kwargs, + ) else: self._client = call_automation_client @@ -384,7 +369,6 @@ def play_media( loop: bool = False, operation_context: Optional[str] = None, operation_callback_url: Optional[str] = None, - interrupt_hold_audio : bool = False, **kwargs ) -> None: """Play media to specific participant(s) in this call. @@ -408,9 +392,6 @@ def play_media( This setup is per-action. If this is not set, the default callback URL set by CreateCall/AnswerCall will be used. :paramtype operation_callback_url: str or None - :keyword interrupt_hold_audio: If set, hold audio will be interrupted, then this request will be - played, and then the hold audio will be resumed. - :paramtype interrupt_hold_audio: bool :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -514,7 +495,6 @@ def _play_media( operation_context: Optional[str] = None, operation_callback_url: Optional[str] = None, interrupt_call_media_operation: Optional[bool] = False, - interrupt_hold_audio : bool = False, **kwargs ) -> None: """Play media to specific participant(s) in this call. @@ -541,9 +521,6 @@ def _play_media( :keyword interrupt_call_media_operation: If set play can barge into other existing queued-up/currently-processing requests. :paramtype interrupt_call_media_operation: bool - :keyword interrupt_hold_audio: If set, hold audio will be interrupted, then this request will be - played, and then the hold audio will be resumed. - :paramtype interrupt_hold_audio: bool :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -558,13 +535,12 @@ def _play_media( audience = [] if play_to == "all" else [serialize_identifier(i) for i in play_to] interrupt_call_media_operation = interrupt_call_media_operation if play_to == "all" else False - interrupt_hold_audio = interrupt_hold_audio if play_to != "all" else False play_request = PlayRequest( play_sources=[play_source_single._to_generated()] if play_source_single else # pylint:disable=protected-access [source._to_generated() for source in play_sources] if play_sources else None, # pylint:disable=protected-access play_to=audience, - play_options=PlayOptions(loop=loop,interrupt_call_media_operation=interrupt_call_media_operation, - interrupt_hold_audio=interrupt_hold_audio), + play_options=PlayOptions(loop=loop), + interrupt_call_media_operation=interrupt_call_media_operation, operation_context=operation_context, operation_callback_uri=operation_callback_url, **kwargs, @@ -634,12 +610,11 @@ def start_recognizing_media( interrupt_prompt: bool = False, dtmf_inter_tone_timeout: Optional[int] = None, dtmf_max_tones_to_collect: Optional[int] = None, - dtmf_stop_tones: Optional[List[str or "DtmfTone"]] = None, + dtmf_stop_tones: Optional[List[Union[str, "DtmfTone"]]] = None, speech_language: Optional[str] = None, choices: Optional[List["RecognitionChoice"]] = None, end_silence_timeout: Optional[int] = None, speech_recognition_model_endpoint_id: Optional[str] = None, - operation_callback_url: Optional[str] = None, **kwargs, ) -> None: """Recognize inputs from specific participant in this call. @@ -762,7 +737,6 @@ def start_continuous_dtmf_recognition( target_participant: "CommunicationIdentifier", *, operation_context: Optional[str] = None, - operation_callback_url: Optional[str] = None, **kwargs, ) -> None: """Start continuous Dtmf recognition by subscribing to tones. @@ -771,11 +745,6 @@ def start_continuous_dtmf_recognition( :type target_participant: ~azure.communication.callautomation.CommunicationIdentifier :keyword operation_context: The value to identify context of the operation. :paramtype operation_context: str - :keyword operation_callback_url: Set a callback URL that overrides the default callback URL set - by CreateCall/AnswerCall for this operation. - This setup is per-action. If this is not set, the default callback URL set by - CreateCall/AnswerCall will be used. - :paramtype operation_callback_url: str or None :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -783,7 +752,6 @@ def start_continuous_dtmf_recognition( continuous_dtmf_recognition_request = ContinuousDtmfRecognitionRequest( target_participant=serialize_identifier(target_participant), operation_context=operation_context, - operation_callback_uri=operation_callback_url, ) self._call_media_client.start_continuous_dtmf_recognition( self._call_connection_id, continuous_dtmf_recognition_request, **kwargs @@ -1144,46 +1112,9 @@ def stop_media_streaming( stop_media_streaming_request=StopMediaStreamingRequest( operation_callback_uri=operation_callback_url, operation_context=operation_context - ) + ) self._call_media_client.stop_media_streaming( self._call_connection_id, stop_media_streaming_request, **kwargs - ) - - @distributed_trace - def interrupt_audio_and_announce( - self, - target_participant: "CommunicationIdentifier", - play_sources: List[Union['FileSource', 'TextSource', 'SsmlSource']], - *, - operation_context: Optional[str] = None, - **kwargs, - ) -> None: - """Interrupt audio and announce to specific participant(s) in this call. - - :param target_participant: The participant being added. - :type target_participant: ~azure.communication.callautomation.CommunicationIdentifier - :param play_sources: A PlaySource representing the source to play. - :type play_sources: list[~azure.communication.callautomation.FileSource] or - list[~azure.communication.callautomation.TextSource] or - list[~azure.communication.callautomation.SsmlSource] - :keyword operation_context: Value that can be used to track this call and its associated events. - :paramtype operation_context: str or None - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - interrupt_audio_announce_request = InterruptAudioAndAnnounceRequest( - play_sources=[source._to_generated() for source in play_sources] if play_sources else None, # pylint: disable=protected-access - play_to=serialize_identifier(target_participant), - operation_context=operation_context, - kwargs=kwargs, ) - - self._call_media_client.interrupt_audio_and_announce( - self._call_connection_id, - interrupt_audio_announce_request, - **kwargs - ) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_content_downloader.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_content_downloader.py index 9ccca1de8c41..56e4b0cb21bd 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_content_downloader.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_content_downloader.py @@ -20,7 +20,7 @@ from azure.core.utils import case_insensitive_dict from ._generated import models as _models -from ._generated._serialization import Serializer +from ._generated._utils.serialization import Serializer from ._generated.operations import CallRecordingOperations _SERIALIZER = Serializer() diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_credential/call_automation_policy.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_credential/call_automation_policy.py index 9d22627a1fae..821dbec4c3f5 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_credential/call_automation_policy.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_credential/call_automation_policy.py @@ -26,10 +26,10 @@ class CallAutomationHMACCredentialsPolicy(SansIOHTTPPolicy): def __init__( self, - host, # type: str - acs_url, # type: str - access_key, # type: Union[str, AzureKeyCredential] - decode_url=False, # type: bool + host: str, + acs_url: str, + access_key: Union[str, AzureKeyCredential], + decode_url: bool = False, ): # type: (...) -> None super(CallAutomationHMACCredentialsPolicy, self).__init__() diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_client.py index 505deb89c671..cd625700f9a8 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_client.py @@ -17,11 +17,10 @@ from . import models as _models from ._configuration import AzureCommunicationCallAutomationServiceConfiguration -from ._serialization import Deserializer, Serializer +from ._utils.serialization import Deserializer, Serializer from .operations import ( AzureCommunicationCallAutomationServiceOperationsMixin, CallConnectionOperations, - CallDialogOperations, CallMediaOperations, CallRecordingOperations, ) @@ -35,16 +34,14 @@ class AzureCommunicationCallAutomationService(AzureCommunicationCallAutomationSe azure.communication.callautomation.operations.CallConnectionOperations :ivar call_media: CallMediaOperations operations :vartype call_media: azure.communication.callautomation.operations.CallMediaOperations - :ivar call_dialog: CallDialogOperations operations - :vartype call_dialog: azure.communication.callautomation.operations.CallDialogOperations :ivar call_recording: CallRecordingOperations operations :vartype call_recording: azure.communication.callautomation.operations.CallRecordingOperations :param endpoint: The endpoint of the Azure Communication resource. Required. :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2025-05-15". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ @@ -53,6 +50,7 @@ def __init__(self, endpoint: str, credential: AzureKeyCredential, **kwargs: Any) self._config = AzureCommunicationCallAutomationServiceConfiguration( endpoint=endpoint, credential=credential, **kwargs ) + _policies = kwargs.pop("policies", None) if _policies is None: _policies = [ @@ -79,7 +77,6 @@ def __init__(self, endpoint: str, credential: AzureKeyCredential, **kwargs: Any) self._serialize.client_side_validation = False self.call_connection = CallConnectionOperations(self._client, self._config, self._serialize, self._deserialize) self.call_media = CallMediaOperations(self._client, self._config, self._serialize, self._deserialize) - self.call_dialog = CallDialogOperations(self._client, self._config, self._serialize, self._deserialize) self.call_recording = CallRecordingOperations(self._client, self._config, self._serialize, self._deserialize) def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_configuration.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_configuration.py index b56e5e4e7401..b5998820f8c3 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_configuration.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_configuration.py @@ -25,13 +25,13 @@ class AzureCommunicationCallAutomationServiceConfiguration: # pylint: disable=t :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2025-05-15". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, endpoint: str, credential: AzureKeyCredential, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2024-09-01-preview") + api_version: str = kwargs.pop("api_version", "2025-05-15") if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_utils/__init__.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_utils/__init__.py new file mode 100644 index 000000000000..0af9b28f6607 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_utils/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_serialization.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_utils/serialization.py similarity index 98% rename from sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_serialization.py rename to sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_utils/serialization.py index e2a20b1d534c..f5187701d7be 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_serialization.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_utils/serialization.py @@ -1,28 +1,10 @@ # pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 # -------------------------------------------------------------------------- -# # Copyright (c) Microsoft Corporation. All rights reserved. -# -# The MIT License (MIT) -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the ""Software""), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -# IN THE SOFTWARE. -# +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pyright: reportUnnecessaryTypeIgnoreComment=false @@ -411,7 +393,7 @@ def from_dict( :param function key_extractors: A key extractor function. :param str content_type: JSON by default, set application/xml if XML. :returns: An instance of this model - :raises: DeserializationError if something went wrong + :raises DeserializationError: if something went wrong :rtype: Self """ deserializer = Deserializer(cls._infer_class_models()) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_vendor.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_utils/utils.py similarity index 60% rename from sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_vendor.py rename to sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_utils/utils.py index 68d517dcae32..39b612f39a9b 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_vendor.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_utils/utils.py @@ -6,20 +6,20 @@ # -------------------------------------------------------------------------- from abc import ABC -from typing import TYPE_CHECKING - -from ._configuration import AzureCommunicationCallAutomationServiceConfiguration +from typing import Generic, TYPE_CHECKING, TypeVar if TYPE_CHECKING: - from azure.core import PipelineClient + from .serialization import Deserializer, Serializer + - from ._serialization import Deserializer, Serializer +TClient = TypeVar("TClient") +TConfig = TypeVar("TConfig") -class AzureCommunicationCallAutomationServiceMixinABC(ABC): # pylint: disable=name-too-long +class ClientMixinABC(ABC, Generic[TClient, TConfig]): """DO NOT use this class. It is for internal typing use only.""" - _client: "PipelineClient" - _config: AzureCommunicationCallAutomationServiceConfiguration + _client: TClient + _config: TConfig _serialize: "Serializer" _deserialize: "Deserializer" diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_client.py index 7a97e404c861..b853ba06ac5b 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_client.py @@ -16,12 +16,11 @@ from azure.core.rest import AsyncHttpResponse, HttpRequest from .. import models as _models -from .._serialization import Deserializer, Serializer +from .._utils.serialization import Deserializer, Serializer from ._configuration import AzureCommunicationCallAutomationServiceConfiguration from .operations import ( AzureCommunicationCallAutomationServiceOperationsMixin, CallConnectionOperations, - CallDialogOperations, CallMediaOperations, CallRecordingOperations, ) @@ -35,8 +34,6 @@ class AzureCommunicationCallAutomationService(AzureCommunicationCallAutomationSe azure.communication.callautomation.aio.operations.CallConnectionOperations :ivar call_media: CallMediaOperations operations :vartype call_media: azure.communication.callautomation.aio.operations.CallMediaOperations - :ivar call_dialog: CallDialogOperations operations - :vartype call_dialog: azure.communication.callautomation.aio.operations.CallDialogOperations :ivar call_recording: CallRecordingOperations operations :vartype call_recording: azure.communication.callautomation.aio.operations.CallRecordingOperations @@ -44,8 +41,8 @@ class AzureCommunicationCallAutomationService(AzureCommunicationCallAutomationSe :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2025-05-15". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ @@ -54,6 +51,7 @@ def __init__(self, endpoint: str, credential: AzureKeyCredential, **kwargs: Any) self._config = AzureCommunicationCallAutomationServiceConfiguration( endpoint=endpoint, credential=credential, **kwargs ) + _policies = kwargs.pop("policies", None) if _policies is None: _policies = [ @@ -80,7 +78,6 @@ def __init__(self, endpoint: str, credential: AzureKeyCredential, **kwargs: Any) self._serialize.client_side_validation = False self.call_connection = CallConnectionOperations(self._client, self._config, self._serialize, self._deserialize) self.call_media = CallMediaOperations(self._client, self._config, self._serialize, self._deserialize) - self.call_dialog = CallDialogOperations(self._client, self._config, self._serialize, self._deserialize) self.call_recording = CallRecordingOperations(self._client, self._config, self._serialize, self._deserialize) def send_request( diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_configuration.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_configuration.py index f7e37b71ad84..4f0f1501d894 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_configuration.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_configuration.py @@ -25,13 +25,13 @@ class AzureCommunicationCallAutomationServiceConfiguration: # pylint: disable=t :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. Default value is "2024-09-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2025-05-15". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, endpoint: str, credential: AzureKeyCredential, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2024-09-01-preview") + api_version: str = kwargs.pop("api_version", "2025-05-15") if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_vendor.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_vendor.py deleted file mode 100644 index 0af690e715fd..000000000000 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_vendor.py +++ /dev/null @@ -1,25 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from abc import ABC -from typing import TYPE_CHECKING - -from ._configuration import AzureCommunicationCallAutomationServiceConfiguration - -if TYPE_CHECKING: - from azure.core import AsyncPipelineClient - - from .._serialization import Deserializer, Serializer - - -class AzureCommunicationCallAutomationServiceMixinABC(ABC): # pylint: disable=name-too-long - """DO NOT use this class. It is for internal typing use only.""" - - _client: "AsyncPipelineClient" - _config: AzureCommunicationCallAutomationServiceConfiguration - _serialize: "Serializer" - _deserialize: "Deserializer" diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/__init__.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/__init__.py index 90a72cf9e9e9..586f5f0bf5d0 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/__init__.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/__init__.py @@ -15,7 +15,6 @@ from ._operations import AzureCommunicationCallAutomationServiceOperationsMixin # type: ignore from ._operations import CallConnectionOperations # type: ignore from ._operations import CallMediaOperations # type: ignore -from ._operations import CallDialogOperations # type: ignore from ._operations import CallRecordingOperations # type: ignore from ._patch import __all__ as _patch_all @@ -26,7 +25,6 @@ "AzureCommunicationCallAutomationServiceOperationsMixin", "CallConnectionOperations", "CallMediaOperations", - "CallDialogOperations", "CallRecordingOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py index fdc88493b1df..a1f3d2efd8de 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py @@ -6,8 +6,8 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from collections.abc import MutableMapping from io import IOBase -import sys from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse @@ -28,7 +28,8 @@ from azure.core.utils import case_insensitive_dict from ... import models as _models -from ..._serialization import Deserializer, Serializer +from ..._utils.serialization import Deserializer, Serializer +from ..._utils.utils import ClientMixinABC from ...operations._operations import ( build_azure_communication_call_automation_service_answer_call_request, build_azure_communication_call_automation_service_connect_request, @@ -45,13 +46,8 @@ build_call_connection_remove_participant_request, build_call_connection_terminate_call_request, build_call_connection_transfer_to_participant_request, - build_call_connection_unmute_request, - build_call_dialog_start_dialog_request, - build_call_dialog_stop_dialog_request, - build_call_dialog_update_dialog_request, build_call_media_cancel_all_media_operations_request, build_call_media_hold_request, - build_call_media_interrupt_audio_and_announce_request, build_call_media_play_request, build_call_media_recognize_request, build_call_media_send_dtmf_tones_request, @@ -64,25 +60,19 @@ build_call_media_unhold_request, build_call_media_update_transcription_request, build_call_recording_get_recording_properties_request, - build_call_recording_get_recording_result_request, build_call_recording_pause_recording_request, build_call_recording_resume_recording_request, build_call_recording_start_recording_request, build_call_recording_stop_recording_request, ) from .._configuration import AzureCommunicationCallAutomationServiceConfiguration -from .._vendor import AzureCommunicationCallAutomationServiceMixinABC -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class AzureCommunicationCallAutomationServiceOperationsMixin( # pylint: disable=name-too-long - AzureCommunicationCallAutomationServiceMixinABC + ClientMixinABC[AsyncPipelineClient, AzureCommunicationCallAutomationServiceConfiguration] ): @overload @@ -1024,7 +1014,7 @@ async def add_participant( :param call_connection_id: The call connection Id. Required. :type call_connection_id: str - :param add_participant_request: The add participants request. Required. + :param add_participant_request: Required. :type add_participant_request: ~azure.communication.callautomation.models.AddParticipantRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -1049,7 +1039,7 @@ async def add_participant( :param call_connection_id: The call connection Id. Required. :type call_connection_id: str - :param add_participant_request: The add participants request. Required. + :param add_participant_request: Required. :type add_participant_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -1072,8 +1062,8 @@ async def add_participant( :param call_connection_id: The call connection Id. Required. :type call_connection_id: str - :param add_participant_request: The add participants request. Is either a AddParticipantRequest - type or a IO[bytes] type. Required. + :param add_participant_request: Is either a AddParticipantRequest type or a IO[bytes] type. + Required. :type add_participant_request: ~azure.communication.callautomation.models.AddParticipantRequest or IO[bytes] :return: AddParticipantResponse @@ -1389,133 +1379,6 @@ async def mute( return deserialized # type: ignore - @overload - async def unmute( - self, - call_connection_id: str, - unmute_participants_request: _models.UnmuteParticipantsRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.UnmuteParticipantsResponse: - """Unmute participants from the call using identifier. - - Unmute participants from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param unmute_participants_request: The participants to be unmuted from the call. Required. - :type unmute_participants_request: - ~azure.communication.callautomation.models.UnmuteParticipantsRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: UnmuteParticipantsResponse - :rtype: ~azure.communication.callautomation.models.UnmuteParticipantsResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def unmute( - self, - call_connection_id: str, - unmute_participants_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.UnmuteParticipantsResponse: - """Unmute participants from the call using identifier. - - Unmute participants from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param unmute_participants_request: The participants to be unmuted from the call. Required. - :type unmute_participants_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: UnmuteParticipantsResponse - :rtype: ~azure.communication.callautomation.models.UnmuteParticipantsResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def unmute( - self, - call_connection_id: str, - unmute_participants_request: Union[_models.UnmuteParticipantsRequest, IO[bytes]], - **kwargs: Any - ) -> _models.UnmuteParticipantsResponse: - """Unmute participants from the call using identifier. - - Unmute participants from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param unmute_participants_request: The participants to be unmuted from the call. Is either a - UnmuteParticipantsRequest type or a IO[bytes] type. Required. - :type unmute_participants_request: - ~azure.communication.callautomation.models.UnmuteParticipantsRequest or IO[bytes] - :return: UnmuteParticipantsResponse - :rtype: ~azure.communication.callautomation.models.UnmuteParticipantsResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.UnmuteParticipantsResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(unmute_participants_request, (IOBase, bytes)): - _content = unmute_participants_request - else: - _json = self._serialize.body(unmute_participants_request, "UnmuteParticipantsRequest") - - _request = build_call_connection_unmute_request( - call_connection_id=call_connection_id, - content_type=content_type, - api_version=self._config.api_version, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("UnmuteParticipantsResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - @overload async def cancel_add_participant( self, @@ -2084,6 +1947,129 @@ async def stop_transcription( if cls: return cls(pipeline_response, None, {}) # type: ignore + @overload + async def update_transcription( + self, + call_connection_id: str, + update_transcription_request: _models.UpdateTranscriptionRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """UpdateTranscription Api. + + API to change transcription language. + + :param call_connection_id: The call connection id. Required. + :type call_connection_id: str + :param update_transcription_request: The UpdateTranscription request. Required. + :type update_transcription_request: + ~azure.communication.callautomation.models.UpdateTranscriptionRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update_transcription( + self, + call_connection_id: str, + update_transcription_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> None: + """UpdateTranscription Api. + + API to change transcription language. + + :param call_connection_id: The call connection id. Required. + :type call_connection_id: str + :param update_transcription_request: The UpdateTranscription request. Required. + :type update_transcription_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update_transcription( + self, + call_connection_id: str, + update_transcription_request: Union[_models.UpdateTranscriptionRequest, IO[bytes]], + **kwargs: Any + ) -> None: + """UpdateTranscription Api. + + API to change transcription language. + + :param call_connection_id: The call connection id. Required. + :type call_connection_id: str + :param update_transcription_request: The UpdateTranscription request. Is either a + UpdateTranscriptionRequest type or a IO[bytes] type. Required. + :type update_transcription_request: + ~azure.communication.callautomation.models.UpdateTranscriptionRequest or IO[bytes] + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(update_transcription_request, (IOBase, bytes)): + _content = update_transcription_request + else: + _json = self._serialize.body(update_transcription_request, "UpdateTranscriptionRequest") + + _request = build_call_media_update_transcription_request( + call_connection_id=call_connection_id, + content_type=content_type, + api_version=self._config.api_version, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + @distributed_trace_async async def cancel_all_media_operations(self, call_connection_id: str, **kwargs: Any) -> None: """Cancel all media operations in a call. @@ -2627,23 +2613,22 @@ async def send_dtmf_tones( return deserialized # type: ignore @overload - async def update_transcription( + async def hold( self, call_connection_id: str, - update_transcription_request: _models.UpdateTranscriptionRequest, + hold_request: _models.HoldRequest, *, content_type: str = "application/json", **kwargs: Any ) -> None: - """UpdateTranscription Api. + """Hold participant from the call using identifier. - API to change transcription language. + Hold participant from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param update_transcription_request: The UpdateTranscription request. Required. - :type update_transcription_request: - ~azure.communication.callautomation.models.UpdateTranscriptionRequest + :param hold_request: The participants to be hold from the call. Required. + :type hold_request: ~azure.communication.callautomation.models.HoldRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -2653,22 +2638,17 @@ async def update_transcription( """ @overload - async def update_transcription( - self, - call_connection_id: str, - update_transcription_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any + async def hold( + self, call_connection_id: str, hold_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """UpdateTranscription Api. + """Hold participant from the call using identifier. - API to change transcription language. + Hold participant from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param update_transcription_request: The UpdateTranscription request. Required. - :type update_transcription_request: IO[bytes] + :param hold_request: The participants to be hold from the call. Required. + :type hold_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str @@ -2678,499 +2658,18 @@ async def update_transcription( """ @distributed_trace_async - async def update_transcription( - self, - call_connection_id: str, - update_transcription_request: Union[_models.UpdateTranscriptionRequest, IO[bytes]], - **kwargs: Any + async def hold( + self, call_connection_id: str, hold_request: Union[_models.HoldRequest, IO[bytes]], **kwargs: Any ) -> None: - """UpdateTranscription Api. + """Hold participant from the call using identifier. - API to change transcription language. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param update_transcription_request: The UpdateTranscription request. Is either a - UpdateTranscriptionRequest type or a IO[bytes] type. Required. - :type update_transcription_request: - ~azure.communication.callautomation.models.UpdateTranscriptionRequest or IO[bytes] - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(update_transcription_request, (IOBase, bytes)): - _content = update_transcription_request - else: - _json = self._serialize.body(update_transcription_request, "UpdateTranscriptionRequest") - - _request = build_call_media_update_transcription_request( - call_connection_id=call_connection_id, - content_type=content_type, - api_version=self._config.api_version, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def hold( - self, - call_connection_id: str, - hold_request: _models.HoldRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Hold participant from the call using identifier. - - Hold participant from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param hold_request: The participants to be hold from the call. Required. - :type hold_request: ~azure.communication.callautomation.models.HoldRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def hold( - self, call_connection_id: str, hold_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Hold participant from the call using identifier. - - Hold participant from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param hold_request: The participants to be hold from the call. Required. - :type hold_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def hold( - self, call_connection_id: str, hold_request: Union[_models.HoldRequest, IO[bytes]], **kwargs: Any - ) -> None: - """Hold participant from the call using identifier. - - Hold participant from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param hold_request: The participants to be hold from the call. Is either a HoldRequest type or - a IO[bytes] type. Required. - :type hold_request: ~azure.communication.callautomation.models.HoldRequest or IO[bytes] - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(hold_request, (IOBase, bytes)): - _content = hold_request - else: - _json = self._serialize.body(hold_request, "HoldRequest") - - _request = build_call_media_hold_request( - call_connection_id=call_connection_id, - content_type=content_type, - api_version=self._config.api_version, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def unhold( - self, - call_connection_id: str, - unhold_request: _models.UnholdRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Unhold participants from the call using identifier. - - Unhold participants from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param unhold_request: The participants to be hold from the call. Required. - :type unhold_request: ~azure.communication.callautomation.models.UnholdRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def unhold( - self, - call_connection_id: str, - unhold_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Unhold participants from the call using identifier. - - Unhold participants from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param unhold_request: The participants to be hold from the call. Required. - :type unhold_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def unhold( - self, call_connection_id: str, unhold_request: Union[_models.UnholdRequest, IO[bytes]], **kwargs: Any - ) -> None: - """Unhold participants from the call using identifier. - - Unhold participants from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param unhold_request: The participants to be hold from the call. Is either a UnholdRequest - type or a IO[bytes] type. Required. - :type unhold_request: ~azure.communication.callautomation.models.UnholdRequest or IO[bytes] - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(unhold_request, (IOBase, bytes)): - _content = unhold_request - else: - _json = self._serialize.body(unhold_request, "UnholdRequest") - - _request = build_call_media_unhold_request( - call_connection_id=call_connection_id, - content_type=content_type, - api_version=self._config.api_version, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def start_media_streaming( - self, - call_connection_id: str, - start_media_streaming_request: _models.StartMediaStreamingRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Starts media streaming in the call. - - Starts media streaming in the call. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param start_media_streaming_request: Required. - :type start_media_streaming_request: - ~azure.communication.callautomation.models.StartMediaStreamingRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def start_media_streaming( - self, - call_connection_id: str, - start_media_streaming_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Starts media streaming in the call. - - Starts media streaming in the call. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param start_media_streaming_request: Required. - :type start_media_streaming_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def start_media_streaming( - self, - call_connection_id: str, - start_media_streaming_request: Union[_models.StartMediaStreamingRequest, IO[bytes]], - **kwargs: Any - ) -> None: - """Starts media streaming in the call. - - Starts media streaming in the call. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param start_media_streaming_request: Is either a StartMediaStreamingRequest type or a - IO[bytes] type. Required. - :type start_media_streaming_request: - ~azure.communication.callautomation.models.StartMediaStreamingRequest or IO[bytes] - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(start_media_streaming_request, (IOBase, bytes)): - _content = start_media_streaming_request - else: - _json = self._serialize.body(start_media_streaming_request, "StartMediaStreamingRequest") - - _request = build_call_media_start_media_streaming_request( - call_connection_id=call_connection_id, - content_type=content_type, - api_version=self._config.api_version, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def stop_media_streaming( - self, - call_connection_id: str, - stop_media_streaming_request: _models.StopMediaStreamingRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Stops media streaming in the call. - - Stops media streaming in the call. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param stop_media_streaming_request: stop media streaming request payload. Required. - :type stop_media_streaming_request: - ~azure.communication.callautomation.models.StopMediaStreamingRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def stop_media_streaming( - self, - call_connection_id: str, - stop_media_streaming_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> None: - """Stops media streaming in the call. - - Stops media streaming in the call. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param stop_media_streaming_request: stop media streaming request payload. Required. - :type stop_media_streaming_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def stop_media_streaming( - self, - call_connection_id: str, - stop_media_streaming_request: Union[_models.StopMediaStreamingRequest, IO[bytes]], - **kwargs: Any - ) -> None: - """Stops media streaming in the call. - - Stops media streaming in the call. + Hold participant from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param stop_media_streaming_request: stop media streaming request payload. Is either a - StopMediaStreamingRequest type or a IO[bytes] type. Required. - :type stop_media_streaming_request: - ~azure.communication.callautomation.models.StopMediaStreamingRequest or IO[bytes] + :param hold_request: The participants to be hold from the call. Is either a HoldRequest type or + a IO[bytes] type. Required. + :type hold_request: ~azure.communication.callautomation.models.HoldRequest or IO[bytes] :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -3192,12 +2691,12 @@ async def stop_media_streaming( content_type = content_type or "application/json" _json = None _content = None - if isinstance(stop_media_streaming_request, (IOBase, bytes)): - _content = stop_media_streaming_request + if isinstance(hold_request, (IOBase, bytes)): + _content = hold_request else: - _json = self._serialize.body(stop_media_streaming_request, "StopMediaStreamingRequest") + _json = self._serialize.body(hold_request, "HoldRequest") - _request = build_call_media_stop_media_streaming_request( + _request = build_call_media_hold_request( call_connection_id=call_connection_id, content_type=content_type, api_version=self._config.api_version, @@ -3218,7 +2717,7 @@ async def stop_media_streaming( response = pipeline_response.http_response - if response.status_code not in [202]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -3227,23 +2726,22 @@ async def stop_media_streaming( return cls(pipeline_response, None, {}) # type: ignore @overload - async def interrupt_audio_and_announce( + async def unhold( self, call_connection_id: str, - interrupt_request: _models.InterruptAudioAndAnnounceRequest, + unhold_request: _models.UnholdRequest, *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Plays audio to participants in the call. + """Unhold participants from the call using identifier. - Plays audio to participants in the call. + Unhold participants from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param interrupt_request: play request payload. Required. - :type interrupt_request: - ~azure.communication.callautomation.models.InterruptAudioAndAnnounceRequest + :param unhold_request: The participants to be hold from the call. Required. + :type unhold_request: ~azure.communication.callautomation.models.UnholdRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3253,22 +2751,22 @@ async def interrupt_audio_and_announce( """ @overload - async def interrupt_audio_and_announce( + async def unhold( self, call_connection_id: str, - interrupt_request: IO[bytes], + unhold_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Plays audio to participants in the call. + """Unhold participants from the call using identifier. - Plays audio to participants in the call. + Unhold participants from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param interrupt_request: play request payload. Required. - :type interrupt_request: IO[bytes] + :param unhold_request: The participants to be hold from the call. Required. + :type unhold_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str @@ -3278,22 +2776,18 @@ async def interrupt_audio_and_announce( """ @distributed_trace_async - async def interrupt_audio_and_announce( - self, - call_connection_id: str, - interrupt_request: Union[_models.InterruptAudioAndAnnounceRequest, IO[bytes]], - **kwargs: Any + async def unhold( + self, call_connection_id: str, unhold_request: Union[_models.UnholdRequest, IO[bytes]], **kwargs: Any ) -> None: - """Plays audio to participants in the call. + """Unhold participants from the call using identifier. - Plays audio to participants in the call. + Unhold participants from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param interrupt_request: play request payload. Is either a InterruptAudioAndAnnounceRequest + :param unhold_request: The participants to be hold from the call. Is either a UnholdRequest type or a IO[bytes] type. Required. - :type interrupt_request: - ~azure.communication.callautomation.models.InterruptAudioAndAnnounceRequest or IO[bytes] + :type unhold_request: ~azure.communication.callautomation.models.UnholdRequest or IO[bytes] :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -3315,12 +2809,12 @@ async def interrupt_audio_and_announce( content_type = content_type or "application/json" _json = None _content = None - if isinstance(interrupt_request, (IOBase, bytes)): - _content = interrupt_request + if isinstance(unhold_request, (IOBase, bytes)): + _content = unhold_request else: - _json = self._serialize.body(interrupt_request, "InterruptAudioAndAnnounceRequest") + _json = self._serialize.body(unhold_request, "UnholdRequest") - _request = build_call_media_interrupt_audio_and_announce_request( + _request = build_call_media_unhold_request( call_connection_id=call_connection_id, content_type=content_type, api_version=self._config.api_version, @@ -3341,7 +2835,7 @@ async def interrupt_audio_and_announce( response = pipeline_response.http_response - if response.status_code not in [202]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -3349,106 +2843,76 @@ async def interrupt_audio_and_announce( if cls: return cls(pipeline_response, None, {}) # type: ignore - -class CallDialogOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.communication.callautomation.aio.AzureCommunicationCallAutomationService`'s - :attr:`call_dialog` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: AzureCommunicationCallAutomationServiceConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - @overload - async def start_dialog( + async def start_media_streaming( self, call_connection_id: str, - dialog_id: str, - start_dialog_request: _models.StartDialogRequest, + start_media_streaming_request: _models.StartMediaStreamingRequest, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.DialogStateResponse: - """Start a dialog targeting a particular participant on the call. + ) -> None: + """Starts media streaming in the call. - Start a dialog. + Starts media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param start_dialog_request: The start dialog request. Required. - :type start_dialog_request: ~azure.communication.callautomation.models.StartDialogRequest + :param start_media_streaming_request: Required. + :type start_media_streaming_request: + ~azure.communication.callautomation.models.StartMediaStreamingRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: DialogStateResponse - :rtype: ~azure.communication.callautomation.models.DialogStateResponse + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ @overload - async def start_dialog( + async def start_media_streaming( self, call_connection_id: str, - dialog_id: str, - start_dialog_request: IO[bytes], + start_media_streaming_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.DialogStateResponse: - """Start a dialog targeting a particular participant on the call. + ) -> None: + """Starts media streaming in the call. - Start a dialog. + Starts media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param start_dialog_request: The start dialog request. Required. - :type start_dialog_request: IO[bytes] + :param start_media_streaming_request: Required. + :type start_media_streaming_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: DialogStateResponse - :rtype: ~azure.communication.callautomation.models.DialogStateResponse + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace_async - async def start_dialog( + async def start_media_streaming( self, call_connection_id: str, - dialog_id: str, - start_dialog_request: Union[_models.StartDialogRequest, IO[bytes]], + start_media_streaming_request: Union[_models.StartMediaStreamingRequest, IO[bytes]], **kwargs: Any - ) -> _models.DialogStateResponse: - """Start a dialog targeting a particular participant on the call. + ) -> None: + """Starts media streaming in the call. - Start a dialog. + Starts media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param start_dialog_request: The start dialog request. Is either a StartDialogRequest type or a + :param start_media_streaming_request: Is either a StartMediaStreamingRequest type or a IO[bytes] type. Required. - :type start_dialog_request: ~azure.communication.callautomation.models.StartDialogRequest or - IO[bytes] - :return: DialogStateResponse - :rtype: ~azure.communication.callautomation.models.DialogStateResponse + :type start_media_streaming_request: + ~azure.communication.callautomation.models.StartMediaStreamingRequest or IO[bytes] + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -3463,19 +2927,18 @@ async def start_dialog( _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DialogStateResponse] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(start_dialog_request, (IOBase, bytes)): - _content = start_dialog_request + if isinstance(start_media_streaming_request, (IOBase, bytes)): + _content = start_media_streaming_request else: - _json = self._serialize.body(start_dialog_request, "StartDialogRequest") + _json = self._serialize.body(start_media_streaming_request, "StartMediaStreamingRequest") - _request = build_call_dialog_start_dialog_request( + _request = build_call_media_start_media_streaming_request( call_connection_id=call_connection_id, - dialog_id=dialog_id, content_type=content_type, api_version=self._config.api_version, json=_json, @@ -3495,68 +2958,7 @@ async def start_dialog( response = pipeline_response.http_response - if response.status_code not in [201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DialogStateResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def stop_dialog( - self, call_connection_id: str, dialog_id: str, *, operation_callback_uri: Optional[str] = None, **kwargs: Any - ) -> None: - """stop_dialog. - - :param call_connection_id: Required. - :type call_connection_id: str - :param dialog_id: Required. - :type dialog_id: str - :keyword operation_callback_uri: Default value is None. - :paramtype operation_callback_uri: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_call_dialog_stop_dialog_request( - call_connection_id=call_connection_id, - dialog_id=dialog_id, - operation_callback_uri=operation_callback_uri, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [204]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -3565,25 +2967,23 @@ async def stop_dialog( return cls(pipeline_response, None, {}) # type: ignore @overload - async def update_dialog( + async def stop_media_streaming( self, call_connection_id: str, - dialog_id: str, - update_dialog_request: _models.UpdateDialogRequest, + stop_media_streaming_request: _models.StopMediaStreamingRequest, *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Update an ongoing dialog in a call. + """Stops media streaming in the call. - Update a dialog. + Stops media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param update_dialog_request: The update dialog request. Required. - :type update_dialog_request: ~azure.communication.callautomation.models.UpdateDialogRequest + :param stop_media_streaming_request: stop media streaming request payload. Required. + :type stop_media_streaming_request: + ~azure.communication.callautomation.models.StopMediaStreamingRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -3593,25 +2993,22 @@ async def update_dialog( """ @overload - async def update_dialog( + async def stop_media_streaming( self, call_connection_id: str, - dialog_id: str, - update_dialog_request: IO[bytes], + stop_media_streaming_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Update an ongoing dialog in a call. + """Stops media streaming in the call. - Update a dialog. + Stops media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param update_dialog_request: The update dialog request. Required. - :type update_dialog_request: IO[bytes] + :param stop_media_streaming_request: stop media streaming request payload. Required. + :type stop_media_streaming_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str @@ -3621,25 +3018,22 @@ async def update_dialog( """ @distributed_trace_async - async def update_dialog( + async def stop_media_streaming( self, call_connection_id: str, - dialog_id: str, - update_dialog_request: Union[_models.UpdateDialogRequest, IO[bytes]], + stop_media_streaming_request: Union[_models.StopMediaStreamingRequest, IO[bytes]], **kwargs: Any ) -> None: - """Update an ongoing dialog in a call. + """Stops media streaming in the call. - Update a dialog. + Stops media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param update_dialog_request: The update dialog request. Is either a UpdateDialogRequest type - or a IO[bytes] type. Required. - :type update_dialog_request: ~azure.communication.callautomation.models.UpdateDialogRequest or - IO[bytes] + :param stop_media_streaming_request: stop media streaming request payload. Is either a + StopMediaStreamingRequest type or a IO[bytes] type. Required. + :type stop_media_streaming_request: + ~azure.communication.callautomation.models.StopMediaStreamingRequest or IO[bytes] :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -3661,14 +3055,13 @@ async def update_dialog( content_type = content_type or "application/json" _json = None _content = None - if isinstance(update_dialog_request, (IOBase, bytes)): - _content = update_dialog_request + if isinstance(stop_media_streaming_request, (IOBase, bytes)): + _content = stop_media_streaming_request else: - _json = self._serialize.body(update_dialog_request, "UpdateDialogRequest") + _json = self._serialize.body(stop_media_streaming_request, "StopMediaStreamingRequest") - _request = build_call_dialog_update_dialog_request( + _request = build_call_media_stop_media_streaming_request( call_connection_id=call_connection_id, - dialog_id=dialog_id, content_type=content_type, api_version=self._config.api_version, json=_json, @@ -3688,7 +3081,7 @@ async def update_dialog( response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -3817,7 +3210,7 @@ async def start_recording( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -4036,58 +3429,3 @@ async def resume_recording(self, recording_id: str, **kwargs: Any) -> None: if cls: return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def get_recording_result(self, recording_id: str, **kwargs: Any) -> _models.RecordingResultResponse: - """Get recording result. This includes the download URLs for the recording chunks. - - Get recording result. This includes the download URLs for the recording chunks. - - :param recording_id: The recording id. Required. - :type recording_id: str - :return: RecordingResultResponse - :rtype: ~azure.communication.callautomation.models.RecordingResultResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[_models.RecordingResultResponse] = kwargs.pop("cls", None) - - _request = build_call_recording_get_recording_result_request( - recording_id=recording_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("RecordingResultResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/__init__.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/__init__.py index 6e9b27c490fc..17fa40f506af 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/__init__.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/__init__.py @@ -20,9 +20,6 @@ AddParticipantSucceeded, AnswerCallRequest, AnswerFailed, - AzureOpenAIDialog, - AzureOpenAIDialogUpdate, - BaseDialog, CallConnected, CallConnectionProperties, CallDisconnected, @@ -51,30 +48,12 @@ CreateCallFailed, CreateCallRequest, CustomCallingContext, - DialogCompleted, - DialogConsent, - DialogFailed, - DialogHangup, - DialogLanguageChange, - DialogSensitivityUpdate, - DialogStarted, - DialogStateResponse, - DialogTransfer, - DialogUpdateBase, - DialogUpdated, DtmfOptions, DtmfResult, - Error, ExternalStorage, FileSource, - HoldAudioCompleted, - HoldAudioPaused, - HoldAudioResumed, - HoldAudioStarted, HoldFailed, HoldRequest, - IncomingCall, - InterruptAudioAndAnnounceRequest, MediaStreamingFailed, MediaStreamingOptions, MediaStreamingStarted, @@ -91,22 +70,16 @@ PlayCompleted, PlayFailed, PlayOptions, - PlayPaused, PlayRequest, - PlayResumed, PlaySource, PlayStarted, - PowerVirtualAgentsDialog, RecognizeCanceled, RecognizeCompleted, RecognizeFailed, RecognizeOptions, RecognizeRequest, - RecordingChunkStorageInfo, - RecordingResultResponse, RecordingStateChanged, RecordingStateResponse, - RecordingStorageInfo, RedirectCallRequest, RejectCallRequest, RemoveParticipantFailed, @@ -122,9 +95,7 @@ SpeechResult, SsmlSource, StartCallRecordingRequest, - StartDialogRequest, StartMediaStreamingRequest, - StartRecordingFailed, StartTranscriptionRequest, StopMediaStreamingRequest, StopTranscriptionRequest, @@ -139,11 +110,9 @@ TransferCallResponse, TransferToParticipantRequest, UnholdRequest, - UnmuteParticipantsRequest, - UnmuteParticipantsResponse, - UpdateDialogRequest, UpdateTranscriptionRequest, - UserConsent, + WebSocketMediaStreamingOptions, + WebSocketTranscriptionOptions, ) from ._enums import ( # type: ignore @@ -151,18 +120,14 @@ CallConnectionState, CallLocatorKind, CallRejectReason, - CallSessionEndReason, - ChunkEndReason, CommunicationCloudEnvironmentModel, CommunicationIdentifierModelKind, - DialogInputType, DtmfTone, MediaStreamingAudioChannelType, MediaStreamingContentType, MediaStreamingStatus, MediaStreamingStatusDetails, MediaStreamingSubscriptionState, - MediaStreamingTransportType, PlaySourceType, RecognitionType, RecognizeInputType, @@ -172,11 +137,11 @@ RecordingKind, RecordingState, RecordingStorageKind, + StreamingTransportType, TranscriptionResultType, TranscriptionStatus, TranscriptionStatusDetails, TranscriptionSubscriptionState, - TranscriptionTransportType, VoiceKind, ) from ._patch import __all__ as _patch_all @@ -190,9 +155,6 @@ "AddParticipantSucceeded", "AnswerCallRequest", "AnswerFailed", - "AzureOpenAIDialog", - "AzureOpenAIDialogUpdate", - "BaseDialog", "CallConnected", "CallConnectionProperties", "CallDisconnected", @@ -221,30 +183,12 @@ "CreateCallFailed", "CreateCallRequest", "CustomCallingContext", - "DialogCompleted", - "DialogConsent", - "DialogFailed", - "DialogHangup", - "DialogLanguageChange", - "DialogSensitivityUpdate", - "DialogStarted", - "DialogStateResponse", - "DialogTransfer", - "DialogUpdateBase", - "DialogUpdated", "DtmfOptions", "DtmfResult", - "Error", "ExternalStorage", "FileSource", - "HoldAudioCompleted", - "HoldAudioPaused", - "HoldAudioResumed", - "HoldAudioStarted", "HoldFailed", "HoldRequest", - "IncomingCall", - "InterruptAudioAndAnnounceRequest", "MediaStreamingFailed", "MediaStreamingOptions", "MediaStreamingStarted", @@ -261,22 +205,16 @@ "PlayCompleted", "PlayFailed", "PlayOptions", - "PlayPaused", "PlayRequest", - "PlayResumed", "PlaySource", "PlayStarted", - "PowerVirtualAgentsDialog", "RecognizeCanceled", "RecognizeCompleted", "RecognizeFailed", "RecognizeOptions", "RecognizeRequest", - "RecordingChunkStorageInfo", - "RecordingResultResponse", "RecordingStateChanged", "RecordingStateResponse", - "RecordingStorageInfo", "RedirectCallRequest", "RejectCallRequest", "RemoveParticipantFailed", @@ -292,9 +230,7 @@ "SpeechResult", "SsmlSource", "StartCallRecordingRequest", - "StartDialogRequest", "StartMediaStreamingRequest", - "StartRecordingFailed", "StartTranscriptionRequest", "StopMediaStreamingRequest", "StopTranscriptionRequest", @@ -309,27 +245,21 @@ "TransferCallResponse", "TransferToParticipantRequest", "UnholdRequest", - "UnmuteParticipantsRequest", - "UnmuteParticipantsResponse", - "UpdateDialogRequest", "UpdateTranscriptionRequest", - "UserConsent", + "WebSocketMediaStreamingOptions", + "WebSocketTranscriptionOptions", "AudioFormat", "CallConnectionState", "CallLocatorKind", "CallRejectReason", - "CallSessionEndReason", - "ChunkEndReason", "CommunicationCloudEnvironmentModel", "CommunicationIdentifierModelKind", - "DialogInputType", "DtmfTone", "MediaStreamingAudioChannelType", "MediaStreamingContentType", "MediaStreamingStatus", "MediaStreamingStatusDetails", "MediaStreamingSubscriptionState", - "MediaStreamingTransportType", "PlaySourceType", "RecognitionType", "RecognizeInputType", @@ -339,11 +269,11 @@ "RecordingKind", "RecordingState", "RecordingStorageKind", + "StreamingTransportType", "TranscriptionResultType", "TranscriptionStatus", "TranscriptionStatusDetails", "TranscriptionSubscriptionState", - "TranscriptionTransportType", "VoiceKind", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_enums.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_enums.py index 4a2b673beb41..b794677d64d7 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_enums.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_enums.py @@ -11,12 +11,12 @@ class AudioFormat(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Specifies the audio format used for encoding, including sample rate and channel type.""" + """The audio format used for encoding, including sample rate and channel type. The default is + Pcm16KMono. + """ - PCM16_K_MONO = "Pcm16KMono" - """Pcm16KMono""" - PCM24_K_MONO = "Pcm24KMono" - """Pcm24KMono""" + PCM16_K_MONO = "pcm16KMono" + PCM24_K_MONO = "pcm24KMono" class CallConnectionState(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -47,49 +47,6 @@ class CallRejectReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): FORBIDDEN = "forbidden" -class CallSessionEndReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """CallSessionEndReason.""" - - SESSION_STILL_ONGOING = "sessionStillOngoing" - CALL_ENDED = "callEnded" - INITIATOR_LEFT = "initiatorLeft" - HANDED_OVER_OR_TRANSFERED = "handedOverOrTransfered" - MAXIMUM_SESSION_TIME_REACHED = "maximumSessionTimeReached" - CALL_START_TIMEOUT = "callStartTimeout" - MEDIA_TIMEOUT = "mediaTimeout" - AUDIO_STREAM_FAILURE = "audioStreamFailure" - ALL_INSTANCES_BUSY = "allInstancesBusy" - TEAMS_TOKEN_CONVERSION_FAILED = "teamsTokenConversionFailed" - REPORT_CALL_STATE_FAILED = "reportCallStateFailed" - REPORT_CALL_STATE_FAILED_AND_SESSION_MUST_BE_DISCARDED = "reportCallStateFailedAndSessionMustBeDiscarded" - COULD_NOT_REJOIN_CALL = "couldNotRejoinCall" - INVALID_BOT_DATA = "invalidBotData" - COULD_NOT_START = "couldNotStart" - APP_HOSTED_MEDIA_FAILURE_OUTCOME_WITH_ERROR = "appHostedMediaFailureOutcomeWithError" - APP_HOSTED_MEDIA_FAILURE_OUTCOME_GRACEFULLY = "appHostedMediaFailureOutcomeGracefully" - HANDED_OVER_DUE_TO_MEDIA_TIMEOUT = "handedOverDueToMediaTimeout" - HANDED_OVER_DUE_TO_AUDIO_STREAM_FAILURE = "handedOverDueToAudioStreamFailure" - SPEECH_RECOGNITION_SESSION_NON_RETRIABLE_ERROR = "speechRecognitionSessionNonRetriableError" - SPEECH_RECOGNITION_SESSION_RETRIABLE_ERROR_MAX_RETRY_COUNT_REACHED = ( - "speechRecognitionSessionRetriableErrorMaxRetryCountReached" - ) - HANDED_OVER_DUE_TO_CHUNK_CREATION_FAILURE = "handedOverDueToChunkCreationFailure" - CHUNK_CREATION_FAILED = "chunkCreationFailed" - HANDED_OVER_DUE_TO_PROCESSING_TIMEOUT = "handedOverDueToProcessingTimeout" - PROCESSING_TIMEOUT = "processingTimeout" - TRANSCRIPT_OBJECT_CREATION_FAILED = "transcriptObjectCreationFailed" - - -class ChunkEndReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Reason this chunk ended.""" - - CHUNK_IS_BEING_RECORDED = "chunkIsBeingRecorded" - SESSION_ENDED = "sessionEnded" - CHUNK_MAXIMUM_SIZE_EXCEEDED = "chunkMaximumSizeExceeded" - CHUNK_MAXIMUM_TIME_EXCEEDED = "chunkMaximumTimeExceeded" - CHUNK_UPLOAD_FAILURE = "chunkUploadFailure" - - class CommunicationCloudEnvironmentModel(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The cloud that the identifier belongs to.""" @@ -108,13 +65,6 @@ class CommunicationIdentifierModelKind(str, Enum, metaclass=CaseInsensitiveEnumM MICROSOFT_TEAMS_APP = "microsoftTeamsApp" -class DialogInputType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Determines the type of the dialog.""" - - POWER_VIRTUAL_AGENTS = "powerVirtualAgents" - AZURE_OPEN_AI = "azureOpenAI" - - class DtmfTone(str, Enum, metaclass=CaseInsensitiveEnumMeta): """DtmfTone.""" @@ -137,14 +87,14 @@ class DtmfTone(str, Enum, metaclass=CaseInsensitiveEnumMeta): class MediaStreamingAudioChannelType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Audio channel type to stream, eg. unmixed audio, mixed audio.""" + """The audio channel type to stream, e.g., unmixed audio, mixed audio.""" MIXED = "mixed" UNMIXED = "unmixed" class MediaStreamingContentType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Content type to stream, eg. audio.""" + """MediaStreamingContentType.""" AUDIO = "audio" @@ -186,12 +136,6 @@ class MediaStreamingSubscriptionState(str, Enum, metaclass=CaseInsensitiveEnumMe ACTIVE = "active" -class MediaStreamingTransportType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of transport to be used for media streaming, eg. Websocket.""" - - WEBSOCKET = "websocket" - - class PlaySourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Defines the type of the play source.""" @@ -268,6 +212,14 @@ class RecordingStorageKind(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Storage managed by provided Azure blob""" +class StreamingTransportType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Defines the transport type used for streaming. Note that future values may be introduced that + are not currently documented. + """ + + WEBSOCKET = "websocket" + + class TranscriptionResultType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """TranscriptionResultType.""" @@ -314,12 +266,6 @@ class TranscriptionSubscriptionState(str, Enum, metaclass=CaseInsensitiveEnumMet ACTIVE = "active" -class TranscriptionTransportType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of transport to be used for live transcription, eg. Websocket.""" - - WEBSOCKET = "websocket" - - class VoiceKind(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Voice kind type.""" diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_models.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_models.py index f0b3892c7d43..a62347feeef7 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_models.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_models.py @@ -1,4 +1,4 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -7,19 +7,12 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union -from .. import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore +from .._utils import serialization as _serialization if TYPE_CHECKING: from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object class AddParticipantFailed(_serialization.Model): @@ -298,10 +291,6 @@ class AnswerCallRequest(_serialization.Model): :vartype incoming_call_context: str :ivar callback_uri: The callback uri. Required. :vartype callback_uri: str - :ivar custom_calling_context: Used by customer to send custom calling context to targets when - answering On-Behalf-Of call. - :vartype custom_calling_context: - ~azure.communication.callautomation.models.CustomCallingContext :ivar operation_context: A customer set value used to track the answering of a call. :vartype operation_context: str :ivar call_intelligence_options: AI options for the call. @@ -325,7 +314,6 @@ class AnswerCallRequest(_serialization.Model): _attribute_map = { "incoming_call_context": {"key": "incomingCallContext", "type": "str"}, "callback_uri": {"key": "callbackUri", "type": "str"}, - "custom_calling_context": {"key": "customCallingContext", "type": "CustomCallingContext"}, "operation_context": {"key": "operationContext", "type": "str"}, "call_intelligence_options": {"key": "callIntelligenceOptions", "type": "CallIntelligenceOptions"}, "answered_by": {"key": "answeredBy", "type": "CommunicationUserIdentifierModel"}, @@ -338,7 +326,6 @@ def __init__( *, incoming_call_context: str, callback_uri: str, - custom_calling_context: Optional["_models.CustomCallingContext"] = None, operation_context: Optional[str] = None, call_intelligence_options: Optional["_models.CallIntelligenceOptions"] = None, answered_by: Optional["_models.CommunicationUserIdentifierModel"] = None, @@ -351,10 +338,6 @@ def __init__( :paramtype incoming_call_context: str :keyword callback_uri: The callback uri. Required. :paramtype callback_uri: str - :keyword custom_calling_context: Used by customer to send custom calling context to targets - when answering On-Behalf-Of call. - :paramtype custom_calling_context: - ~azure.communication.callautomation.models.CustomCallingContext :keyword operation_context: A customer set value used to track the answering of a call. :paramtype operation_context: str :keyword call_intelligence_options: AI options for the call. @@ -373,7 +356,6 @@ def __init__( super().__init__(**kwargs) self.incoming_call_context = incoming_call_context self.callback_uri = callback_uri - self.custom_calling_context = custom_calling_context self.operation_context = operation_context self.call_intelligence_options = call_intelligence_options self.answered_by = answered_by @@ -438,140 +420,6 @@ def __init__( self.result_information = result_information -class BaseDialog(_serialization.Model): - """BaseDialog. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureOpenAIDialog, PowerVirtualAgentsDialog - - All required parameters must be populated in order to send to server. - - :ivar kind: Determines the type of the dialog. Required. Known values are: "powerVirtualAgents" - and "azureOpenAI". - :vartype kind: str or ~azure.communication.callautomation.models.DialogInputType - :ivar context: Dialog context. Required. - :vartype context: dict[str, JSON] - """ - - _validation = { - "kind": {"required": True}, - "context": {"required": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "context": {"key": "context", "type": "{object}"}, - } - - _subtype_map = {"kind": {"azureOpenAI": "AzureOpenAIDialog", "powerVirtualAgents": "PowerVirtualAgentsDialog"}} - - def __init__(self, *, context: Dict[str, JSON], **kwargs: Any) -> None: - """ - :keyword context: Dialog context. Required. - :paramtype context: dict[str, JSON] - """ - super().__init__(**kwargs) - self.kind: Optional[str] = None - self.context = context - - -class AzureOpenAIDialog(BaseDialog): - """Azure Open AI Dialog. - - All required parameters must be populated in order to send to server. - - :ivar kind: Determines the type of the dialog. Required. Known values are: "powerVirtualAgents" - and "azureOpenAI". - :vartype kind: str or ~azure.communication.callautomation.models.DialogInputType - :ivar context: Dialog context. Required. - :vartype context: dict[str, JSON] - """ - - _validation = { - "kind": {"required": True}, - "context": {"required": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "context": {"key": "context", "type": "{object}"}, - } - - def __init__(self, *, context: Dict[str, JSON], **kwargs: Any) -> None: - """ - :keyword context: Dialog context. Required. - :paramtype context: dict[str, JSON] - """ - super().__init__(context=context, **kwargs) - self.kind: str = "azureOpenAI" - - -class DialogUpdateBase(_serialization.Model): - """DialogUpdateBase. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureOpenAIDialogUpdate - - All required parameters must be populated in order to send to server. - - :ivar kind: Determines the type of the dialog. Required. Known values are: "powerVirtualAgents" - and "azureOpenAI". - :vartype kind: str or ~azure.communication.callautomation.models.DialogInputType - :ivar context: Dialog context. - :vartype context: dict[str, JSON] - """ - - _validation = { - "kind": {"required": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "context": {"key": "context", "type": "{object}"}, - } - - _subtype_map = {"kind": {"azureOpenAI": "AzureOpenAIDialogUpdate"}} - - def __init__(self, *, context: Optional[Dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword context: Dialog context. - :paramtype context: dict[str, JSON] - """ - super().__init__(**kwargs) - self.kind: Optional[str] = None - self.context = context - - -class AzureOpenAIDialogUpdate(DialogUpdateBase): - """Azure Open AI Dialog for UpdateDialog API Call. - - All required parameters must be populated in order to send to server. - - :ivar kind: Determines the type of the dialog. Required. Known values are: "powerVirtualAgents" - and "azureOpenAI". - :vartype kind: str or ~azure.communication.callautomation.models.DialogInputType - :ivar context: Dialog context. - :vartype context: dict[str, JSON] - """ - - _validation = { - "kind": {"required": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "context": {"key": "context", "type": "{object}"}, - } - - def __init__(self, *, context: Optional[Dict[str, JSON]] = None, **kwargs: Any) -> None: - """ - :keyword context: Dialog context. - :paramtype context: dict[str, JSON] - """ - super().__init__(context=context, **kwargs) - self.kind: str = "azureOpenAI" - - class CallConnected(_serialization.Model): """The call connected event. @@ -660,10 +508,6 @@ class CallConnectionProperties(_serialization.Model): in the request. :vartype answered_by: ~azure.communication.callautomation.models.CommunicationUserIdentifierModel - :ivar media_subscription_id: SubscriptionId for media streaming. - :vartype media_subscription_id: str - :ivar data_subscription_id: SubscriptionId for transcription. - :vartype data_subscription_id: str :ivar media_streaming_subscription: The state of media streaming subscription for the call. :vartype media_streaming_subscription: ~azure.communication.callautomation.models.MediaStreamingSubscription @@ -686,8 +530,6 @@ class CallConnectionProperties(_serialization.Model): "source": {"key": "source", "type": "CommunicationIdentifierModel"}, "correlation_id": {"key": "correlationId", "type": "str"}, "answered_by": {"key": "answeredBy", "type": "CommunicationUserIdentifierModel"}, - "media_subscription_id": {"key": "mediaSubscriptionId", "type": "str"}, - "data_subscription_id": {"key": "dataSubscriptionId", "type": "str"}, "media_streaming_subscription": {"key": "mediaStreamingSubscription", "type": "MediaStreamingSubscription"}, "transcription_subscription": {"key": "transcriptionSubscription", "type": "TranscriptionSubscription"}, "answered_for": {"key": "answeredFor", "type": "PhoneNumberIdentifierModel"}, @@ -706,8 +548,6 @@ def __init__( source: Optional["_models.CommunicationIdentifierModel"] = None, correlation_id: Optional[str] = None, answered_by: Optional["_models.CommunicationUserIdentifierModel"] = None, - media_subscription_id: Optional[str] = None, - data_subscription_id: Optional[str] = None, media_streaming_subscription: Optional["_models.MediaStreamingSubscription"] = None, transcription_subscription: Optional["_models.TranscriptionSubscription"] = None, answered_for: Optional["_models.PhoneNumberIdentifierModel"] = None, @@ -743,10 +583,6 @@ def __init__( provided in the request. :paramtype answered_by: ~azure.communication.callautomation.models.CommunicationUserIdentifierModel - :keyword media_subscription_id: SubscriptionId for media streaming. - :paramtype media_subscription_id: str - :keyword data_subscription_id: SubscriptionId for transcription. - :paramtype data_subscription_id: str :keyword media_streaming_subscription: The state of media streaming subscription for the call. :paramtype media_streaming_subscription: ~azure.communication.callautomation.models.MediaStreamingSubscription @@ -768,8 +604,6 @@ def __init__( self.source = source self.correlation_id = correlation_id self.answered_by = answered_by - self.media_subscription_id = media_subscription_id - self.data_subscription_id = data_subscription_id self.media_streaming_subscription = media_streaming_subscription self.transcription_subscription = transcription_subscription self.answered_for = answered_for @@ -838,34 +672,20 @@ class CallIntelligenceOptions(_serialization.Model): :ivar cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :vartype cognitive_services_endpoint: str - :ivar backup_cognitive_services_endpoint: A backup identifier of the Cognitive Service resource - assigned to this call. - :vartype backup_cognitive_services_endpoint: str """ _attribute_map = { "cognitive_services_endpoint": {"key": "cognitiveServicesEndpoint", "type": "str"}, - "backup_cognitive_services_endpoint": {"key": "backupCognitiveServicesEndpoint", "type": "str"}, } - def __init__( - self, - *, - cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint: Optional[str] = None, - **kwargs: Any - ) -> None: + def __init__(self, *, cognitive_services_endpoint: Optional[str] = None, **kwargs: Any) -> None: """ :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str - :keyword backup_cognitive_services_endpoint: A backup identifier of the Cognitive Service - resource assigned to this call. - :paramtype backup_cognitive_services_endpoint: str """ super().__init__(**kwargs) self.cognitive_services_endpoint = cognitive_services_endpoint - self.backup_cognitive_services_endpoint = backup_cognitive_services_endpoint class CallLocator(_serialization.Model): @@ -1387,14 +1207,25 @@ class ChoiceResult(_serialization.Model): If Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set to null. :vartype recognized_phrase: str + :ivar confidence: The confidence level of the recognized speech, if available, ranges from 0.0 + to 1.0. + :vartype confidence: float """ _attribute_map = { "label": {"key": "label", "type": "str"}, "recognized_phrase": {"key": "recognizedPhrase", "type": "str"}, + "confidence": {"key": "confidence", "type": "float"}, } - def __init__(self, *, label: Optional[str] = None, recognized_phrase: Optional[str] = None, **kwargs: Any) -> None: + def __init__( + self, + *, + label: Optional[str] = None, + recognized_phrase: Optional[str] = None, + confidence: Optional[float] = None, + **kwargs: Any + ) -> None: """ :keyword label: Label is the primary identifier for the choice detected. :paramtype label: str @@ -1403,10 +1234,14 @@ def __init__(self, *, label: Optional[str] = None, recognized_phrase: Optional[s If Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set to null. :paramtype recognized_phrase: str + :keyword confidence: The confidence level of the recognized speech, if available, ranges from + 0.0 to 1.0. + :paramtype confidence: float """ super().__init__(**kwargs) self.label = label self.recognized_phrase = recognized_phrase + self.confidence = confidence class CommunicationError(_serialization.Model): @@ -2036,13 +1871,6 @@ class CreateCallRequest(_serialization.Model): :ivar call_intelligence_options: AI options for the call. :vartype call_intelligence_options: ~azure.communication.callautomation.models.CallIntelligenceOptions - :ivar teams_app_source: The identifier of the source for creating call with Teams resource - account ID. - :vartype teams_app_source: - ~azure.communication.callautomation.models.MicrosoftTeamsAppIdentifierModel - :ivar custom_calling_context: Used by customer to send custom calling context to targets. - :vartype custom_calling_context: - ~azure.communication.callautomation.models.CustomCallingContext :ivar media_streaming_options: Media Streaming Options. :vartype media_streaming_options: ~azure.communication.callautomation.models.MediaStreamingOptions @@ -2063,8 +1891,6 @@ class CreateCallRequest(_serialization.Model): "operation_context": {"key": "operationContext", "type": "str"}, "callback_uri": {"key": "callbackUri", "type": "str"}, "call_intelligence_options": {"key": "callIntelligenceOptions", "type": "CallIntelligenceOptions"}, - "teams_app_source": {"key": "teamsAppSource", "type": "MicrosoftTeamsAppIdentifierModel"}, - "custom_calling_context": {"key": "customCallingContext", "type": "CustomCallingContext"}, "media_streaming_options": {"key": "mediaStreamingOptions", "type": "MediaStreamingOptions"}, "transcription_options": {"key": "transcriptionOptions", "type": "TranscriptionOptions"}, } @@ -2079,8 +1905,6 @@ def __init__( source: Optional["_models.CommunicationUserIdentifierModel"] = None, operation_context: Optional[str] = None, call_intelligence_options: Optional["_models.CallIntelligenceOptions"] = None, - teams_app_source: Optional["_models.MicrosoftTeamsAppIdentifierModel"] = None, - custom_calling_context: Optional["_models.CustomCallingContext"] = None, media_streaming_options: Optional["_models.MediaStreamingOptions"] = None, transcription_options: Optional["_models.TranscriptionOptions"] = None, **kwargs: Any @@ -2105,13 +1929,6 @@ def __init__( :keyword call_intelligence_options: AI options for the call. :paramtype call_intelligence_options: ~azure.communication.callautomation.models.CallIntelligenceOptions - :keyword teams_app_source: The identifier of the source for creating call with Teams resource - account ID. - :paramtype teams_app_source: - ~azure.communication.callautomation.models.MicrosoftTeamsAppIdentifierModel - :keyword custom_calling_context: Used by customer to send custom calling context to targets. - :paramtype custom_calling_context: - ~azure.communication.callautomation.models.CustomCallingContext :keyword media_streaming_options: Media Streaming Options. :paramtype media_streaming_options: ~azure.communication.callautomation.models.MediaStreamingOptions @@ -2127,8 +1944,6 @@ def __init__( self.operation_context = operation_context self.callback_uri = callback_uri self.call_intelligence_options = call_intelligence_options - self.teams_app_source = teams_app_source - self.custom_calling_context = custom_calling_context self.media_streaming_options = media_streaming_options self.transcription_options = transcription_options @@ -2165,899 +1980,92 @@ def __init__( self.sip_headers = sip_headers -class DialogCompleted(_serialization.Model): - """DialogCompleted. - - Variables are only populated by the server, and will be ignored when sending a request. +class DtmfOptions(_serialization.Model): + """Options for DTMF recognition. - :ivar dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :vartype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :ivar dialog_id: Dialog ID. - :vartype dialog_id: str - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation + :ivar inter_tone_timeout_in_seconds: Time to wait between DTMF inputs to stop recognizing. + :vartype inter_tone_timeout_in_seconds: int + :ivar max_tones_to_collect: Maximum number of DTMF tones to be collected. + :vartype max_tones_to_collect: int + :ivar stop_tones: List of tones that will stop recognizing. + :vartype stop_tones: list[str or ~azure.communication.callautomation.models.DtmfTone] """ _validation = { - "dialog_id": {"readonly": True}, + "inter_tone_timeout_in_seconds": {"maximum": 60, "minimum": 1}, } _attribute_map = { - "dialog_input_type": {"key": "dialogInputType", "type": "str"}, - "dialog_id": {"key": "dialogId", "type": "str"}, - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, + "inter_tone_timeout_in_seconds": {"key": "interToneTimeoutInSeconds", "type": "int"}, + "max_tones_to_collect": {"key": "maxTonesToCollect", "type": "int"}, + "stop_tones": {"key": "stopTones", "type": "[str]"}, } def __init__( self, *, - dialog_input_type: Optional[Union[str, "_models.DialogInputType"]] = None, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, + inter_tone_timeout_in_seconds: Optional[int] = None, + max_tones_to_collect: Optional[int] = None, + stop_tones: Optional[List[Union[str, "_models.DtmfTone"]]] = None, **kwargs: Any ) -> None: """ - :keyword dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :paramtype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation + :keyword inter_tone_timeout_in_seconds: Time to wait between DTMF inputs to stop recognizing. + :paramtype inter_tone_timeout_in_seconds: int + :keyword max_tones_to_collect: Maximum number of DTMF tones to be collected. + :paramtype max_tones_to_collect: int + :keyword stop_tones: List of tones that will stop recognizing. + :paramtype stop_tones: list[str or ~azure.communication.callautomation.models.DtmfTone] """ super().__init__(**kwargs) - self.dialog_input_type = dialog_input_type - self.dialog_id: Optional[str] = None - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information + self.inter_tone_timeout_in_seconds = inter_tone_timeout_in_seconds + self.max_tones_to_collect = max_tones_to_collect + self.stop_tones = stop_tones -class DialogConsent(_serialization.Model): - """DialogConsent. +class DtmfResult(_serialization.Model): + """DtmfResult. Variables are only populated by the server, and will be ignored when sending a request. - :ivar dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :vartype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :ivar user_consent: UserConsent data from the Conversation Conductor. - :vartype user_consent: ~azure.communication.callautomation.models.UserConsent - :ivar dialog_id: Dialog ID. - :vartype dialog_id: str - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation + :ivar tones: + :vartype tones: list[str or ~azure.communication.callautomation.models.DtmfTone] """ _validation = { - "user_consent": {"readonly": True}, - "dialog_id": {"readonly": True}, + "tones": {"readonly": True}, } _attribute_map = { - "dialog_input_type": {"key": "dialogInputType", "type": "str"}, - "user_consent": {"key": "userConsent", "type": "UserConsent"}, - "dialog_id": {"key": "dialogId", "type": "str"}, - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, + "tones": {"key": "tones", "type": "[str]"}, } - def __init__( - self, - *, - dialog_input_type: Optional[Union[str, "_models.DialogInputType"]] = None, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :paramtype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ + def __init__(self, **kwargs: Any) -> None: + """ """ super().__init__(**kwargs) - self.dialog_input_type = dialog_input_type - self.user_consent: Optional["_models.UserConsent"] = None - self.dialog_id: Optional[str] = None - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information + self.tones: Optional[List[Union[str, "_models.DtmfTone"]]] = None -class DialogFailed(_serialization.Model): - """DialogFailed. +class ExternalStorage(_serialization.Model): + """ExternalStorage. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to server. - :ivar dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :vartype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :ivar dialog_id: Dialog ID. - :vartype dialog_id: str - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation + :ivar recording_storage_kind: Defines the kind of external storage. Required. Known values are: + "AzureCommunicationServices" and "AzureBlobStorage". + :vartype recording_storage_kind: str or + ~azure.communication.callautomation.models.RecordingStorageKind + :ivar recording_destination_container_url: Uri of a container or a location within a container. + :vartype recording_destination_container_url: str """ _validation = { - "dialog_id": {"readonly": True}, + "recording_storage_kind": {"required": True}, } _attribute_map = { - "dialog_input_type": {"key": "dialogInputType", "type": "str"}, - "dialog_id": {"key": "dialogId", "type": "str"}, - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - dialog_input_type: Optional[Union[str, "_models.DialogInputType"]] = None, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :paramtype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - super().__init__(**kwargs) - self.dialog_input_type = dialog_input_type - self.dialog_id: Optional[str] = None - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information - - -class DialogHangup(_serialization.Model): - """DialogHangup. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :vartype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :ivar dialog_id: Dialog ID. - :vartype dialog_id: str - :ivar ivr_context: Ivr Context. - :vartype ivr_context: JSON - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - - _validation = { - "dialog_id": {"readonly": True}, - "ivr_context": {"readonly": True}, - } - - _attribute_map = { - "dialog_input_type": {"key": "dialogInputType", "type": "str"}, - "dialog_id": {"key": "dialogId", "type": "str"}, - "ivr_context": {"key": "ivrContext", "type": "object"}, - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - dialog_input_type: Optional[Union[str, "_models.DialogInputType"]] = None, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :paramtype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - super().__init__(**kwargs) - self.dialog_input_type = dialog_input_type - self.dialog_id: Optional[str] = None - self.ivr_context: Optional[JSON] = None - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information - - -class DialogLanguageChange(_serialization.Model): - """DialogLanguageChange. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :vartype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :ivar dialog_id: Dialog ID. - :vartype dialog_id: str - :ivar selected_language: Selected Language. - :vartype selected_language: str - :ivar ivr_context: Ivr Context. - :vartype ivr_context: JSON - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - - _validation = { - "dialog_id": {"readonly": True}, - "selected_language": {"readonly": True}, - "ivr_context": {"readonly": True}, - } - - _attribute_map = { - "dialog_input_type": {"key": "dialogInputType", "type": "str"}, - "dialog_id": {"key": "dialogId", "type": "str"}, - "selected_language": {"key": "selectedLanguage", "type": "str"}, - "ivr_context": {"key": "ivrContext", "type": "object"}, - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - dialog_input_type: Optional[Union[str, "_models.DialogInputType"]] = None, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :paramtype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - super().__init__(**kwargs) - self.dialog_input_type = dialog_input_type - self.dialog_id: Optional[str] = None - self.selected_language: Optional[str] = None - self.ivr_context: Optional[JSON] = None - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information - - -class DialogSensitivityUpdate(_serialization.Model): - """DialogSensitivityUpdate. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :vartype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :ivar dialog_id: Dialog ID. - :vartype dialog_id: str - :ivar sensitive_mask: SensitiveMask. - :vartype sensitive_mask: bool - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - - _validation = { - "dialog_id": {"readonly": True}, - "sensitive_mask": {"readonly": True}, - } - - _attribute_map = { - "dialog_input_type": {"key": "dialogInputType", "type": "str"}, - "dialog_id": {"key": "dialogId", "type": "str"}, - "sensitive_mask": {"key": "sensitiveMask", "type": "bool"}, - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - dialog_input_type: Optional[Union[str, "_models.DialogInputType"]] = None, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :paramtype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - super().__init__(**kwargs) - self.dialog_input_type = dialog_input_type - self.dialog_id: Optional[str] = None - self.sensitive_mask: Optional[bool] = None - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information - - -class DialogStarted(_serialization.Model): - """DialogStarted. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :vartype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :ivar dialog_id: Dialog ID. - :vartype dialog_id: str - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - - _validation = { - "dialog_id": {"readonly": True}, - } - - _attribute_map = { - "dialog_input_type": {"key": "dialogInputType", "type": "str"}, - "dialog_id": {"key": "dialogId", "type": "str"}, - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - dialog_input_type: Optional[Union[str, "_models.DialogInputType"]] = None, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :paramtype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - super().__init__(**kwargs) - self.dialog_input_type = dialog_input_type - self.dialog_id: Optional[str] = None - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information - - -class DialogStateResponse(_serialization.Model): - """DialogStateResponse. - - :ivar dialog_id: The dialog ID. - :vartype dialog_id: str - :ivar dialog: Defines dialog. - :vartype dialog: ~azure.communication.callautomation.models.BaseDialog - :ivar operation_context: The value to identify context of the operation. - :vartype operation_context: str - """ - - _attribute_map = { - "dialog_id": {"key": "dialogId", "type": "str"}, - "dialog": {"key": "dialog", "type": "BaseDialog"}, - "operation_context": {"key": "operationContext", "type": "str"}, - } - - def __init__( - self, - *, - dialog_id: Optional[str] = None, - dialog: Optional["_models.BaseDialog"] = None, - operation_context: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword dialog_id: The dialog ID. - :paramtype dialog_id: str - :keyword dialog: Defines dialog. - :paramtype dialog: ~azure.communication.callautomation.models.BaseDialog - :keyword operation_context: The value to identify context of the operation. - :paramtype operation_context: str - """ - super().__init__(**kwargs) - self.dialog_id = dialog_id - self.dialog = dialog - self.operation_context = operation_context - - -class DialogTransfer(_serialization.Model): - """DialogTransfer. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :vartype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :ivar dialog_id: Dialog ID. - :vartype dialog_id: str - :ivar transfer_type: Transfer type. - :vartype transfer_type: str - :ivar transfer_destination: Transfer destination. - :vartype transfer_destination: str - :ivar ivr_context: IVR context. - :vartype ivr_context: JSON - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - - _validation = { - "dialog_id": {"readonly": True}, - "transfer_type": {"readonly": True}, - "transfer_destination": {"readonly": True}, - "ivr_context": {"readonly": True}, - } - - _attribute_map = { - "dialog_input_type": {"key": "dialogInputType", "type": "str"}, - "dialog_id": {"key": "dialogId", "type": "str"}, - "transfer_type": {"key": "transferType", "type": "str"}, - "transfer_destination": {"key": "transferDestination", "type": "str"}, - "ivr_context": {"key": "ivrContext", "type": "object"}, - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - dialog_input_type: Optional[Union[str, "_models.DialogInputType"]] = None, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :paramtype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - super().__init__(**kwargs) - self.dialog_input_type = dialog_input_type - self.dialog_id: Optional[str] = None - self.transfer_type: Optional[str] = None - self.transfer_destination: Optional[str] = None - self.ivr_context: Optional[JSON] = None - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information - - -class DialogUpdated(_serialization.Model): - """DialogUpdated. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :vartype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :ivar dialog_id: Dialog ID. - :vartype dialog_id: str - :ivar ivr_context: IVR context. - :vartype ivr_context: JSON - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - - _validation = { - "dialog_id": {"readonly": True}, - "ivr_context": {"readonly": True}, - } - - _attribute_map = { - "dialog_input_type": {"key": "dialogInputType", "type": "str"}, - "dialog_id": {"key": "dialogId", "type": "str"}, - "ivr_context": {"key": "ivrContext", "type": "object"}, - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - dialog_input_type: Optional[Union[str, "_models.DialogInputType"]] = None, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword dialog_input_type: Determines the type of the dialog. Known values are: - "powerVirtualAgents" and "azureOpenAI". - :paramtype dialog_input_type: str or ~azure.communication.callautomation.models.DialogInputType - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - super().__init__(**kwargs) - self.dialog_input_type = dialog_input_type - self.dialog_id: Optional[str] = None - self.ivr_context: Optional[JSON] = None - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information - - -class DtmfOptions(_serialization.Model): - """Options for DTMF recognition. - - :ivar inter_tone_timeout_in_seconds: Time to wait between DTMF inputs to stop recognizing. - :vartype inter_tone_timeout_in_seconds: int - :ivar max_tones_to_collect: Maximum number of DTMF tones to be collected. - :vartype max_tones_to_collect: int - :ivar stop_tones: List of tones that will stop recognizing. - :vartype stop_tones: list[str or ~azure.communication.callautomation.models.DtmfTone] - """ - - _validation = { - "inter_tone_timeout_in_seconds": {"maximum": 60, "minimum": 1}, - } - - _attribute_map = { - "inter_tone_timeout_in_seconds": {"key": "interToneTimeoutInSeconds", "type": "int"}, - "max_tones_to_collect": {"key": "maxTonesToCollect", "type": "int"}, - "stop_tones": {"key": "stopTones", "type": "[str]"}, - } - - def __init__( - self, - *, - inter_tone_timeout_in_seconds: Optional[int] = None, - max_tones_to_collect: Optional[int] = None, - stop_tones: Optional[List[Union[str, "_models.DtmfTone"]]] = None, - **kwargs: Any - ) -> None: - """ - :keyword inter_tone_timeout_in_seconds: Time to wait between DTMF inputs to stop recognizing. - :paramtype inter_tone_timeout_in_seconds: int - :keyword max_tones_to_collect: Maximum number of DTMF tones to be collected. - :paramtype max_tones_to_collect: int - :keyword stop_tones: List of tones that will stop recognizing. - :paramtype stop_tones: list[str or ~azure.communication.callautomation.models.DtmfTone] - """ - super().__init__(**kwargs) - self.inter_tone_timeout_in_seconds = inter_tone_timeout_in_seconds - self.max_tones_to_collect = max_tones_to_collect - self.stop_tones = stop_tones - - -class DtmfResult(_serialization.Model): - """DtmfResult. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar tones: - :vartype tones: list[str or ~azure.communication.callautomation.models.DtmfTone] - """ - - _validation = { - "tones": {"readonly": True}, - } - - _attribute_map = { - "tones": {"key": "tones", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.tones: Optional[List[Union[str, "_models.DtmfTone"]]] = None - - -class Error(_serialization.Model): - """Error details. - - :ivar code: Error code. - :vartype code: str - :ivar message: Error message. - :vartype message: str - :ivar inner_error: Inner error details. - :vartype inner_error: ~azure.communication.callautomation.models.Error - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "inner_error": {"key": "innerError", "type": "Error"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - inner_error: Optional["_models.Error"] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: Error code. - :paramtype code: str - :keyword message: Error message. - :paramtype message: str - :keyword inner_error: Inner error details. - :paramtype inner_error: ~azure.communication.callautomation.models.Error - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.inner_error = inner_error - - -class ExternalStorage(_serialization.Model): - """ExternalStorage. - - All required parameters must be populated in order to send to server. - - :ivar recording_storage_kind: Defines the kind of external storage. Required. Known values are: - "AzureCommunicationServices" and "AzureBlobStorage". - :vartype recording_storage_kind: str or - ~azure.communication.callautomation.models.RecordingStorageKind - :ivar recording_destination_container_url: Uri of a container or a location within a container. - :vartype recording_destination_container_url: str - """ - - _validation = { - "recording_storage_kind": {"required": True}, - } - - _attribute_map = { - "recording_storage_kind": {"key": "recordingStorageKind", "type": "str"}, - "recording_destination_container_url": {"key": "recordingDestinationContainerUrl", "type": "str"}, + "recording_storage_kind": {"key": "recordingStorageKind", "type": "str"}, + "recording_destination_container_url": {"key": "recordingDestinationContainerUrl", "type": "str"}, } def __init__( @@ -3090,287 +2098,59 @@ class FileSource(_serialization.Model): :vartype uri: str """ - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: str, **kwargs: Any) -> None: - """ - :keyword uri: Uri for the audio file to be played. Required. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GetParticipantsResponse(_serialization.Model): - """The response payload for getting participants of the call. - - All required parameters must be populated in order to send to server. - - :ivar value: List of the current participants in the call. Required. - :vartype value: list[~azure.communication.callautomation.models.CallParticipant] - :ivar next_link: Continue of the list of participants. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[CallParticipant]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: List["_models.CallParticipant"], next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: List of the current participants in the call. Required. - :paramtype value: list[~azure.communication.callautomation.models.CallParticipant] - :keyword next_link: Continue of the list of participants. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class HoldAudioCompleted(_serialization.Model): - """Hold Audio Completed event. - - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - - _attribute_map = { - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - super().__init__(**kwargs) - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information - - -class HoldAudioPaused(_serialization.Model): - """Hold Audio Paused event. - - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - - _attribute_map = { - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - super().__init__(**kwargs) - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information - - -class HoldAudioResumed(_serialization.Model): - """Hold Audio Resumed event. - - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - - _attribute_map = { - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation + _validation = { + "uri": {"required": True}, + } + + _attribute_map = { + "uri": {"key": "uri", "type": "str"}, + } + + def __init__(self, *, uri: str, **kwargs: Any) -> None: + """ + :keyword uri: Uri for the audio file to be played. Required. + :paramtype uri: str """ super().__init__(**kwargs) - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information + self.uri = uri -class HoldAudioStarted(_serialization.Model): - """Hold Audio Started event. +class GetParticipantsResponse(_serialization.Model): + """The response payload for getting participants of the call. - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation + All required parameters must be populated in order to send to server. + + :ivar value: List of the current participants in the call. Required. + :vartype value: list[~azure.communication.callautomation.models.CallParticipant] + :ivar next_link: Continue of the list of participants. + :vartype next_link: str """ + _validation = { + "value": {"required": True}, + } + _attribute_map = { - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, + "value": {"key": "value", "type": "[CallParticipant]"}, + "next_link": {"key": "nextLink", "type": "str"}, } def __init__( - self, - *, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any + self, *, value: List["_models.CallParticipant"], next_link: Optional[str] = None, **kwargs: Any ) -> None: """ - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation + :keyword value: List of the current participants in the call. Required. + :paramtype value: list[~azure.communication.callautomation.models.CallParticipant] + :keyword next_link: Continue of the list of participants. + :paramtype next_link: str """ super().__init__(**kwargs) - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information + self.value = value + self.next_link = next_link class HoldFailed(_serialization.Model): - """Hold Failed event. + """HoldFailed. :ivar call_connection_id: Call connection ID. :vartype call_connection_id: str @@ -3488,115 +2268,6 @@ def __init__( self.operation_callback_uri = operation_callback_uri -class IncomingCall(_serialization.Model): - """The incoming call event. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar to: The communication identifier of the target user. - :vartype to: ~azure.communication.callautomation.models.CommunicationIdentifierModel - :ivar from_property: The communication identifier of the user who initiated the call. - :vartype from_property: ~azure.communication.callautomation.models.CommunicationIdentifierModel - :ivar caller_display_name: Display name of caller. - :vartype caller_display_name: str - :ivar server_call_id: The server call id. - :vartype server_call_id: str - :ivar custom_context: Custom Context of Incoming Call. - :vartype custom_context: ~azure.communication.callautomation.models.CustomCallingContext - :ivar incoming_call_context: Incoming call context. - :vartype incoming_call_context: str - :ivar on_behalf_of_callee: The communication identifier of the user on behalf of whom the call - is made. - :vartype on_behalf_of_callee: - ~azure.communication.callautomation.models.CommunicationIdentifierModel - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - """ - - _validation = { - "to": {"readonly": True}, - "from_property": {"readonly": True}, - "caller_display_name": {"readonly": True}, - "server_call_id": {"readonly": True}, - "custom_context": {"readonly": True}, - "incoming_call_context": {"readonly": True}, - "on_behalf_of_callee": {"readonly": True}, - "correlation_id": {"readonly": True}, - } - - _attribute_map = { - "to": {"key": "to", "type": "CommunicationIdentifierModel"}, - "from_property": {"key": "from", "type": "CommunicationIdentifierModel"}, - "caller_display_name": {"key": "callerDisplayName", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "custom_context": {"key": "customContext", "type": "CustomCallingContext"}, - "incoming_call_context": {"key": "incomingCallContext", "type": "str"}, - "on_behalf_of_callee": {"key": "onBehalfOfCallee", "type": "CommunicationIdentifierModel"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.to: Optional["_models.CommunicationIdentifierModel"] = None - self.from_property: Optional["_models.CommunicationIdentifierModel"] = None - self.caller_display_name: Optional[str] = None - self.server_call_id: Optional[str] = None - self.custom_context: Optional["_models.CustomCallingContext"] = None - self.incoming_call_context: Optional[str] = None - self.on_behalf_of_callee: Optional["_models.CommunicationIdentifierModel"] = None - self.correlation_id: Optional[str] = None - - -class InterruptAudioAndAnnounceRequest(_serialization.Model): - """InterruptAudioAndAnnounceRequest. - - All required parameters must be populated in order to send to server. - - :ivar play_sources: The source of the audio to be played. Required. - :vartype play_sources: list[~azure.communication.callautomation.models.PlaySource] - :ivar play_to: The list of call participants play provided audio to. - Plays to everyone in the call when not provided. Required. - :vartype play_to: ~azure.communication.callautomation.models.CommunicationIdentifierModel - :ivar operation_context: The value to identify context of the operation. - :vartype operation_context: str - """ - - _validation = { - "play_sources": {"required": True}, - "play_to": {"required": True}, - } - - _attribute_map = { - "play_sources": {"key": "playSources", "type": "[PlaySource]"}, - "play_to": {"key": "playTo", "type": "CommunicationIdentifierModel"}, - "operation_context": {"key": "operationContext", "type": "str"}, - } - - def __init__( - self, - *, - play_sources: List["_models.PlaySource"], - play_to: "_models.CommunicationIdentifierModel", - operation_context: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword play_sources: The source of the audio to be played. Required. - :paramtype play_sources: list[~azure.communication.callautomation.models.PlaySource] - :keyword play_to: The list of call participants play provided audio to. - Plays to everyone in the call when not provided. Required. - :paramtype play_to: ~azure.communication.callautomation.models.CommunicationIdentifierModel - :keyword operation_context: The value to identify context of the operation. - :paramtype operation_context: str - """ - super().__init__(**kwargs) - self.play_sources = play_sources - self.play_to = play_to - self.operation_context = operation_context - - class MediaStreamingFailed(_serialization.Model): """MediaStreamingFailed. @@ -3667,93 +2338,47 @@ def __init__( class MediaStreamingOptions(_serialization.Model): - """Configuration of Media streaming. + """Options for media streaming. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + WebSocketMediaStreamingOptions All required parameters must be populated in order to send to server. - :ivar transport_url: Transport URL for media streaming. Required. - :vartype transport_url: str - :ivar transport_type: The type of transport to be used for media streaming, eg. Websocket. - Required. "websocket" + :ivar transport_type: Defines the transport type used for streaming. Note that future values + may be introduced that are not currently documented. Required. "websocket" :vartype transport_type: str or - ~azure.communication.callautomation.models.MediaStreamingTransportType - :ivar content_type: Content type to stream, eg. audio. Required. "audio" - :vartype content_type: str or - ~azure.communication.callautomation.models.MediaStreamingContentType - :ivar audio_channel_type: Audio channel type to stream, eg. unmixed audio, mixed audio. + ~azure.communication.callautomation.models.StreamingTransportType + :ivar audio_channel_type: The audio channel type to stream, e.g., unmixed audio, mixed audio. Required. Known values are: "mixed" and "unmixed". :vartype audio_channel_type: str or ~azure.communication.callautomation.models.MediaStreamingAudioChannelType - :ivar start_media_streaming: Determines if the media streaming should be started immediately - after call is answered or not. - :vartype start_media_streaming: bool - :ivar enable_bidirectional: A value indicating whether bidirectional streaming is enabled. - :vartype enable_bidirectional: bool - :ivar audio_format: Specifies the audio format used for encoding, including sample rate and - channel type. Known values are: "Pcm16KMono" and "Pcm24KMono". - :vartype audio_format: str or ~azure.communication.callautomation.models.AudioFormat """ _validation = { - "transport_url": {"required": True}, "transport_type": {"required": True}, - "content_type": {"required": True}, "audio_channel_type": {"required": True}, } _attribute_map = { - "transport_url": {"key": "transportUrl", "type": "str"}, "transport_type": {"key": "transportType", "type": "str"}, - "content_type": {"key": "contentType", "type": "str"}, "audio_channel_type": {"key": "audioChannelType", "type": "str"}, - "start_media_streaming": {"key": "startMediaStreaming", "type": "bool"}, - "enable_bidirectional": {"key": "enableBidirectional", "type": "bool"}, - "audio_format": {"key": "audioFormat", "type": "str"}, } + _subtype_map = {"transport_type": {"websocket": "WebSocketMediaStreamingOptions"}} + def __init__( - self, - *, - transport_url: str, - transport_type: Union[str, "_models.MediaStreamingTransportType"], - content_type: Union[str, "_models.MediaStreamingContentType"], - audio_channel_type: Union[str, "_models.MediaStreamingAudioChannelType"], - start_media_streaming: Optional[bool] = None, - enable_bidirectional: Optional[bool] = None, - audio_format: Optional[Union[str, "_models.AudioFormat"]] = None, - **kwargs: Any + self, *, audio_channel_type: Union[str, "_models.MediaStreamingAudioChannelType"], **kwargs: Any ) -> None: """ - :keyword transport_url: Transport URL for media streaming. Required. - :paramtype transport_url: str - :keyword transport_type: The type of transport to be used for media streaming, eg. Websocket. - Required. "websocket" - :paramtype transport_type: str or - ~azure.communication.callautomation.models.MediaStreamingTransportType - :keyword content_type: Content type to stream, eg. audio. Required. "audio" - :paramtype content_type: str or - ~azure.communication.callautomation.models.MediaStreamingContentType - :keyword audio_channel_type: Audio channel type to stream, eg. unmixed audio, mixed audio. - Required. Known values are: "mixed" and "unmixed". + :keyword audio_channel_type: The audio channel type to stream, e.g., unmixed audio, mixed + audio. Required. Known values are: "mixed" and "unmixed". :paramtype audio_channel_type: str or ~azure.communication.callautomation.models.MediaStreamingAudioChannelType - :keyword start_media_streaming: Determines if the media streaming should be started immediately - after call is answered or not. - :paramtype start_media_streaming: bool - :keyword enable_bidirectional: A value indicating whether bidirectional streaming is enabled. - :paramtype enable_bidirectional: bool - :keyword audio_format: Specifies the audio format used for encoding, including sample rate and - channel type. Known values are: "Pcm16KMono" and "Pcm24KMono". - :paramtype audio_format: str or ~azure.communication.callautomation.models.AudioFormat """ super().__init__(**kwargs) - self.transport_url = transport_url - self.transport_type = transport_type - self.content_type = content_type + self.transport_type: Optional[str] = None self.audio_channel_type = audio_channel_type - self.start_media_streaming = start_media_streaming - self.enable_bidirectional = enable_bidirectional - self.audio_format = audio_format class MediaStreamingStarted(_serialization.Model): @@ -4423,103 +3048,23 @@ class PlayOptions(_serialization.Model): :ivar loop: The option to play the provided audio source in loop when set to true. Required. :vartype loop: bool - :ivar interrupt_call_media_operation: If set play can barge into other existing - queued-up/currently-processing requests. - :vartype interrupt_call_media_operation: bool - :ivar interrupt_hold_audio: If set, hold audio will be interrupted, then this request will be - played, and then the hold audio will be resumed. - :vartype interrupt_hold_audio: bool - """ - - _validation = { - "loop": {"required": True}, - } - - _attribute_map = { - "loop": {"key": "loop", "type": "bool"}, - "interrupt_call_media_operation": {"key": "interruptCallMediaOperation", "type": "bool"}, - "interrupt_hold_audio": {"key": "interruptHoldAudio", "type": "bool"}, - } - - def __init__( - self, - *, - loop: bool, - interrupt_call_media_operation: Optional[bool] = None, - interrupt_hold_audio: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword loop: The option to play the provided audio source in loop when set to true. Required. - :paramtype loop: bool - :keyword interrupt_call_media_operation: If set play can barge into other existing - queued-up/currently-processing requests. - :paramtype interrupt_call_media_operation: bool - :keyword interrupt_hold_audio: If set, hold audio will be interrupted, then this request will - be played, and then the hold audio will be resumed. - :paramtype interrupt_hold_audio: bool - """ - super().__init__(**kwargs) - self.loop = loop - self.interrupt_call_media_operation = interrupt_call_media_operation - self.interrupt_hold_audio = interrupt_hold_audio - - -class PlayPaused(_serialization.Model): - """Play Paused event. - - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation """ - _attribute_map = { - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation + _validation = { + "loop": {"required": True}, + } + + _attribute_map = { + "loop": {"key": "loop", "type": "bool"}, + } + + def __init__(self, *, loop: bool, **kwargs: Any) -> None: + """ + :keyword loop: The option to play the provided audio source in loop when set to true. Required. + :paramtype loop: bool """ super().__init__(**kwargs) - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information + self.loop = loop class PlayRequest(_serialization.Model): @@ -4532,6 +3077,9 @@ class PlayRequest(_serialization.Model): :ivar play_to: The list of call participants play provided audio to. Plays to everyone in the call when not provided. :vartype play_to: list[~azure.communication.callautomation.models.CommunicationIdentifierModel] + :ivar interrupt_call_media_operation: If set play can barge into other existing + queued-up/currently-processing requests. + :vartype interrupt_call_media_operation: bool :ivar play_options: Defines options for playing the audio. :vartype play_options: ~azure.communication.callautomation.models.PlayOptions :ivar operation_context: The value to identify context of the operation. @@ -4550,6 +3098,7 @@ class PlayRequest(_serialization.Model): _attribute_map = { "play_sources": {"key": "playSources", "type": "[PlaySource]"}, "play_to": {"key": "playTo", "type": "[CommunicationIdentifierModel]"}, + "interrupt_call_media_operation": {"key": "interruptCallMediaOperation", "type": "bool"}, "play_options": {"key": "playOptions", "type": "PlayOptions"}, "operation_context": {"key": "operationContext", "type": "str"}, "operation_callback_uri": {"key": "operationCallbackUri", "type": "str"}, @@ -4560,6 +3109,7 @@ def __init__( *, play_sources: List["_models.PlaySource"], play_to: Optional[List["_models.CommunicationIdentifierModel"]] = None, + interrupt_call_media_operation: Optional[bool] = None, play_options: Optional["_models.PlayOptions"] = None, operation_context: Optional[str] = None, operation_callback_uri: Optional[str] = None, @@ -4572,6 +3122,9 @@ def __init__( Plays to everyone in the call when not provided. :paramtype play_to: list[~azure.communication.callautomation.models.CommunicationIdentifierModel] + :keyword interrupt_call_media_operation: If set play can barge into other existing + queued-up/currently-processing requests. + :paramtype interrupt_call_media_operation: bool :keyword play_options: Defines options for playing the audio. :paramtype play_options: ~azure.communication.callautomation.models.PlayOptions :keyword operation_context: The value to identify context of the operation. @@ -4585,68 +3138,12 @@ def __init__( super().__init__(**kwargs) self.play_sources = play_sources self.play_to = play_to + self.interrupt_call_media_operation = interrupt_call_media_operation self.play_options = play_options self.operation_context = operation_context self.operation_callback_uri = operation_callback_uri -class PlayResumed(_serialization.Model): - """Play Resumed event. - - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar server_call_id: Server call ID. - :vartype server_call_id: str - :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :vartype correlation_id: str - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :vartype operation_context: str - :ivar result_information: Contains the resulting SIP code, sub-code and message. - :vartype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - - _attribute_map = { - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "server_call_id": {"key": "serverCallId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "result_information": {"key": "resultInformation", "type": "ResultInformation"}, - } - - def __init__( - self, - *, - call_connection_id: Optional[str] = None, - server_call_id: Optional[str] = None, - correlation_id: Optional[str] = None, - operation_context: Optional[str] = None, - result_information: Optional["_models.ResultInformation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword server_call_id: Server call ID. - :paramtype server_call_id: str - :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for - skype chain ID. - :paramtype correlation_id: str - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - :keyword result_information: Contains the resulting SIP code, sub-code and message. - :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation - """ - super().__init__(**kwargs) - self.call_connection_id = call_connection_id - self.server_call_id = server_call_id - self.correlation_id = correlation_id - self.operation_context = operation_context - self.result_information = result_information - - class PlaySource(_serialization.Model): """PlaySource. @@ -4766,52 +3263,6 @@ def __init__( self.result_information = result_information -class PowerVirtualAgentsDialog(BaseDialog): - """Power Virtual Agents Dialog. - - All required parameters must be populated in order to send to server. - - :ivar kind: Determines the type of the dialog. Required. Known values are: "powerVirtualAgents" - and "azureOpenAI". - :vartype kind: str or ~azure.communication.callautomation.models.DialogInputType - :ivar context: Dialog context. Required. - :vartype context: dict[str, JSON] - :ivar bot_app_id: Bot identifier. Required. - :vartype bot_app_id: str - :ivar language: Language. - :vartype language: str - """ - - _validation = { - "kind": {"required": True}, - "context": {"required": True}, - "bot_app_id": {"required": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "context": {"key": "context", "type": "{object}"}, - "bot_app_id": {"key": "botAppId", "type": "str"}, - "language": {"key": "language", "type": "str"}, - } - - def __init__( - self, *, context: Dict[str, JSON], bot_app_id: str, language: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword context: Dialog context. Required. - :paramtype context: dict[str, JSON] - :keyword bot_app_id: Bot identifier. Required. - :paramtype bot_app_id: str - :keyword language: Language. - :paramtype language: str - """ - super().__init__(context=context, **kwargs) - self.kind: str = "powerVirtualAgents" - self.bot_app_id = bot_app_id - self.language = language - - class RecognizeCanceled(_serialization.Model): """RecognizeCanceled. @@ -5195,135 +3646,6 @@ def __init__( self.operation_callback_uri = operation_callback_uri -class RecordingChunkStorageInfo(_serialization.Model): - """Recording chunk data. - - :ivar document_id: Chunk document id. - :vartype document_id: str - :ivar index: Chunks order in a multi chunk recording. - :vartype index: int - :ivar end_reason: Reason this chunk ended. Known values are: "chunkIsBeingRecorded", - "sessionEnded", "chunkMaximumSizeExceeded", "chunkMaximumTimeExceeded", and - "chunkUploadFailure". - :vartype end_reason: str or ~azure.communication.callautomation.models.ChunkEndReason - :ivar content_location: Location of the chunk. - :vartype content_location: str - :ivar metadata_location: Location of chunk metadata. - :vartype metadata_location: str - :ivar delete_location: Callback for deleting chunk. - :vartype delete_location: str - """ - - _attribute_map = { - "document_id": {"key": "documentId", "type": "str"}, - "index": {"key": "index", "type": "int"}, - "end_reason": {"key": "endReason", "type": "str"}, - "content_location": {"key": "contentLocation", "type": "str"}, - "metadata_location": {"key": "metadataLocation", "type": "str"}, - "delete_location": {"key": "deleteLocation", "type": "str"}, - } - - def __init__( - self, - *, - document_id: Optional[str] = None, - index: Optional[int] = None, - end_reason: Optional[Union[str, "_models.ChunkEndReason"]] = None, - content_location: Optional[str] = None, - metadata_location: Optional[str] = None, - delete_location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword document_id: Chunk document id. - :paramtype document_id: str - :keyword index: Chunks order in a multi chunk recording. - :paramtype index: int - :keyword end_reason: Reason this chunk ended. Known values are: "chunkIsBeingRecorded", - "sessionEnded", "chunkMaximumSizeExceeded", "chunkMaximumTimeExceeded", and - "chunkUploadFailure". - :paramtype end_reason: str or ~azure.communication.callautomation.models.ChunkEndReason - :keyword content_location: Location of the chunk. - :paramtype content_location: str - :keyword metadata_location: Location of chunk metadata. - :paramtype metadata_location: str - :keyword delete_location: Callback for deleting chunk. - :paramtype delete_location: str - """ - super().__init__(**kwargs) - self.document_id = document_id - self.index = index - self.end_reason = end_reason - self.content_location = content_location - self.metadata_location = metadata_location - self.delete_location = delete_location - - -class RecordingResultResponse(_serialization.Model): - """Recording result data. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar recording_id: - :vartype recording_id: str - :ivar recording_storage_info: Container for chunks. - :vartype recording_storage_info: - ~azure.communication.callautomation.models.RecordingStorageInfo - :ivar errors: - :vartype errors: list[~azure.communication.callautomation.models.Error] - :ivar recording_start_time: - :vartype recording_start_time: ~datetime.datetime - :ivar recording_duration_ms: - :vartype recording_duration_ms: int - :ivar session_end_reason: Known values are: "sessionStillOngoing", "callEnded", - "initiatorLeft", "handedOverOrTransfered", "maximumSessionTimeReached", "callStartTimeout", - "mediaTimeout", "audioStreamFailure", "allInstancesBusy", "teamsTokenConversionFailed", - "reportCallStateFailed", "reportCallStateFailedAndSessionMustBeDiscarded", - "couldNotRejoinCall", "invalidBotData", "couldNotStart", - "appHostedMediaFailureOutcomeWithError", "appHostedMediaFailureOutcomeGracefully", - "handedOverDueToMediaTimeout", "handedOverDueToAudioStreamFailure", - "speechRecognitionSessionNonRetriableError", - "speechRecognitionSessionRetriableErrorMaxRetryCountReached", - "handedOverDueToChunkCreationFailure", "chunkCreationFailed", - "handedOverDueToProcessingTimeout", "processingTimeout", and "transcriptObjectCreationFailed". - :vartype session_end_reason: str or - ~azure.communication.callautomation.models.CallSessionEndReason - :ivar recording_expiration_time: - :vartype recording_expiration_time: ~datetime.datetime - """ - - _validation = { - "recording_id": {"readonly": True}, - "recording_storage_info": {"readonly": True}, - "errors": {"readonly": True}, - "recording_start_time": {"readonly": True}, - "recording_duration_ms": {"readonly": True}, - "session_end_reason": {"readonly": True}, - "recording_expiration_time": {"readonly": True}, - } - - _attribute_map = { - "recording_id": {"key": "recordingId", "type": "str"}, - "recording_storage_info": {"key": "recordingStorageInfo", "type": "RecordingStorageInfo"}, - "errors": {"key": "errors", "type": "[Error]"}, - "recording_start_time": {"key": "recordingStartTime", "type": "iso-8601"}, - "recording_duration_ms": {"key": "recordingDurationMs", "type": "int"}, - "session_end_reason": {"key": "sessionEndReason", "type": "str"}, - "recording_expiration_time": {"key": "recordingExpirationTime", "type": "iso-8601"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.recording_id: Optional[str] = None - self.recording_storage_info: Optional["_models.RecordingStorageInfo"] = None - self.errors: Optional[List["_models.Error"]] = None - self.recording_start_time: Optional[datetime.datetime] = None - self.recording_duration_ms: Optional[int] = None - self.session_end_reason: Optional[Union[str, "_models.CallSessionEndReason"]] = None - self.recording_expiration_time: Optional[datetime.datetime] = None - - class RecordingStateChanged(_serialization.Model): """RecordingStateChanged. @@ -5444,32 +3766,6 @@ def __init__( self.recording_kind = recording_kind -class RecordingStorageInfo(_serialization.Model): - """Container for chunks. - - :ivar recording_chunks: Collection of - {Microsoft.Skype.Platform.ExecutionAgent.Azure.Communication.Service.ServerCalling.Content.Contracts.ALPHA4_2024_09_01_preview.Models.RecordingChunkStorageInfo}. - :vartype recording_chunks: - list[~azure.communication.callautomation.models.RecordingChunkStorageInfo] - """ - - _attribute_map = { - "recording_chunks": {"key": "recordingChunks", "type": "[RecordingChunkStorageInfo]"}, - } - - def __init__( - self, *, recording_chunks: Optional[List["_models.RecordingChunkStorageInfo"]] = None, **kwargs: Any - ) -> None: - """ - :keyword recording_chunks: Collection of - {Microsoft.Skype.Platform.ExecutionAgent.Azure.Communication.Service.ServerCalling.Content.Contracts.ALPHA4_2024_09_01_preview.Models.RecordingChunkStorageInfo}. - :paramtype recording_chunks: - list[~azure.communication.callautomation.models.RecordingChunkStorageInfo] - """ - super().__init__(**kwargs) - self.recording_chunks = recording_chunks - - class RedirectCallRequest(_serialization.Model): """The request payload for redirecting the call. @@ -5479,9 +3775,6 @@ class RedirectCallRequest(_serialization.Model): :vartype incoming_call_context: str :ivar target: The target identity to redirect the call to. Required. :vartype target: ~azure.communication.callautomation.models.CommunicationIdentifierModel - :ivar custom_calling_context: Used by customer to send custom calling context to targets. - :vartype custom_calling_context: - ~azure.communication.callautomation.models.CustomCallingContext """ _validation = { @@ -5492,30 +3785,20 @@ class RedirectCallRequest(_serialization.Model): _attribute_map = { "incoming_call_context": {"key": "incomingCallContext", "type": "str"}, "target": {"key": "target", "type": "CommunicationIdentifierModel"}, - "custom_calling_context": {"key": "customCallingContext", "type": "CustomCallingContext"}, } def __init__( - self, - *, - incoming_call_context: str, - target: "_models.CommunicationIdentifierModel", - custom_calling_context: Optional["_models.CustomCallingContext"] = None, - **kwargs: Any + self, *, incoming_call_context: str, target: "_models.CommunicationIdentifierModel", **kwargs: Any ) -> None: """ :keyword incoming_call_context: The context associated with the call. Required. :paramtype incoming_call_context: str :keyword target: The target identity to redirect the call to. Required. :paramtype target: ~azure.communication.callautomation.models.CommunicationIdentifierModel - :keyword custom_calling_context: Used by customer to send custom calling context to targets. - :paramtype custom_calling_context: - ~azure.communication.callautomation.models.CustomCallingContext """ super().__init__(**kwargs) self.incoming_call_context = incoming_call_context self.target = target - self.custom_calling_context = custom_calling_context class RejectCallRequest(_serialization.Model): @@ -6027,19 +4310,27 @@ class SpeechResult(_serialization.Model): :ivar speech: The recognized speech in string. :vartype speech: str + :ivar confidence: The confidence level of the recognized speech, if available, ranges from 0.0 + to 1.0. + :vartype confidence: float """ _attribute_map = { "speech": {"key": "speech", "type": "str"}, + "confidence": {"key": "confidence", "type": "float"}, } - def __init__(self, *, speech: Optional[str] = None, **kwargs: Any) -> None: + def __init__(self, *, speech: Optional[str] = None, confidence: Optional[float] = None, **kwargs: Any) -> None: """ :keyword speech: The recognized speech in string. :paramtype speech: str + :keyword confidence: The confidence level of the recognized speech, if available, ranges from + 0.0 to 1.0. + :paramtype confidence: float """ super().__init__(**kwargs) self.speech = speech + self.confidence = confidence class SsmlSource(_serialization.Model): @@ -6077,11 +4368,10 @@ def __init__(self, *, ssml_text: str, custom_voice_endpoint_id: Optional[str] = class StartCallRecordingRequest(_serialization.Model): """The request payload start for call recording operation with call locator. - :ivar call_locator: The call locator. (Only one of callLocator or callConnectionId to be used). + All required parameters must be populated in order to send to server. + + :ivar call_locator: The call locator. Required. :vartype call_locator: ~azure.communication.callautomation.models.CallLocator - :ivar call_connection_id: The call connectionId. (Only one of callLocator or callConnectionId - to be used). - :vartype call_connection_id: str :ivar recording_state_callback_uri: The uri to send notifications to. :vartype recording_state_callback_uri: str :ivar recording_content_type: The content type of call recording. Known values are: "audio" and @@ -6119,9 +4409,12 @@ class StartCallRecordingRequest(_serialization.Model): :vartype external_storage: ~azure.communication.callautomation.models.ExternalStorage """ + _validation = { + "call_locator": {"required": True}, + } + _attribute_map = { "call_locator": {"key": "callLocator", "type": "CallLocator"}, - "call_connection_id": {"key": "callConnectionId", "type": "str"}, "recording_state_callback_uri": {"key": "recordingStateCallbackUri", "type": "str"}, "recording_content_type": {"key": "recordingContentType", "type": "str"}, "recording_channel_type": {"key": "recordingChannelType", "type": "str"}, @@ -6138,8 +4431,7 @@ class StartCallRecordingRequest(_serialization.Model): def __init__( self, *, - call_locator: Optional["_models.CallLocator"] = None, - call_connection_id: Optional[str] = None, + call_locator: "_models.CallLocator", recording_state_callback_uri: Optional[str] = None, recording_content_type: Optional[Union[str, "_models.RecordingContent"]] = None, recording_channel_type: Optional[Union[str, "_models.RecordingChannel"]] = None, @@ -6151,12 +4443,8 @@ def __init__( **kwargs: Any ) -> None: """ - :keyword call_locator: The call locator. (Only one of callLocator or callConnectionId to be - used). + :keyword call_locator: The call locator. Required. :paramtype call_locator: ~azure.communication.callautomation.models.CallLocator - :keyword call_connection_id: The call connectionId. (Only one of callLocator or - callConnectionId to be used). - :paramtype call_connection_id: str :keyword recording_state_callback_uri: The uri to send notifications to. :paramtype recording_state_callback_uri: str :keyword recording_content_type: The content type of call recording. Known values are: "audio" @@ -6196,7 +4484,6 @@ def __init__( """ super().__init__(**kwargs) self.call_locator = call_locator - self.call_connection_id = call_connection_id self.recording_state_callback_uri = recording_state_callback_uri self.recording_content_type = recording_content_type self.recording_channel_type = recording_channel_type @@ -6207,57 +4494,6 @@ def __init__( self.external_storage = external_storage -class StartDialogRequest(_serialization.Model): - """StartDialogRequest. - - All required parameters must be populated in order to send to server. - - :ivar dialog: Defines the dialog. Required. - :vartype dialog: ~azure.communication.callautomation.models.BaseDialog - :ivar operation_callback_uri: Set a callback URI that overrides the default callback URI set by - CreateCall/AnswerCall for this operation. - This setup is per-action. If this is not set, the default callback URI set by - CreateCall/AnswerCall will be used. - :vartype operation_callback_uri: str - :ivar operation_context: The value to identify context of the operation. - :vartype operation_context: str - """ - - _validation = { - "dialog": {"required": True}, - } - - _attribute_map = { - "dialog": {"key": "dialog", "type": "BaseDialog"}, - "operation_callback_uri": {"key": "operationCallbackUri", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - } - - def __init__( - self, - *, - dialog: "_models.BaseDialog", - operation_callback_uri: Optional[str] = None, - operation_context: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword dialog: Defines the dialog. Required. - :paramtype dialog: ~azure.communication.callautomation.models.BaseDialog - :keyword operation_callback_uri: Set a callback URI that overrides the default callback URI set - by CreateCall/AnswerCall for this operation. - This setup is per-action. If this is not set, the default callback URI set by - CreateCall/AnswerCall will be used. - :paramtype operation_callback_uri: str - :keyword operation_context: The value to identify context of the operation. - :paramtype operation_context: str - """ - super().__init__(**kwargs) - self.dialog = dialog - self.operation_callback_uri = operation_callback_uri - self.operation_context = operation_context - - class StartMediaStreamingRequest(_serialization.Model): """StartMediaStreamingRequest. @@ -6266,77 +4502,40 @@ class StartMediaStreamingRequest(_serialization.Model): This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. :vartype operation_callback_uri: str - :ivar operation_context: The value to identify context of the operation. - :vartype operation_context: str - """ - - _attribute_map = { - "operation_callback_uri": {"key": "operationCallbackUri", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - } - - def __init__( - self, *, operation_callback_uri: Optional[str] = None, operation_context: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword operation_callback_uri: Set a callback URI that overrides the default callback URI set - by CreateCall/AnswerCall for this operation. - This setup is per-action. If this is not set, the default callback URI set by - CreateCall/AnswerCall will be used. - :paramtype operation_callback_uri: str - :keyword operation_context: The value to identify context of the operation. - :paramtype operation_context: str - """ - super().__init__(**kwargs) - self.operation_callback_uri = operation_callback_uri - self.operation_context = operation_context - - -class StartRecordingFailed(_serialization.Model): - """StartRecordingFailed. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar call_connection_id: Call connection ID. - :vartype call_connection_id: str - :ivar correlation_id: Correlation ID for event to call correlation. - :vartype correlation_id: str - :ivar recording_id: The call recording id. - :vartype recording_id: str - """ - - _validation = { - "recording_id": {"readonly": True}, - } + :ivar operation_context: The value to identify context of the operation. + :vartype operation_context: str + """ _attribute_map = { - "call_connection_id": {"key": "callConnectionId", "type": "str"}, - "correlation_id": {"key": "correlationId", "type": "str"}, - "recording_id": {"key": "recordingId", "type": "str"}, + "operation_callback_uri": {"key": "operationCallbackUri", "type": "str"}, + "operation_context": {"key": "operationContext", "type": "str"}, } def __init__( - self, *, call_connection_id: Optional[str] = None, correlation_id: Optional[str] = None, **kwargs: Any + self, *, operation_callback_uri: Optional[str] = None, operation_context: Optional[str] = None, **kwargs: Any ) -> None: """ - :keyword call_connection_id: Call connection ID. - :paramtype call_connection_id: str - :keyword correlation_id: Correlation ID for event to call correlation. - :paramtype correlation_id: str + :keyword operation_callback_uri: Set a callback URI that overrides the default callback URI set + by CreateCall/AnswerCall for this operation. + This setup is per-action. If this is not set, the default callback URI set by + CreateCall/AnswerCall will be used. + :paramtype operation_callback_uri: str + :keyword operation_context: The value to identify context of the operation. + :paramtype operation_context: str """ super().__init__(**kwargs) - self.call_connection_id = call_connection_id - self.correlation_id = correlation_id - self.recording_id: Optional[str] = None + self.operation_callback_uri = operation_callback_uri + self.operation_context = operation_context class StartTranscriptionRequest(_serialization.Model): """StartTranscriptionRequest. - :ivar locale: Defines Locale for the transcription e,g en-US. + :ivar locale: Specifies the Locale used for transcription, e.g., en-CA or en-AU. :vartype locale: str - :ivar speech_recognition_model_endpoint_id: Endpoint where the custom model was deployed. - :vartype speech_recognition_model_endpoint_id: str + :ivar speech_model_endpoint_id: The ID of the deployed custom model in GUID format. The GUID is + generated by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + :vartype speech_model_endpoint_id: str :ivar operation_context: The value to identify context of the operation. :vartype operation_context: str :ivar operation_callback_uri: Set a callback URI that overrides the default callback URI set by @@ -6348,7 +4547,7 @@ class StartTranscriptionRequest(_serialization.Model): _attribute_map = { "locale": {"key": "locale", "type": "str"}, - "speech_recognition_model_endpoint_id": {"key": "speechRecognitionModelEndpointId", "type": "str"}, + "speech_model_endpoint_id": {"key": "speechModelEndpointId", "type": "str"}, "operation_context": {"key": "operationContext", "type": "str"}, "operation_callback_uri": {"key": "operationCallbackUri", "type": "str"}, } @@ -6357,16 +4556,17 @@ def __init__( self, *, locale: Optional[str] = None, - speech_recognition_model_endpoint_id: Optional[str] = None, + speech_model_endpoint_id: Optional[str] = None, operation_context: Optional[str] = None, operation_callback_uri: Optional[str] = None, **kwargs: Any ) -> None: """ - :keyword locale: Defines Locale for the transcription e,g en-US. + :keyword locale: Specifies the Locale used for transcription, e.g., en-CA or en-AU. :paramtype locale: str - :keyword speech_recognition_model_endpoint_id: Endpoint where the custom model was deployed. - :paramtype speech_recognition_model_endpoint_id: str + :keyword speech_model_endpoint_id: The ID of the deployed custom model in GUID format. The GUID + is generated by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + :paramtype speech_model_endpoint_id: str :keyword operation_context: The value to identify context of the operation. :paramtype operation_context: str :keyword operation_callback_uri: Set a callback URI that overrides the default callback URI set @@ -6377,7 +4577,7 @@ def __init__( """ super().__init__(**kwargs) self.locale = locale - self.speech_recognition_model_endpoint_id = speech_recognition_model_endpoint_id + self.speech_model_endpoint_id = speech_model_endpoint_id self.operation_context = operation_context self.operation_callback_uri = operation_callback_uri @@ -6590,78 +4790,41 @@ def __init__( class TranscriptionOptions(_serialization.Model): - """Configuration of live transcription. + """Options for live transcription. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + WebSocketTranscriptionOptions All required parameters must be populated in order to send to server. - :ivar transport_url: Transport URL for live transcription. Required. - :vartype transport_url: str - :ivar transport_type: The type of transport to be used for live transcription, eg. Websocket. - Required. "websocket" + :ivar transport_type: Defines the transport type used for streaming. Note that future values + may be introduced that are not currently documented. Required. "websocket" :vartype transport_type: str or - ~azure.communication.callautomation.models.TranscriptionTransportType - :ivar locale: Defines the locale for the data e.g en-CA, en-AU. Required. + ~azure.communication.callautomation.models.StreamingTransportType + :ivar locale: Specifies the Locale used for transcription, e.g., en-CA or en-AU. Required. :vartype locale: str - :ivar speech_recognition_model_endpoint_id: Endpoint where the custom model was deployed. - :vartype speech_recognition_model_endpoint_id: str - :ivar start_transcription: Determines if the transcription should be started immediately after - call is answered or not. Required. - :vartype start_transcription: bool - :ivar enable_intermediate_results: Enables intermediate results for the transcribed speech. - :vartype enable_intermediate_results: bool """ _validation = { - "transport_url": {"required": True}, "transport_type": {"required": True}, "locale": {"required": True}, - "start_transcription": {"required": True}, } _attribute_map = { - "transport_url": {"key": "transportUrl", "type": "str"}, "transport_type": {"key": "transportType", "type": "str"}, "locale": {"key": "locale", "type": "str"}, - "speech_recognition_model_endpoint_id": {"key": "speechRecognitionModelEndpointId", "type": "str"}, - "start_transcription": {"key": "startTranscription", "type": "bool"}, - "enable_intermediate_results": {"key": "enableIntermediateResults", "type": "bool"}, } - def __init__( - self, - *, - transport_url: str, - transport_type: Union[str, "_models.TranscriptionTransportType"], - locale: str, - start_transcription: bool, - speech_recognition_model_endpoint_id: Optional[str] = None, - enable_intermediate_results: Optional[bool] = None, - **kwargs: Any - ) -> None: + _subtype_map = {"transport_type": {"websocket": "WebSocketTranscriptionOptions"}} + + def __init__(self, *, locale: str, **kwargs: Any) -> None: """ - :keyword transport_url: Transport URL for live transcription. Required. - :paramtype transport_url: str - :keyword transport_type: The type of transport to be used for live transcription, eg. - Websocket. Required. "websocket" - :paramtype transport_type: str or - ~azure.communication.callautomation.models.TranscriptionTransportType - :keyword locale: Defines the locale for the data e.g en-CA, en-AU. Required. + :keyword locale: Specifies the Locale used for transcription, e.g., en-CA or en-AU. Required. :paramtype locale: str - :keyword speech_recognition_model_endpoint_id: Endpoint where the custom model was deployed. - :paramtype speech_recognition_model_endpoint_id: str - :keyword start_transcription: Determines if the transcription should be started immediately - after call is answered or not. Required. - :paramtype start_transcription: bool - :keyword enable_intermediate_results: Enables intermediate results for the transcribed speech. - :paramtype enable_intermediate_results: bool """ super().__init__(**kwargs) - self.transport_url = transport_url - self.transport_type = transport_type + self.transport_type: Optional[str] = None self.locale = locale - self.speech_recognition_model_endpoint_id = speech_recognition_model_endpoint_id - self.start_transcription = start_transcription - self.enable_intermediate_results = enable_intermediate_results class TranscriptionStarted(_serialization.Model): @@ -6812,12 +4975,15 @@ class TranscriptionSubscription(_serialization.Model): :ivar subscribed_result_types: Subscribed transcription result types. :vartype subscribed_result_types: list[str or ~azure.communication.callautomation.models.TranscriptionResultType] + :ivar locale: Specifies the locale used for transcription, e.g., en-CA or en-AU. + :vartype locale: str """ _attribute_map = { "id": {"key": "id", "type": "str"}, "state": {"key": "state", "type": "str"}, "subscribed_result_types": {"key": "subscribedResultTypes", "type": "[str]"}, + "locale": {"key": "locale", "type": "str"}, } def __init__( @@ -6826,6 +4992,7 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin state: Optional[Union[str, "_models.TranscriptionSubscriptionState"]] = None, subscribed_result_types: Optional[List[Union[str, "_models.TranscriptionResultType"]]] = None, + locale: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -6838,11 +5005,14 @@ def __init__( :keyword subscribed_result_types: Subscribed transcription result types. :paramtype subscribed_result_types: list[str or ~azure.communication.callautomation.models.TranscriptionResultType] + :keyword locale: Specifies the locale used for transcription, e.g., en-CA or en-AU. + :paramtype locale: str """ super().__init__(**kwargs) self.id = id self.state = state self.subscribed_result_types = subscribed_result_types + self.locale = locale class TranscriptionUpdate(_serialization.Model): @@ -7075,6 +5245,11 @@ class UnholdRequest(_serialization.Model): :ivar operation_context: Used by customers when calling mid-call actions to correlate the request to the response event. :vartype operation_context: str + :ivar operation_callback_uri: Set a callback URI that overrides the default callback URI set by + CreateCall/AnswerCall for this operation. + This setup is per-action. If this is not set, the default callback URI set by + CreateCall/AnswerCall will be used. + :vartype operation_callback_uri: str """ _validation = { @@ -7084,6 +5259,7 @@ class UnholdRequest(_serialization.Model): _attribute_map = { "target_participant": {"key": "targetParticipant", "type": "CommunicationIdentifierModel"}, "operation_context": {"key": "operationContext", "type": "str"}, + "operation_callback_uri": {"key": "operationCallbackUri", "type": "str"}, } def __init__( @@ -7091,6 +5267,7 @@ def __init__( *, target_participant: "_models.CommunicationIdentifierModel", operation_context: Optional[str] = None, + operation_callback_uri: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -7101,202 +5278,225 @@ def __init__( :keyword operation_context: Used by customers when calling mid-call actions to correlate the request to the response event. :paramtype operation_context: str + :keyword operation_callback_uri: Set a callback URI that overrides the default callback URI set + by CreateCall/AnswerCall for this operation. + This setup is per-action. If this is not set, the default callback URI set by + CreateCall/AnswerCall will be used. + :paramtype operation_callback_uri: str """ super().__init__(**kwargs) self.target_participant = target_participant self.operation_context = operation_context + self.operation_callback_uri = operation_callback_uri -class UnmuteParticipantsRequest(_serialization.Model): - """The request payload for unmuting participant from the call. - - All required parameters must be populated in order to send to server. +class UpdateTranscriptionRequest(_serialization.Model): + """UpdateTranscriptionRequest. - :ivar target_participants: Participants to be unmuted from the call. - Only ACS Users are supported. Required. - :vartype target_participants: - list[~azure.communication.callautomation.models.CommunicationIdentifierModel] - :ivar operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. + :ivar locale: Specifies the Locale used for transcription, e.g., en-CA or en-AU. + :vartype locale: str + :ivar speech_model_endpoint_id: The ID of the deployed custom model, in GUID format, e.g., + a259c255-1cdw-4ed7-a693-dd58563b6f6a. + :vartype speech_model_endpoint_id: str + :ivar operation_context: The value to identify context of the operation. :vartype operation_context: str + :ivar operation_callback_uri: Set a callback URI that overrides the default callback URI set by + CreateCall/AnswerCall for this operation. + This setup is per-action. If this is not set, the default callback URI set by + CreateCall/AnswerCall will be used. + :vartype operation_callback_uri: str """ - _validation = { - "target_participants": {"required": True}, - } - _attribute_map = { - "target_participants": {"key": "targetParticipants", "type": "[CommunicationIdentifierModel]"}, + "locale": {"key": "locale", "type": "str"}, + "speech_model_endpoint_id": {"key": "speechModelEndpointId", "type": "str"}, "operation_context": {"key": "operationContext", "type": "str"}, + "operation_callback_uri": {"key": "operationCallbackUri", "type": "str"}, } def __init__( self, *, - target_participants: List["_models.CommunicationIdentifierModel"], + locale: Optional[str] = None, + speech_model_endpoint_id: Optional[str] = None, operation_context: Optional[str] = None, + operation_callback_uri: Optional[str] = None, **kwargs: Any ) -> None: """ - :keyword target_participants: Participants to be unmuted from the call. - Only ACS Users are supported. Required. - :paramtype target_participants: - list[~azure.communication.callautomation.models.CommunicationIdentifierModel] - :keyword operation_context: Used by customers when calling mid-call actions to correlate the - request to the response event. - :paramtype operation_context: str - """ - super().__init__(**kwargs) - self.target_participants = target_participants - self.operation_context = operation_context - - -class UnmuteParticipantsResponse(_serialization.Model): - """The response payload for unmuting participants from the call. - - :ivar operation_context: The operation context provided by client. - :vartype operation_context: str - """ - - _attribute_map = { - "operation_context": {"key": "operationContext", "type": "str"}, - } - - def __init__(self, *, operation_context: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword operation_context: The operation context provided by client. + :keyword locale: Specifies the Locale used for transcription, e.g., en-CA or en-AU. + :paramtype locale: str + :keyword speech_model_endpoint_id: The ID of the deployed custom model, in GUID format, e.g., + a259c255-1cdw-4ed7-a693-dd58563b6f6a. + :paramtype speech_model_endpoint_id: str + :keyword operation_context: The value to identify context of the operation. :paramtype operation_context: str + :keyword operation_callback_uri: Set a callback URI that overrides the default callback URI set + by CreateCall/AnswerCall for this operation. + This setup is per-action. If this is not set, the default callback URI set by + CreateCall/AnswerCall will be used. + :paramtype operation_callback_uri: str """ super().__init__(**kwargs) + self.locale = locale + self.speech_model_endpoint_id = speech_model_endpoint_id self.operation_context = operation_context + self.operation_callback_uri = operation_callback_uri -class UpdateDialogRequest(_serialization.Model): - """UpdateDialogRequest. +class WebSocketMediaStreamingOptions(MediaStreamingOptions): + """Represents the options for WebSocket transport. All required parameters must be populated in order to send to server. - :ivar dialog: Dialog context. Required. - :vartype dialog: ~azure.communication.callautomation.models.DialogUpdateBase - :ivar operation_callback_uri: Set a callback URI that overrides the default callback URI set by - CreateCall/AnswerCall for this operation. - This setup is per-action. If this is not set, the default callback URI set by - CreateCall/AnswerCall will be used. - :vartype operation_callback_uri: str - :ivar operation_context: The value to identify context of the operation. - :vartype operation_context: str + :ivar transport_type: Defines the transport type used for streaming. Note that future values + may be introduced that are not currently documented. Required. "websocket" + :vartype transport_type: str or + ~azure.communication.callautomation.models.StreamingTransportType + :ivar audio_channel_type: The audio channel type to stream, e.g., unmixed audio, mixed audio. + Required. Known values are: "mixed" and "unmixed". + :vartype audio_channel_type: str or + ~azure.communication.callautomation.models.MediaStreamingAudioChannelType + :ivar transport_url: The transport URL for media streaming. + :vartype transport_url: str + :ivar content_type: "audio" + :vartype content_type: str or + ~azure.communication.callautomation.models.MediaStreamingContentType + :ivar start_media_streaming: A value indicating whether the media streaming should start + immediately after the call is answered. + :vartype start_media_streaming: bool + :ivar enable_bidirectional: A value indicating whether bidirectional streaming is enabled. + :vartype enable_bidirectional: bool + :ivar audio_format: The audio format used for encoding, including sample rate and channel type. + The default is Pcm16KMono. Known values are: "pcm16KMono" and "pcm24KMono". + :vartype audio_format: str or ~azure.communication.callautomation.models.AudioFormat + :ivar enable_dtmf_tones: A value that indicates whether to stream the DTMF tones. + :vartype enable_dtmf_tones: bool """ _validation = { - "dialog": {"required": True}, + "transport_type": {"required": True}, + "audio_channel_type": {"required": True}, } _attribute_map = { - "dialog": {"key": "dialog", "type": "DialogUpdateBase"}, - "operation_callback_uri": {"key": "operationCallbackUri", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, + "transport_type": {"key": "transportType", "type": "str"}, + "audio_channel_type": {"key": "audioChannelType", "type": "str"}, + "transport_url": {"key": "transportUrl", "type": "str"}, + "content_type": {"key": "contentType", "type": "str"}, + "start_media_streaming": {"key": "startMediaStreaming", "type": "bool"}, + "enable_bidirectional": {"key": "enableBidirectional", "type": "bool"}, + "audio_format": {"key": "audioFormat", "type": "str"}, + "enable_dtmf_tones": {"key": "enableDtmfTones", "type": "bool"}, } def __init__( self, *, - dialog: "_models.DialogUpdateBase", - operation_callback_uri: Optional[str] = None, - operation_context: Optional[str] = None, + audio_channel_type: Union[str, "_models.MediaStreamingAudioChannelType"], + transport_url: Optional[str] = None, + content_type: Optional[Union[str, "_models.MediaStreamingContentType"]] = None, + start_media_streaming: Optional[bool] = None, + enable_bidirectional: Optional[bool] = None, + audio_format: Optional[Union[str, "_models.AudioFormat"]] = None, + enable_dtmf_tones: Optional[bool] = None, **kwargs: Any ) -> None: """ - :keyword dialog: Dialog context. Required. - :paramtype dialog: ~azure.communication.callautomation.models.DialogUpdateBase - :keyword operation_callback_uri: Set a callback URI that overrides the default callback URI set - by CreateCall/AnswerCall for this operation. - This setup is per-action. If this is not set, the default callback URI set by - CreateCall/AnswerCall will be used. - :paramtype operation_callback_uri: str - :keyword operation_context: The value to identify context of the operation. - :paramtype operation_context: str + :keyword audio_channel_type: The audio channel type to stream, e.g., unmixed audio, mixed + audio. Required. Known values are: "mixed" and "unmixed". + :paramtype audio_channel_type: str or + ~azure.communication.callautomation.models.MediaStreamingAudioChannelType + :keyword transport_url: The transport URL for media streaming. + :paramtype transport_url: str + :keyword content_type: "audio" + :paramtype content_type: str or + ~azure.communication.callautomation.models.MediaStreamingContentType + :keyword start_media_streaming: A value indicating whether the media streaming should start + immediately after the call is answered. + :paramtype start_media_streaming: bool + :keyword enable_bidirectional: A value indicating whether bidirectional streaming is enabled. + :paramtype enable_bidirectional: bool + :keyword audio_format: The audio format used for encoding, including sample rate and channel + type. The default is Pcm16KMono. Known values are: "pcm16KMono" and "pcm24KMono". + :paramtype audio_format: str or ~azure.communication.callautomation.models.AudioFormat + :keyword enable_dtmf_tones: A value that indicates whether to stream the DTMF tones. + :paramtype enable_dtmf_tones: bool """ - super().__init__(**kwargs) - self.dialog = dialog - self.operation_callback_uri = operation_callback_uri - self.operation_context = operation_context + super().__init__(audio_channel_type=audio_channel_type, **kwargs) + self.transport_type: str = "websocket" + self.transport_url = transport_url + self.content_type = content_type + self.start_media_streaming = start_media_streaming + self.enable_bidirectional = enable_bidirectional + self.audio_format = audio_format + self.enable_dtmf_tones = enable_dtmf_tones -class UpdateTranscriptionRequest(_serialization.Model): - """UpdateTranscriptionRequest. +class WebSocketTranscriptionOptions(TranscriptionOptions): + """Represents the options for WebSocket transport. All required parameters must be populated in order to send to server. - :ivar locale: Defines new locale for transcription. Required. + :ivar transport_type: Defines the transport type used for streaming. Note that future values + may be introduced that are not currently documented. Required. "websocket" + :vartype transport_type: str or + ~azure.communication.callautomation.models.StreamingTransportType + :ivar locale: Specifies the Locale used for transcription, e.g., en-CA or en-AU. Required. :vartype locale: str - :ivar speech_recognition_model_endpoint_id: Sets Endpoint id where the custom model was - deployed. - :vartype speech_recognition_model_endpoint_id: str - :ivar operation_context: The value to identify context of the operation. - :vartype operation_context: str - :ivar operation_callback_uri: Set a callback URI that overrides the default callback URI set by - CreateCall/AnswerCall for this operation. - This setup is per-action. If this is not set, the default callback URI set by - CreateCall/AnswerCall will be used. - :vartype operation_callback_uri: str + :ivar transport_url: The URL used for live transcription transport. + :vartype transport_url: str + :ivar speech_model_endpoint_id: The ID of the deployed custom model in GUID format. The GUID is + generated by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + :vartype speech_model_endpoint_id: str + :ivar start_transcription: Indicates whether the transcription should start immediately after + the call is answered. + :vartype start_transcription: bool + :ivar enable_intermediate_results: Enables intermediate results for the transcribed speech. + :vartype enable_intermediate_results: bool """ _validation = { + "transport_type": {"required": True}, "locale": {"required": True}, } _attribute_map = { + "transport_type": {"key": "transportType", "type": "str"}, "locale": {"key": "locale", "type": "str"}, - "speech_recognition_model_endpoint_id": {"key": "speechRecognitionModelEndpointId", "type": "str"}, - "operation_context": {"key": "operationContext", "type": "str"}, - "operation_callback_uri": {"key": "operationCallbackUri", "type": "str"}, + "transport_url": {"key": "transportUrl", "type": "str"}, + "speech_model_endpoint_id": {"key": "speechModelEndpointId", "type": "str"}, + "start_transcription": {"key": "startTranscription", "type": "bool"}, + "enable_intermediate_results": {"key": "enableIntermediateResults", "type": "bool"}, } def __init__( self, *, locale: str, - speech_recognition_model_endpoint_id: Optional[str] = None, - operation_context: Optional[str] = None, - operation_callback_uri: Optional[str] = None, + transport_url: Optional[str] = None, + speech_model_endpoint_id: Optional[str] = None, + start_transcription: Optional[bool] = None, + enable_intermediate_results: Optional[bool] = None, **kwargs: Any ) -> None: """ - :keyword locale: Defines new locale for transcription. Required. + :keyword locale: Specifies the Locale used for transcription, e.g., en-CA or en-AU. Required. :paramtype locale: str - :keyword speech_recognition_model_endpoint_id: Sets Endpoint id where the custom model was - deployed. - :paramtype speech_recognition_model_endpoint_id: str - :keyword operation_context: The value to identify context of the operation. - :paramtype operation_context: str - :keyword operation_callback_uri: Set a callback URI that overrides the default callback URI set - by CreateCall/AnswerCall for this operation. - This setup is per-action. If this is not set, the default callback URI set by - CreateCall/AnswerCall will be used. - :paramtype operation_callback_uri: str - """ - super().__init__(**kwargs) - self.locale = locale - self.speech_recognition_model_endpoint_id = speech_recognition_model_endpoint_id - self.operation_context = operation_context - self.operation_callback_uri = operation_callback_uri - - -class UserConsent(_serialization.Model): - """UserConsent. - - :ivar recording: - :vartype recording: int - """ - - _attribute_map = { - "recording": {"key": "recording", "type": "int"}, - } - - def __init__(self, *, recording: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword recording: - :paramtype recording: int + :keyword transport_url: The URL used for live transcription transport. + :paramtype transport_url: str + :keyword speech_model_endpoint_id: The ID of the deployed custom model in GUID format. The GUID + is generated by Azure Speech Studio, e.g., a259c255-1cdw-4ed7-a693-dd58563b6f6a. + :paramtype speech_model_endpoint_id: str + :keyword start_transcription: Indicates whether the transcription should start immediately + after the call is answered. + :paramtype start_transcription: bool + :keyword enable_intermediate_results: Enables intermediate results for the transcribed speech. + :paramtype enable_intermediate_results: bool """ - super().__init__(**kwargs) - self.recording = recording + super().__init__(locale=locale, **kwargs) + self.transport_type: str = "websocket" + self.transport_url = transport_url + self.speech_model_endpoint_id = speech_model_endpoint_id + self.start_transcription = start_transcription + self.enable_intermediate_results = enable_intermediate_results diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/__init__.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/__init__.py index 90a72cf9e9e9..586f5f0bf5d0 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/__init__.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/__init__.py @@ -15,7 +15,6 @@ from ._operations import AzureCommunicationCallAutomationServiceOperationsMixin # type: ignore from ._operations import CallConnectionOperations # type: ignore from ._operations import CallMediaOperations # type: ignore -from ._operations import CallDialogOperations # type: ignore from ._operations import CallRecordingOperations # type: ignore from ._patch import __all__ as _patch_all @@ -26,7 +25,6 @@ "AzureCommunicationCallAutomationServiceOperationsMixin", "CallConnectionOperations", "CallMediaOperations", - "CallDialogOperations", "CallRecordingOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py index 9803b4e8da34..c7cc75bf0195 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py @@ -6,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from collections.abc import MutableMapping import datetime from io import IOBase -import sys from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse import uuid @@ -30,13 +30,9 @@ from .. import models as _models from .._configuration import AzureCommunicationCallAutomationServiceConfiguration -from .._serialization import Deserializer, Serializer -from .._vendor import AzureCommunicationCallAutomationServiceMixinABC +from .._utils.serialization import Deserializer, Serializer +from .._utils.utils import ClientMixinABC -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -51,7 +47,7 @@ def build_azure_communication_call_automation_service_create_call_request( # py _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -81,7 +77,7 @@ def build_azure_communication_call_automation_service_answer_call_request( # py _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -111,7 +107,7 @@ def build_azure_communication_call_automation_service_redirect_call_request( # _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -141,7 +137,7 @@ def build_azure_communication_call_automation_service_reject_call_request( # py _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -171,7 +167,7 @@ def build_azure_communication_call_automation_service_connect_request( # pylint _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -198,7 +194,7 @@ def build_call_connection_get_call_request(call_connection_id: str, **kwargs: An _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -224,7 +220,7 @@ def build_call_connection_hangup_call_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -250,7 +246,7 @@ def build_call_connection_terminate_call_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -283,7 +279,7 @@ def build_call_connection_transfer_to_participant_request( # pylint: disable=na _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -317,7 +313,7 @@ def build_call_connection_get_participants_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -344,7 +340,7 @@ def build_call_connection_add_participant_request( # pylint: disable=name-too-l _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -379,7 +375,7 @@ def build_call_connection_remove_participant_request( # pylint: disable=name-to _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -412,7 +408,7 @@ def build_call_connection_mute_request(call_connection_id: str, **kwargs: Any) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -440,16 +436,18 @@ def build_call_connection_mute_request(call_connection_id: str, **kwargs: Any) - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_call_connection_unmute_request(call_connection_id: str, **kwargs: Any) -> HttpRequest: +def build_call_connection_cancel_add_participant_request( # pylint: disable=name-too-long + call_connection_id: str, **kwargs: Any +) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/calling/callConnections/{callConnectionId}/participants:unmute" + _url = "/calling/callConnections/{callConnectionId}/participants:cancelAddParticipant" path_format_arguments = { "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), } @@ -473,20 +471,20 @@ def build_call_connection_unmute_request(call_connection_id: str, **kwargs: Any) return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_call_connection_cancel_add_participant_request( # pylint: disable=name-too-long - call_connection_id: str, **kwargs: Any +def build_call_connection_get_participant_request( # pylint: disable=name-too-long + call_connection_id: str, participant_raw_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/calling/callConnections/{callConnectionId}/participants:cancelAddParticipant" + _url = "/calling/callConnections/{callConnectionId}/participants/{participantRawId}" path_format_arguments = { "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), + "participantRawId": _SERIALIZER.url("participant_raw_id", participant_raw_id, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -495,33 +493,23 @@ def build_call_connection_cancel_add_participant_request( # pylint: disable=nam _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - if "Repeatability-Request-ID" not in _headers: - _headers["Repeatability-Request-ID"] = str(uuid.uuid4()) - if "Repeatability-First-Sent" not in _headers: - _headers["Repeatability-First-Sent"] = _SERIALIZER.serialize_data( - datetime.datetime.now(datetime.timezone.utc), "rfc-1123" - ) - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_call_connection_get_participant_request( # pylint: disable=name-too-long - call_connection_id: str, participant_raw_id: str, **kwargs: Any -) -> HttpRequest: +def build_call_media_play_request(call_connection_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/calling/callConnections/{callConnectionId}/participants/{participantRawId}" + _url = "/calling/callConnections/{callConnectionId}:play" path_format_arguments = { "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), - "participantRawId": _SERIALIZER.url("participant_raw_id", participant_raw_id, "str"), } _url: str = _url.format(**path_format_arguments) # type: ignore @@ -530,21 +518,25 @@ def build_call_connection_get_participant_request( # pylint: disable=name-too-l _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_call_media_play_request(call_connection_id: str, **kwargs: Any) -> HttpRequest: +def build_call_media_start_transcription_request( # pylint: disable=name-too-long + call_connection_id: str, **kwargs: Any +) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/calling/callConnections/{callConnectionId}:play" + _url = "/calling/callConnections/{callConnectionId}:startTranscription" path_format_arguments = { "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), } @@ -562,18 +554,18 @@ def build_call_media_play_request(call_connection_id: str, **kwargs: Any) -> Htt return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_call_media_start_transcription_request( # pylint: disable=name-too-long +def build_call_media_stop_transcription_request( # pylint: disable=name-too-long call_connection_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/calling/callConnections/{callConnectionId}:startTranscription" + _url = "/calling/callConnections/{callConnectionId}:stopTranscription" path_format_arguments = { "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), } @@ -591,18 +583,18 @@ def build_call_media_start_transcription_request( # pylint: disable=name-too-lo return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_call_media_stop_transcription_request( # pylint: disable=name-too-long +def build_call_media_update_transcription_request( # pylint: disable=name-too-long call_connection_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL - _url = "/calling/callConnections/{callConnectionId}:stopTranscription" + _url = "/calling/callConnections/{callConnectionId}:updateTranscription" path_format_arguments = { "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), } @@ -626,7 +618,7 @@ def build_call_media_cancel_all_media_operations_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -651,7 +643,7 @@ def build_call_media_recognize_request(call_connection_id: str, **kwargs: Any) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -680,7 +672,7 @@ def build_call_media_start_continuous_dtmf_recognition_request( # pylint: disab _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -709,7 +701,7 @@ def build_call_media_stop_continuous_dtmf_recognition_request( # pylint: disabl _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -736,7 +728,7 @@ def build_call_media_send_dtmf_tones_request(call_connection_id: str, **kwargs: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -764,41 +756,12 @@ def build_call_media_send_dtmf_tones_request(call_connection_id: str, **kwargs: return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_call_media_update_transcription_request( # pylint: disable=name-too-long - call_connection_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/calling/callConnections/{callConnectionId}:updateTranscription" - path_format_arguments = { - "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - def build_call_media_hold_request(call_connection_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -825,7 +788,7 @@ def build_call_media_unhold_request(call_connection_id: str, **kwargs: Any) -> H _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -854,7 +817,7 @@ def build_call_media_start_media_streaming_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -883,7 +846,7 @@ def build_call_media_stop_media_streaming_request( # pylint: disable=name-too-l _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -905,126 +868,12 @@ def build_call_media_stop_media_streaming_request( # pylint: disable=name-too-l return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_call_media_interrupt_audio_and_announce_request( # pylint: disable=name-too-long - call_connection_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/calling/callConnections/{callConnectionId}:interruptAudioAndAnnounce" - path_format_arguments = { - "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_call_dialog_start_dialog_request(call_connection_id: str, dialog_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}" - path_format_arguments = { - "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), - "dialogId": _SERIALIZER.url("dialog_id", dialog_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_call_dialog_stop_dialog_request( - call_connection_id: str, dialog_id: str, *, operation_callback_uri: Optional[str] = None, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}" - path_format_arguments = { - "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), - "dialogId": _SERIALIZER.url("dialog_id", dialog_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if operation_callback_uri is not None: - _params["operationCallbackUri"] = _SERIALIZER.query("operation_callback_uri", operation_callback_uri, "str") - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_call_dialog_update_dialog_request(call_connection_id: str, dialog_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/calling/callConnections/{callConnectionId}/dialogs/{dialogId}" - path_format_arguments = { - "callConnectionId": _SERIALIZER.url("call_connection_id", call_connection_id, "str"), - "dialogId": _SERIALIZER.url("dialog_id", dialog_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - def build_call_recording_start_recording_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1053,7 +902,7 @@ def build_call_recording_get_recording_properties_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1079,7 +928,7 @@ def build_call_recording_stop_recording_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1105,7 +954,7 @@ def build_call_recording_pause_recording_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1131,7 +980,7 @@ def build_call_recording_resume_recording_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1151,34 +1000,8 @@ def build_call_recording_resume_recording_request( # pylint: disable=name-too-l return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_call_recording_get_recording_result_request( # pylint: disable=name-too-long - recording_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = "/calling/recordings/{recordingId}/result" - path_format_arguments = { - "recordingId": _SERIALIZER.url("recording_id", recording_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - class AzureCommunicationCallAutomationServiceOperationsMixin( # pylint: disable=name-too-long - AzureCommunicationCallAutomationServiceMixinABC + ClientMixinABC[PipelineClient, AzureCommunicationCallAutomationServiceConfiguration] ): @overload @@ -2124,7 +1947,7 @@ def add_participant( :param call_connection_id: The call connection Id. Required. :type call_connection_id: str - :param add_participant_request: The add participants request. Required. + :param add_participant_request: Required. :type add_participant_request: ~azure.communication.callautomation.models.AddParticipantRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -2149,7 +1972,7 @@ def add_participant( :param call_connection_id: The call connection Id. Required. :type call_connection_id: str - :param add_participant_request: The add participants request. Required. + :param add_participant_request: Required. :type add_participant_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -2172,8 +1995,8 @@ def add_participant( :param call_connection_id: The call connection Id. Required. :type call_connection_id: str - :param add_participant_request: The add participants request. Is either a AddParticipantRequest - type or a IO[bytes] type. Required. + :param add_participant_request: Is either a AddParticipantRequest type or a IO[bytes] type. + Required. :type add_participant_request: ~azure.communication.callautomation.models.AddParticipantRequest or IO[bytes] :return: AddParticipantResponse @@ -2490,75 +2313,75 @@ def mute( return deserialized # type: ignore @overload - def unmute( + def cancel_add_participant( self, call_connection_id: str, - unmute_participants_request: _models.UnmuteParticipantsRequest, + cancel_add_participant_request: _models.CancelAddParticipantRequest, *, content_type: str = "application/json", **kwargs: Any, - ) -> _models.UnmuteParticipantsResponse: - """Unmute participants from the call using identifier. + ) -> _models.CancelAddParticipantResponse: + """Cancel add participant operation. - Unmute participants from the call using identifier. + Cancel add participant operation. - :param call_connection_id: The call connection id. Required. + :param call_connection_id: The call connection Id. Required. :type call_connection_id: str - :param unmute_participants_request: The participants to be unmuted from the call. Required. - :type unmute_participants_request: - ~azure.communication.callautomation.models.UnmuteParticipantsRequest + :param cancel_add_participant_request: Cancellation request. Required. + :type cancel_add_participant_request: + ~azure.communication.callautomation.models.CancelAddParticipantRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: UnmuteParticipantsResponse - :rtype: ~azure.communication.callautomation.models.UnmuteParticipantsResponse + :return: CancelAddParticipantResponse + :rtype: ~azure.communication.callautomation.models.CancelAddParticipantResponse :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def unmute( + def cancel_add_participant( self, call_connection_id: str, - unmute_participants_request: IO[bytes], + cancel_add_participant_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any, - ) -> _models.UnmuteParticipantsResponse: - """Unmute participants from the call using identifier. + ) -> _models.CancelAddParticipantResponse: + """Cancel add participant operation. - Unmute participants from the call using identifier. + Cancel add participant operation. - :param call_connection_id: The call connection id. Required. + :param call_connection_id: The call connection Id. Required. :type call_connection_id: str - :param unmute_participants_request: The participants to be unmuted from the call. Required. - :type unmute_participants_request: IO[bytes] + :param cancel_add_participant_request: Cancellation request. Required. + :type cancel_add_participant_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: UnmuteParticipantsResponse - :rtype: ~azure.communication.callautomation.models.UnmuteParticipantsResponse + :return: CancelAddParticipantResponse + :rtype: ~azure.communication.callautomation.models.CancelAddParticipantResponse :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def unmute( + def cancel_add_participant( self, call_connection_id: str, - unmute_participants_request: Union[_models.UnmuteParticipantsRequest, IO[bytes]], + cancel_add_participant_request: Union[_models.CancelAddParticipantRequest, IO[bytes]], **kwargs: Any, - ) -> _models.UnmuteParticipantsResponse: - """Unmute participants from the call using identifier. + ) -> _models.CancelAddParticipantResponse: + """Cancel add participant operation. - Unmute participants from the call using identifier. + Cancel add participant operation. - :param call_connection_id: The call connection id. Required. + :param call_connection_id: The call connection Id. Required. :type call_connection_id: str - :param unmute_participants_request: The participants to be unmuted from the call. Is either a - UnmuteParticipantsRequest type or a IO[bytes] type. Required. - :type unmute_participants_request: - ~azure.communication.callautomation.models.UnmuteParticipantsRequest or IO[bytes] - :return: UnmuteParticipantsResponse - :rtype: ~azure.communication.callautomation.models.UnmuteParticipantsResponse + :param cancel_add_participant_request: Cancellation request. Is either a + CancelAddParticipantRequest type or a IO[bytes] type. Required. + :type cancel_add_participant_request: + ~azure.communication.callautomation.models.CancelAddParticipantRequest or IO[bytes] + :return: CancelAddParticipantResponse + :rtype: ~azure.communication.callautomation.models.CancelAddParticipantResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -2573,17 +2396,17 @@ def unmute( _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.UnmuteParticipantsResponse] = kwargs.pop("cls", None) + cls: ClsType[_models.CancelAddParticipantResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(unmute_participants_request, (IOBase, bytes)): - _content = unmute_participants_request + if isinstance(cancel_add_participant_request, (IOBase, bytes)): + _content = cancel_add_participant_request else: - _json = self._serialize.body(unmute_participants_request, "UnmuteParticipantsRequest") + _json = self._serialize.body(cancel_add_participant_request, "CancelAddParticipantRequest") - _request = build_call_connection_unmute_request( + _request = build_call_connection_cancel_add_participant_request( call_connection_id=call_connection_id, content_type=content_type, api_version=self._config.api_version, @@ -2604,152 +2427,25 @@ def unmute( response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) - deserialized = self._deserialize("UnmuteParticipantsResponse", pipeline_response.http_response) + deserialized = self._deserialize("CancelAddParticipantResponse", pipeline_response.http_response) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore - @overload - def cancel_add_participant( - self, - call_connection_id: str, - cancel_add_participant_request: _models.CancelAddParticipantRequest, - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> _models.CancelAddParticipantResponse: - """Cancel add participant operation. + @distributed_trace + def get_participant( + self, call_connection_id: str, participant_raw_id: str, **kwargs: Any + ) -> _models.CallParticipant: + """Get participant from a call. - Cancel add participant operation. - - :param call_connection_id: The call connection Id. Required. - :type call_connection_id: str - :param cancel_add_participant_request: Cancellation request. Required. - :type cancel_add_participant_request: - ~azure.communication.callautomation.models.CancelAddParticipantRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CancelAddParticipantResponse - :rtype: ~azure.communication.callautomation.models.CancelAddParticipantResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def cancel_add_participant( - self, - call_connection_id: str, - cancel_add_participant_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> _models.CancelAddParticipantResponse: - """Cancel add participant operation. - - Cancel add participant operation. - - :param call_connection_id: The call connection Id. Required. - :type call_connection_id: str - :param cancel_add_participant_request: Cancellation request. Required. - :type cancel_add_participant_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CancelAddParticipantResponse - :rtype: ~azure.communication.callautomation.models.CancelAddParticipantResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def cancel_add_participant( - self, - call_connection_id: str, - cancel_add_participant_request: Union[_models.CancelAddParticipantRequest, IO[bytes]], - **kwargs: Any, - ) -> _models.CancelAddParticipantResponse: - """Cancel add participant operation. - - Cancel add participant operation. - - :param call_connection_id: The call connection Id. Required. - :type call_connection_id: str - :param cancel_add_participant_request: Cancellation request. Is either a - CancelAddParticipantRequest type or a IO[bytes] type. Required. - :type cancel_add_participant_request: - ~azure.communication.callautomation.models.CancelAddParticipantRequest or IO[bytes] - :return: CancelAddParticipantResponse - :rtype: ~azure.communication.callautomation.models.CancelAddParticipantResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CancelAddParticipantResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(cancel_add_participant_request, (IOBase, bytes)): - _content = cancel_add_participant_request - else: - _json = self._serialize.body(cancel_add_participant_request, "CancelAddParticipantRequest") - - _request = build_call_connection_cancel_add_participant_request( - call_connection_id=call_connection_id, - content_type=content_type, - api_version=self._config.api_version, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("CancelAddParticipantResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_participant( - self, call_connection_id: str, participant_raw_id: str, **kwargs: Any - ) -> _models.CallParticipant: - """Get participant from a call. - - Get participant from a call. + Get participant from a call. :param call_connection_id: The call connection Id. Required. :type call_connection_id: str @@ -3184,6 +2880,129 @@ def stop_transcription( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore + @overload + def update_transcription( + self, + call_connection_id: str, + update_transcription_request: _models.UpdateTranscriptionRequest, + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> None: + """UpdateTranscription Api. + + API to change transcription language. + + :param call_connection_id: The call connection id. Required. + :type call_connection_id: str + :param update_transcription_request: The UpdateTranscription request. Required. + :type update_transcription_request: + ~azure.communication.callautomation.models.UpdateTranscriptionRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update_transcription( + self, + call_connection_id: str, + update_transcription_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any, + ) -> None: + """UpdateTranscription Api. + + API to change transcription language. + + :param call_connection_id: The call connection id. Required. + :type call_connection_id: str + :param update_transcription_request: The UpdateTranscription request. Required. + :type update_transcription_request: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update_transcription( # pylint: disable=inconsistent-return-statements + self, + call_connection_id: str, + update_transcription_request: Union[_models.UpdateTranscriptionRequest, IO[bytes]], + **kwargs: Any, + ) -> None: + """UpdateTranscription Api. + + API to change transcription language. + + :param call_connection_id: The call connection id. Required. + :type call_connection_id: str + :param update_transcription_request: The UpdateTranscription request. Is either a + UpdateTranscriptionRequest type or a IO[bytes] type. Required. + :type update_transcription_request: + ~azure.communication.callautomation.models.UpdateTranscriptionRequest or IO[bytes] + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(update_transcription_request, (IOBase, bytes)): + _content = update_transcription_request + else: + _json = self._serialize.body(update_transcription_request, "UpdateTranscriptionRequest") + + _request = build_call_media_update_transcription_request( + call_connection_id=call_connection_id, + content_type=content_type, + api_version=self._config.api_version, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + @distributed_trace def cancel_all_media_operations( # pylint: disable=inconsistent-return-statements self, call_connection_id: str, **kwargs: Any @@ -3729,140 +3548,17 @@ def send_dtmf_tones( return deserialized # type: ignore @overload - def update_transcription( + def hold( self, call_connection_id: str, - update_transcription_request: _models.UpdateTranscriptionRequest, + hold_request: _models.HoldRequest, *, content_type: str = "application/json", **kwargs: Any, ) -> None: - """UpdateTranscription Api. + """Hold participant from the call using identifier. - API to change transcription language. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param update_transcription_request: The UpdateTranscription request. Required. - :type update_transcription_request: - ~azure.communication.callautomation.models.UpdateTranscriptionRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update_transcription( - self, - call_connection_id: str, - update_transcription_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> None: - """UpdateTranscription Api. - - API to change transcription language. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param update_transcription_request: The UpdateTranscription request. Required. - :type update_transcription_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update_transcription( # pylint: disable=inconsistent-return-statements - self, - call_connection_id: str, - update_transcription_request: Union[_models.UpdateTranscriptionRequest, IO[bytes]], - **kwargs: Any, - ) -> None: - """UpdateTranscription Api. - - API to change transcription language. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param update_transcription_request: The UpdateTranscription request. Is either a - UpdateTranscriptionRequest type or a IO[bytes] type. Required. - :type update_transcription_request: - ~azure.communication.callautomation.models.UpdateTranscriptionRequest or IO[bytes] - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(update_transcription_request, (IOBase, bytes)): - _content = update_transcription_request - else: - _json = self._serialize.body(update_transcription_request, "UpdateTranscriptionRequest") - - _request = build_call_media_update_transcription_request( - call_connection_id=call_connection_id, - content_type=content_type, - api_version=self._config.api_version, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def hold( - self, - call_connection_id: str, - hold_request: _models.HoldRequest, - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> None: - """Hold participant from the call using identifier. - - Hold participant from the call using identifier. + Hold participant from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str @@ -3875,379 +3571,19 @@ def hold( :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ - - @overload - def hold( - self, call_connection_id: str, hold_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> None: - """Hold participant from the call using identifier. - - Hold participant from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param hold_request: The participants to be hold from the call. Required. - :type hold_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def hold( # pylint: disable=inconsistent-return-statements - self, call_connection_id: str, hold_request: Union[_models.HoldRequest, IO[bytes]], **kwargs: Any - ) -> None: - """Hold participant from the call using identifier. - - Hold participant from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param hold_request: The participants to be hold from the call. Is either a HoldRequest type or - a IO[bytes] type. Required. - :type hold_request: ~azure.communication.callautomation.models.HoldRequest or IO[bytes] - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(hold_request, (IOBase, bytes)): - _content = hold_request - else: - _json = self._serialize.body(hold_request, "HoldRequest") - - _request = build_call_media_hold_request( - call_connection_id=call_connection_id, - content_type=content_type, - api_version=self._config.api_version, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def unhold( - self, - call_connection_id: str, - unhold_request: _models.UnholdRequest, - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> None: - """Unhold participants from the call using identifier. - - Unhold participants from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param unhold_request: The participants to be hold from the call. Required. - :type unhold_request: ~azure.communication.callautomation.models.UnholdRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def unhold( - self, - call_connection_id: str, - unhold_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> None: - """Unhold participants from the call using identifier. - - Unhold participants from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param unhold_request: The participants to be hold from the call. Required. - :type unhold_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def unhold( # pylint: disable=inconsistent-return-statements - self, call_connection_id: str, unhold_request: Union[_models.UnholdRequest, IO[bytes]], **kwargs: Any - ) -> None: - """Unhold participants from the call using identifier. - - Unhold participants from the call using identifier. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param unhold_request: The participants to be hold from the call. Is either a UnholdRequest - type or a IO[bytes] type. Required. - :type unhold_request: ~azure.communication.callautomation.models.UnholdRequest or IO[bytes] - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(unhold_request, (IOBase, bytes)): - _content = unhold_request - else: - _json = self._serialize.body(unhold_request, "UnholdRequest") - - _request = build_call_media_unhold_request( - call_connection_id=call_connection_id, - content_type=content_type, - api_version=self._config.api_version, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def start_media_streaming( - self, - call_connection_id: str, - start_media_streaming_request: _models.StartMediaStreamingRequest, - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> None: - """Starts media streaming in the call. - - Starts media streaming in the call. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param start_media_streaming_request: Required. - :type start_media_streaming_request: - ~azure.communication.callautomation.models.StartMediaStreamingRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def start_media_streaming( - self, - call_connection_id: str, - start_media_streaming_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> None: - """Starts media streaming in the call. - - Starts media streaming in the call. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param start_media_streaming_request: Required. - :type start_media_streaming_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def start_media_streaming( # pylint: disable=inconsistent-return-statements - self, - call_connection_id: str, - start_media_streaming_request: Union[_models.StartMediaStreamingRequest, IO[bytes]], - **kwargs: Any, - ) -> None: - """Starts media streaming in the call. - - Starts media streaming in the call. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param start_media_streaming_request: Is either a StartMediaStreamingRequest type or a - IO[bytes] type. Required. - :type start_media_streaming_request: - ~azure.communication.callautomation.models.StartMediaStreamingRequest or IO[bytes] - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = kwargs.pop("params", {}) or {} - - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(start_media_streaming_request, (IOBase, bytes)): - _content = start_media_streaming_request - else: - _json = self._serialize.body(start_media_streaming_request, "StartMediaStreamingRequest") - - _request = build_call_media_start_media_streaming_request( - call_connection_id=call_connection_id, - content_type=content_type, - api_version=self._config.api_version, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def stop_media_streaming( - self, - call_connection_id: str, - stop_media_streaming_request: _models.StopMediaStreamingRequest, - *, - content_type: str = "application/json", - **kwargs: Any, - ) -> None: - """Stops media streaming in the call. - - Stops media streaming in the call. - - :param call_connection_id: The call connection id. Required. - :type call_connection_id: str - :param stop_media_streaming_request: stop media streaming request payload. Required. - :type stop_media_streaming_request: - ~azure.communication.callautomation.models.StopMediaStreamingRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def stop_media_streaming( - self, - call_connection_id: str, - stop_media_streaming_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any, + + @overload + def hold( + self, call_connection_id: str, hold_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> None: - """Stops media streaming in the call. + """Hold participant from the call using identifier. - Stops media streaming in the call. + Hold participant from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param stop_media_streaming_request: stop media streaming request payload. Required. - :type stop_media_streaming_request: IO[bytes] + :param hold_request: The participants to be hold from the call. Required. + :type hold_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str @@ -4257,22 +3593,18 @@ def stop_media_streaming( """ @distributed_trace - def stop_media_streaming( # pylint: disable=inconsistent-return-statements - self, - call_connection_id: str, - stop_media_streaming_request: Union[_models.StopMediaStreamingRequest, IO[bytes]], - **kwargs: Any, + def hold( # pylint: disable=inconsistent-return-statements + self, call_connection_id: str, hold_request: Union[_models.HoldRequest, IO[bytes]], **kwargs: Any ) -> None: - """Stops media streaming in the call. + """Hold participant from the call using identifier. - Stops media streaming in the call. + Hold participant from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param stop_media_streaming_request: stop media streaming request payload. Is either a - StopMediaStreamingRequest type or a IO[bytes] type. Required. - :type stop_media_streaming_request: - ~azure.communication.callautomation.models.StopMediaStreamingRequest or IO[bytes] + :param hold_request: The participants to be hold from the call. Is either a HoldRequest type or + a IO[bytes] type. Required. + :type hold_request: ~azure.communication.callautomation.models.HoldRequest or IO[bytes] :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -4294,12 +3626,12 @@ def stop_media_streaming( # pylint: disable=inconsistent-return-statements content_type = content_type or "application/json" _json = None _content = None - if isinstance(stop_media_streaming_request, (IOBase, bytes)): - _content = stop_media_streaming_request + if isinstance(hold_request, (IOBase, bytes)): + _content = hold_request else: - _json = self._serialize.body(stop_media_streaming_request, "StopMediaStreamingRequest") + _json = self._serialize.body(hold_request, "HoldRequest") - _request = build_call_media_stop_media_streaming_request( + _request = build_call_media_hold_request( call_connection_id=call_connection_id, content_type=content_type, api_version=self._config.api_version, @@ -4320,7 +3652,7 @@ def stop_media_streaming( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response - if response.status_code not in [202]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -4329,23 +3661,22 @@ def stop_media_streaming( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore @overload - def interrupt_audio_and_announce( + def unhold( self, call_connection_id: str, - interrupt_request: _models.InterruptAudioAndAnnounceRequest, + unhold_request: _models.UnholdRequest, *, content_type: str = "application/json", **kwargs: Any, ) -> None: - """Plays audio to participants in the call. + """Unhold participants from the call using identifier. - Plays audio to participants in the call. + Unhold participants from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param interrupt_request: play request payload. Required. - :type interrupt_request: - ~azure.communication.callautomation.models.InterruptAudioAndAnnounceRequest + :param unhold_request: The participants to be hold from the call. Required. + :type unhold_request: ~azure.communication.callautomation.models.UnholdRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4355,22 +3686,22 @@ def interrupt_audio_and_announce( """ @overload - def interrupt_audio_and_announce( + def unhold( self, call_connection_id: str, - interrupt_request: IO[bytes], + unhold_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any, ) -> None: - """Plays audio to participants in the call. + """Unhold participants from the call using identifier. - Plays audio to participants in the call. + Unhold participants from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param interrupt_request: play request payload. Required. - :type interrupt_request: IO[bytes] + :param unhold_request: The participants to be hold from the call. Required. + :type unhold_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str @@ -4380,22 +3711,18 @@ def interrupt_audio_and_announce( """ @distributed_trace - def interrupt_audio_and_announce( # pylint: disable=inconsistent-return-statements - self, - call_connection_id: str, - interrupt_request: Union[_models.InterruptAudioAndAnnounceRequest, IO[bytes]], - **kwargs: Any, + def unhold( # pylint: disable=inconsistent-return-statements + self, call_connection_id: str, unhold_request: Union[_models.UnholdRequest, IO[bytes]], **kwargs: Any ) -> None: - """Plays audio to participants in the call. + """Unhold participants from the call using identifier. - Plays audio to participants in the call. + Unhold participants from the call using identifier. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param interrupt_request: play request payload. Is either a InterruptAudioAndAnnounceRequest + :param unhold_request: The participants to be hold from the call. Is either a UnholdRequest type or a IO[bytes] type. Required. - :type interrupt_request: - ~azure.communication.callautomation.models.InterruptAudioAndAnnounceRequest or IO[bytes] + :type unhold_request: ~azure.communication.callautomation.models.UnholdRequest or IO[bytes] :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -4417,12 +3744,12 @@ def interrupt_audio_and_announce( # pylint: disable=inconsistent-return-stateme content_type = content_type or "application/json" _json = None _content = None - if isinstance(interrupt_request, (IOBase, bytes)): - _content = interrupt_request + if isinstance(unhold_request, (IOBase, bytes)): + _content = unhold_request else: - _json = self._serialize.body(interrupt_request, "InterruptAudioAndAnnounceRequest") + _json = self._serialize.body(unhold_request, "UnholdRequest") - _request = build_call_media_interrupt_audio_and_announce_request( + _request = build_call_media_unhold_request( call_connection_id=call_connection_id, content_type=content_type, api_version=self._config.api_version, @@ -4443,7 +3770,7 @@ def interrupt_audio_and_announce( # pylint: disable=inconsistent-return-stateme response = pipeline_response.http_response - if response.status_code not in [202]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -4451,106 +3778,76 @@ def interrupt_audio_and_announce( # pylint: disable=inconsistent-return-stateme if cls: return cls(pipeline_response, None, {}) # type: ignore - -class CallDialogOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.communication.callautomation.AzureCommunicationCallAutomationService`'s - :attr:`call_dialog` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: AzureCommunicationCallAutomationServiceConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - @overload - def start_dialog( + def start_media_streaming( self, call_connection_id: str, - dialog_id: str, - start_dialog_request: _models.StartDialogRequest, + start_media_streaming_request: _models.StartMediaStreamingRequest, *, content_type: str = "application/json", **kwargs: Any, - ) -> _models.DialogStateResponse: - """Start a dialog targeting a particular participant on the call. + ) -> None: + """Starts media streaming in the call. - Start a dialog. + Starts media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param start_dialog_request: The start dialog request. Required. - :type start_dialog_request: ~azure.communication.callautomation.models.StartDialogRequest + :param start_media_streaming_request: Required. + :type start_media_streaming_request: + ~azure.communication.callautomation.models.StartMediaStreamingRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: DialogStateResponse - :rtype: ~azure.communication.callautomation.models.DialogStateResponse + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ @overload - def start_dialog( + def start_media_streaming( self, call_connection_id: str, - dialog_id: str, - start_dialog_request: IO[bytes], + start_media_streaming_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any, - ) -> _models.DialogStateResponse: - """Start a dialog targeting a particular participant on the call. + ) -> None: + """Starts media streaming in the call. - Start a dialog. + Starts media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param start_dialog_request: The start dialog request. Required. - :type start_dialog_request: IO[bytes] + :param start_media_streaming_request: Required. + :type start_media_streaming_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :return: DialogStateResponse - :rtype: ~azure.communication.callautomation.models.DialogStateResponse + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ @distributed_trace - def start_dialog( + def start_media_streaming( # pylint: disable=inconsistent-return-statements self, call_connection_id: str, - dialog_id: str, - start_dialog_request: Union[_models.StartDialogRequest, IO[bytes]], + start_media_streaming_request: Union[_models.StartMediaStreamingRequest, IO[bytes]], **kwargs: Any, - ) -> _models.DialogStateResponse: - """Start a dialog targeting a particular participant on the call. + ) -> None: + """Starts media streaming in the call. - Start a dialog. + Starts media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param start_dialog_request: The start dialog request. Is either a StartDialogRequest type or a + :param start_media_streaming_request: Is either a StartMediaStreamingRequest type or a IO[bytes] type. Required. - :type start_dialog_request: ~azure.communication.callautomation.models.StartDialogRequest or - IO[bytes] - :return: DialogStateResponse - :rtype: ~azure.communication.callautomation.models.DialogStateResponse + :type start_media_streaming_request: + ~azure.communication.callautomation.models.StartMediaStreamingRequest or IO[bytes] + :return: None + :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -4565,19 +3862,18 @@ def start_dialog( _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DialogStateResponse] = kwargs.pop("cls", None) + cls: ClsType[None] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(start_dialog_request, (IOBase, bytes)): - _content = start_dialog_request + if isinstance(start_media_streaming_request, (IOBase, bytes)): + _content = start_media_streaming_request else: - _json = self._serialize.body(start_dialog_request, "StartDialogRequest") + _json = self._serialize.body(start_media_streaming_request, "StartMediaStreamingRequest") - _request = build_call_dialog_start_dialog_request( + _request = build_call_media_start_media_streaming_request( call_connection_id=call_connection_id, - dialog_id=dialog_id, content_type=content_type, api_version=self._config.api_version, json=_json, @@ -4597,68 +3893,7 @@ def start_dialog( response = pipeline_response.http_response - if response.status_code not in [201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("DialogStateResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def stop_dialog( # pylint: disable=inconsistent-return-statements - self, call_connection_id: str, dialog_id: str, *, operation_callback_uri: Optional[str] = None, **kwargs: Any - ) -> None: - """stop_dialog. - - :param call_connection_id: Required. - :type call_connection_id: str - :param dialog_id: Required. - :type dialog_id: str - :keyword operation_callback_uri: Default value is None. - :paramtype operation_callback_uri: str - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_call_dialog_stop_dialog_request( - call_connection_id=call_connection_id, - dialog_id=dialog_id, - operation_callback_uri=operation_callback_uri, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [204]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -4667,25 +3902,23 @@ def stop_dialog( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore @overload - def update_dialog( + def stop_media_streaming( self, call_connection_id: str, - dialog_id: str, - update_dialog_request: _models.UpdateDialogRequest, + stop_media_streaming_request: _models.StopMediaStreamingRequest, *, content_type: str = "application/json", **kwargs: Any, ) -> None: - """Update an ongoing dialog in a call. + """Stops media streaming in the call. - Update a dialog. + Stops media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param update_dialog_request: The update dialog request. Required. - :type update_dialog_request: ~azure.communication.callautomation.models.UpdateDialogRequest + :param stop_media_streaming_request: stop media streaming request payload. Required. + :type stop_media_streaming_request: + ~azure.communication.callautomation.models.StopMediaStreamingRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -4695,25 +3928,22 @@ def update_dialog( """ @overload - def update_dialog( + def stop_media_streaming( self, call_connection_id: str, - dialog_id: str, - update_dialog_request: IO[bytes], + stop_media_streaming_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any, ) -> None: - """Update an ongoing dialog in a call. + """Stops media streaming in the call. - Update a dialog. + Stops media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param update_dialog_request: The update dialog request. Required. - :type update_dialog_request: IO[bytes] + :param stop_media_streaming_request: stop media streaming request payload. Required. + :type stop_media_streaming_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str @@ -4723,25 +3953,22 @@ def update_dialog( """ @distributed_trace - def update_dialog( # pylint: disable=inconsistent-return-statements + def stop_media_streaming( # pylint: disable=inconsistent-return-statements self, call_connection_id: str, - dialog_id: str, - update_dialog_request: Union[_models.UpdateDialogRequest, IO[bytes]], + stop_media_streaming_request: Union[_models.StopMediaStreamingRequest, IO[bytes]], **kwargs: Any, ) -> None: - """Update an ongoing dialog in a call. + """Stops media streaming in the call. - Update a dialog. + Stops media streaming in the call. :param call_connection_id: The call connection id. Required. :type call_connection_id: str - :param dialog_id: The dialog id. Required. - :type dialog_id: str - :param update_dialog_request: The update dialog request. Is either a UpdateDialogRequest type - or a IO[bytes] type. Required. - :type update_dialog_request: ~azure.communication.callautomation.models.UpdateDialogRequest or - IO[bytes] + :param stop_media_streaming_request: stop media streaming request payload. Is either a + StopMediaStreamingRequest type or a IO[bytes] type. Required. + :type stop_media_streaming_request: + ~azure.communication.callautomation.models.StopMediaStreamingRequest or IO[bytes] :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -4763,14 +3990,13 @@ def update_dialog( # pylint: disable=inconsistent-return-statements content_type = content_type or "application/json" _json = None _content = None - if isinstance(update_dialog_request, (IOBase, bytes)): - _content = update_dialog_request + if isinstance(stop_media_streaming_request, (IOBase, bytes)): + _content = stop_media_streaming_request else: - _json = self._serialize.body(update_dialog_request, "UpdateDialogRequest") + _json = self._serialize.body(stop_media_streaming_request, "StopMediaStreamingRequest") - _request = build_call_dialog_update_dialog_request( + _request = build_call_media_stop_media_streaming_request( call_connection_id=call_connection_id, - dialog_id=dialog_id, content_type=content_type, api_version=self._config.api_version, json=_json, @@ -4790,7 +4016,7 @@ def update_dialog( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -4919,7 +4145,7 @@ def start_recording( response = pipeline_response.http_response - if response.status_code not in [200, 202]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -5144,58 +4370,3 @@ def resume_recording( # pylint: disable=inconsistent-return-statements if cls: return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def get_recording_result(self, recording_id: str, **kwargs: Any) -> _models.RecordingResultResponse: - """Get recording result. This includes the download URLs for the recording chunks. - - Get recording result. This includes the download URLs for the recording chunks. - - :param recording_id: The recording id. Required. - :type recording_id: str - :return: RecordingResultResponse - :rtype: ~azure.communication.callautomation.models.RecordingResultResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = kwargs.pop("params", {}) or {} - - cls: ClsType[_models.RecordingResultResponse] = kwargs.pop("cls", None) - - _request = build_call_recording_get_recording_result_request( - recording_id=recording_id, - api_version=self._config.api_version, - headers=_headers, - params=_params, - ) - path_format_arguments = { - "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), - } - _request.url = self._client.format_url(_request.url, **path_format_arguments) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error) - - deserialized = self._deserialize("RecordingResultResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py index 995159e55993..ac9f5d137965 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py @@ -7,8 +7,8 @@ from typing_extensions import Literal from ._generated.models import ( CallLocator, - MediaStreamingOptions as MediaStreamingOptionsRest, - TranscriptionOptions as TranscriptionOptionsRest, + WebSocketMediaStreamingOptions as WebSocketMediaStreamingOptionsRest, + WebSocketTranscriptionOptions as WebSocketTranscriptionOptionsRest, FileSource as FileSourceInternal, TextSource as TextSourceInternal, SsmlSource as SsmlSourceInternal, @@ -35,12 +35,11 @@ if TYPE_CHECKING: from ._generated.models._enums import ( MediaStreamingSubscriptionState, - MediaStreamingTransportType, + StreamingTransportType, MediaStreamingContentType, MediaStreamingAudioChannelType, TranscriptionSubscriptionState, TranscriptionResultType, - TranscriptionTransportType, CallConnectionState, RecordingState, RecordingKind, @@ -360,7 +359,7 @@ class MediaStreamingOptions: :param transport_url: Transport URL for media streaming. :type transport_url: str :param transport_type: The type of transport to be used for media streaming. - :type transport_type: str or ~azure.communication.callautomation.MediaStreamingTransportType + :type transport_type: str or ~azure.communication.callautomation.StramingTransport :param content_type: Content type to stream, eg. audio, audio/video. :type content_type: str or ~azure.communication.callautomation.MediaStreamingContentType :param audio_channel_type: Audio channel type to stream, eg. unmixed audio, mixed audio. @@ -376,7 +375,7 @@ class MediaStreamingOptions: transport_url: str """Transport URL for media streaming.""" - transport_type: Union[str, "MediaStreamingTransportType"] + transport_type: Union[str, "StreamingTransportType"] """The type of transport to be used for media streaming.""" content_type: Union[str, "MediaStreamingContentType"] """Content type to stream, eg. audio, audio/video.""" @@ -393,7 +392,7 @@ class MediaStreamingOptions: def __init__( self, transport_url: str, - transport_type: Union[str, 'MediaStreamingTransportType'], + transport_type: Union[str, 'StreamingTransportType'], content_type: Union[str, 'MediaStreamingContentType'], audio_channel_type: Union[str, 'MediaStreamingAudioChannelType'], start_media_streaming: Optional[bool] = None, @@ -409,7 +408,7 @@ def __init__( self.audio_format = audio_format def to_generated(self): - return MediaStreamingOptionsRest( + return WebSocketMediaStreamingOptionsRest( transport_url=self.transport_url, transport_type=self.transport_type, content_type=self.content_type, @@ -426,7 +425,7 @@ class TranscriptionOptions: :type transport_url: str :param transport_type: The type of transport to be used for live transcription, eg. Websocket. Required. "websocket" - :type transport_type: str or ~azure.communication.callautomation.TranscriptionTransportType + :type transport_type: str or ~azure.communication.callautomation.StreamingTransportType :param locale: Defines the locale for the data e.g en-CA, en-AU. Required. :type locale: str :param start_transcription: Determines if the transcription should be started immediately after @@ -440,7 +439,7 @@ class TranscriptionOptions: transport_url: str """Transport URL for live transcription.""" - transport_type: Union[str, "TranscriptionTransportType"] + transport_type: Union[str, "StreamingTransportType"] """The type of transport to be used for live transcription.""" locale: str """Defines the locale for the data.""" @@ -454,7 +453,7 @@ class TranscriptionOptions: def __init__( self, transport_url: str, - transport_type: Union[str, "TranscriptionTransportType"], + transport_type: Union[str, "StreamingTransportType"], locale: str, start_transcription: bool, speech_recognition_model_endpoint_id: Optional[str] = None, @@ -468,7 +467,7 @@ def __init__( self.enable_intermediate_results = enable_intermediate_results def to_generated(self): - return TranscriptionOptionsRest( + return WebSocketTranscriptionOptionsRest( transport_url=self.transport_url, transport_type=self.transport_type, locale=self.locale, @@ -581,10 +580,6 @@ class CallConnectionProperties: # pylint: disable=too-many-instance-attributes :paramtype call_connection_state: str or ~azure.communication.callautomation.CallConnectionState :keyword callback_url: The callback URL. :paramtype callback_url: str - :keyword media_subscription_id: SubscriptionId for media streaming. - :paramtype media_subscription_id: str - :keyword data_subscription_id: SubscriptionId for transcription. - :paramtype data_subscription_id: str :keyword source_caller_id_number: The source caller Id, a phone number, that's shown to the PSTN participant being invited. @@ -617,10 +612,6 @@ class CallConnectionProperties: # pylint: disable=too-many-instance-attributes """The state of the call.""" callback_url: Optional[str] """The callback URL.""" - media_subscription_id: Optional[str] - """SubscriptionId for media streaming.""" - data_subscription_id: Optional[str] = None - """SubscriptionId for transcription.""" source_caller_id_number: Optional[PhoneNumberIdentifier] """The source caller Id, a phone number, that's shown to the PSTN participant being invited. @@ -648,8 +639,6 @@ def __init__( targets: Optional[List[CommunicationIdentifier]] = None, call_connection_state: Optional[Union[str, "CallConnectionState"]] = None, callback_url: Optional[str] = None, - media_subscription_id: Optional[str] = None, - data_subscription_id: Optional[str] = None, source_caller_id_number: Optional[PhoneNumberIdentifier] = None, source_display_name: Optional[str] = None, source: Optional[CommunicationIdentifier] = None, @@ -664,8 +653,6 @@ def __init__( self.targets = targets self.call_connection_state = call_connection_state self.callback_url = callback_url - self.media_subscription_id = media_subscription_id - self.data_subscription_id = data_subscription_id self.source_caller_id_number = source_caller_id_number self.source_display_name = source_display_name self.source = source @@ -687,8 +674,6 @@ def _from_generated(cls, call_connection_properties_generated: "CallConnectionPr targets=target_models, call_connection_state=call_connection_properties_generated.call_connection_state, callback_url=call_connection_properties_generated.callback_uri, - media_subscription_id=call_connection_properties_generated.media_subscription_id, - data_subscription_id=call_connection_properties_generated.data_subscription_id, source_caller_id_number=deserialize_phone_identifier( call_connection_properties_generated.source_caller_id_number) if call_connection_properties_generated.source_caller_id_number @@ -720,23 +705,33 @@ class RecordingProperties: :paramtype recording_id: str :keyword recording_state: state of ongoing recording. :paramtype recording_state: str or ~azure.communication.callautomation.RecordingState + :keyword recording_kind: kind of the recording. + :paramtype recording_kind: str or ~azure.communication.callautomation.RecordingKind """ recording_id: Optional[str] """Id of this recording operation.""" recording_state: Optional[Union[str, "RecordingState"]] """state of ongoing recording.""" - + recording_kind: Optional[Union[str, 'RecordingKind']] + """kind of the recording.""" def __init__( - self, *, recording_id: Optional[str] = None, recording_state: Optional[Union[str, "RecordingState"]] = None + self, + *, + recording_id: Optional[str] = None, + recording_state: Optional[Union[str,'RecordingState']] = None, + recording_kind: Optional[Union[str, 'RecordingKind']] = None, ): self.recording_id = recording_id self.recording_state = recording_state + self.recording_kind = recording_kind @classmethod - def _from_generated(cls, recording_state_result: "RecordingStateResultRest"): + def _from_generated(cls, recording_state_result: 'RecordingStateResultRest'): return cls( - recording_id=recording_state_result.recording_id, recording_state=recording_state_result.recording_state + recording_id=recording_state_result.recording_id, + recording_state=recording_state_result.recording_state, + recording_kind=recording_state_result.recording_kind, ) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py index 8b3f406d87ec..e22ef8123887 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from typing import List, Union, Optional, TYPE_CHECKING, AsyncIterable, overload, Dict +from typing import List, Union, Optional, TYPE_CHECKING, AsyncIterable, overload from urllib.parse import urlparse import warnings from azure.core.tracing.decorator_async import distributed_trace_async @@ -22,7 +22,6 @@ RejectCallRequest, StartCallRecordingRequest, CallIntelligenceOptions, - CustomCallingContext, ConnectRequest ) from .._models import ( @@ -39,7 +38,6 @@ serialize_phone_identifier, serialize_identifier, serialize_communication_user_identifier, - serialize_msft_teams_app_identifier, build_call_locator, process_repeatability_first_sent, ) @@ -174,7 +172,6 @@ async def connect_call( *, server_call_id: str, cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint:Optional[str] = None, operation_context: Optional[str] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, @@ -189,9 +186,6 @@ async def connect_call( :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str or None - :keyword backup_cognitive_services_endpoint: - The identifier of the Backup Cognitive Service resource assigned to this call. - :paramtype backup_cognitive_services_endpoint: str or None :keyword operation_context: Value that can be used to track the call and its associated events. :paramtype operation_context: str or None :keyword media_streaming: Media Streaming Options. @@ -212,7 +206,6 @@ async def connect_call( *, group_call_id: str, cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint:Optional[str] = None, operation_context: Optional[str] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, @@ -227,9 +220,6 @@ async def connect_call( :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str or None - :keyword backup_cognitive_services_endpoint: - The identifier of the Backup Cognitive Service resource assigned to this call. - :paramtype backup_cognitive_services_endpoint: str or None :keyword operation_context: Value that can be used to track the call and its associated events. :paramtype operation_context: str or None :keyword media_streaming: Media Streaming Options. @@ -250,7 +240,6 @@ async def connect_call( *, room_id: str, cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint:Optional[str] = None, operation_context: Optional[str] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, @@ -265,9 +254,6 @@ async def connect_call( :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str or None - :keyword backup_cognitive_services_endpoint: - The identifier of the Backup Cognitive Service resource assigned to this call. - :paramtype backup_cognitive_services_endpoint: str or None :keyword operation_context: Value that can be used to track the call and its associated events. :paramtype operation_context: str or None :keyword media_streaming: Media Streaming Options. @@ -289,10 +275,8 @@ async def connect_call( ) -> CallConnectionProperties: cognitive_services_endpoint=kwargs.pop("cognitive_services_endpoint", None) - backup_cognitive_services_endpoint=kwargs.pop("backup_cognitive_services_endpoint", None) call_intelligence_options = CallIntelligenceOptions( - cognitive_services_endpoint=cognitive_services_endpoint, - backup_cognitive_services_endpoint=backup_cognitive_services_endpoint + cognitive_services_endpoint=cognitive_services_endpoint ) if cognitive_services_endpoint else None media_streaming_options : Optional[MediaStreamingOptions] = None transcription_options : Optional[TranscriptionOptions] = None @@ -331,12 +315,8 @@ async def create_call( source_display_name: Optional[str] = None, operation_context: Optional[str] = None, cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint:Optional[str] = None, - sip_headers: Optional[Dict[str, str]] = None, - voip_headers: Optional[Dict[str, str]] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, - teams_app_source: Optional['MicrosoftTeamsAppIdentifier'] = None, **kwargs ) -> CallConnectionProperties: """Create a call connection request to a target identity. @@ -357,23 +337,12 @@ async def create_call( :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str or None - :keyword backup_cognitive_services_endpoint: - The identifier of the Backup Cognitive Service resource assigned to this call. - :paramtype backup_cognitive_services_endpoint: str or None - :keyword sip_headers: Sip Headers for PSTN Call - :paramtype sip_headers: Dict[str, str] or None - :keyword voip_headers: Voip Headers for Voip Call - :paramtype voip_headers: Dict[str, str] or None :keyword media_streaming: Media Streaming Options. :paramtype media_streaming: ~azure.communication.callautomation.MediaStreamingOptions or None :keyword transcription: Configuration of live transcription. :paramtype transcription: ~azure.communication.callautomation.TranscriptionOptions or None - :keyword teams_app_source: Overrides default client source by a MicrosoftTeamsAppIdentifier type source. - Required for creating call with Teams resource account ID. - This is per-operation setting and does not change the client's default source. - :paramtype teams_app_source: ~azure.communication.callautomation.MicrosoftTeamsAppIdentifier or None :return: CallConnectionProperties :rtype: ~azure.communication.callautomation.CallConnectionProperties :raises ~azure.core.exceptions.HttpResponseError: @@ -386,17 +355,12 @@ async def create_call( call_intelligence_options = ( CallIntelligenceOptions( - cognitive_services_endpoint=cognitive_services_endpoint, - backup_cognitive_services_endpoint=backup_cognitive_services_endpoint - if backup_cognitive_services_endpoint else None + cognitive_services_endpoint=cognitive_services_endpoint ) if cognitive_services_endpoint else None ) - user_custom_context = None - if sip_headers or voip_headers: - user_custom_context = CustomCallingContext(voip_headers=voip_headers, sip_headers=sip_headers) try: targets = [serialize_identifier(p) for p in target_participant] except TypeError: @@ -409,12 +373,9 @@ async def create_call( source_caller_id_number=serialize_phone_identifier(source_caller_id_number), source_display_name=source_display_name, source=serialize_communication_user_identifier(self.source), - teams_app_source=serialize_msft_teams_app_identifier(teams_app_source), operation_context=operation_context, media_streaming_options=media_config, transcription_options=transcription_config, - cognitive_services_endpoint=cognitive_services_endpoint, - CustomCallingContext=user_custom_context, call_intelligence_options=call_intelligence_options, ) process_repeatability_first_sent(kwargs) @@ -476,12 +437,9 @@ async def answer_call( callback_url: str, *, cognitive_services_endpoint: Optional[str] = None, - backup_cognitive_services_endpoint:Optional[str] = None, operation_context: Optional[str] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, - sip_headers: Optional[Dict[str, str]] = None, - voip_headers: Optional[Dict[str, str]] = None, **kwargs ) -> CallConnectionProperties: """Answer incoming call with Azure Communication Service's IncomingCall event @@ -495,9 +453,6 @@ async def answer_call( :keyword cognitive_services_endpoint: The endpoint url of the Azure Cognitive Services resource attached. :paramtype cognitive_services_endpoint: str - :keyword backup_cognitive_services_endpoint: - The endpoint url of the Azure Backup Cognitive Services resource attached. - :paramtype backup_cognitive_services_endpoint: str :keyword operation_context: The operation context. :paramtype operation_context: str :keyword media_streaming: Media Streaming Options. @@ -506,25 +461,13 @@ async def answer_call( :keyword transcription: Configuration of live transcription. :paramtype transcription: ~azure.communication.callautomation.TranscriptionOptions or None - :keyword sip_headers: Sip Headers for PSTN Call - :paramtype sip_headers: Dict[str, str] or None - :keyword voip_headers: Voip Headers for Voip Call - :paramtype voip_headers: Dict[str, str] or None :return: CallConnectionProperties :rtype: ~azure.communication.callautomation.CallConnectionProperties :raises ~azure.core.exceptions.HttpResponseError: """ - user_custom_context = None - if sip_headers or voip_headers: - user_custom_context = CustomCallingContext( - voip_headers=voip_headers, - sip_headers=sip_headers - ) call_intelligence_options = CallIntelligenceOptions( - cognitive_services_endpoint=cognitive_services_endpoint, - backup_cognitive_services_endpoint=backup_cognitive_services_endpoint - if backup_cognitive_services_endpoint else None + cognitive_services_endpoint=cognitive_services_endpoint ) if cognitive_services_endpoint else None answer_call_request = AnswerCallRequest( @@ -534,11 +477,9 @@ async def answer_call( ) if media_streaming else None, transcription_options=transcription.to_generated() if transcription else None, - cognitive_services_endpoint=cognitive_services_endpoint, answered_by=serialize_communication_user_identifier(self.source) if self.source else None, call_intelligence_options=call_intelligence_options, - operation_context=operation_context, - custom_calling_context=user_custom_context + operation_context=operation_context ) process_repeatability_first_sent(kwargs) @@ -551,9 +492,6 @@ async def redirect_call( self, incoming_call_context: str, target_participant: "CommunicationIdentifier", - *, - sip_headers: Optional[Dict[str, str]] = None, - voip_headers: Optional[Dict[str, str]] = None, **kwargs, ) -> None: """Redirect incoming call to a specific target. @@ -563,10 +501,6 @@ async def redirect_call( :type incoming_call_context: str :param target_participant: The target identity to redirect the call to. :type target_participant: ~azure.communication.callautomation.CommunicationIdentifier - :keyword sip_headers: Sip Headers for PSTN Call - :paramtype sip_headers: Dict[str, str] or None - :keyword voip_headers: Voip Headers for Voip Call - :paramtype voip_headers: Dict[str, str] or None :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -576,13 +510,9 @@ async def redirect_call( if isinstance(target_participant, CallInvite): target_participant = target_participant.target - user_custom_context = None - if sip_headers or voip_headers: - user_custom_context = CustomCallingContext(voip_headers=voip_headers, sip_headers=sip_headers) redirect_call_request = RedirectCallRequest( incoming_call_context=incoming_call_context, - target=serialize_identifier(target_participant), - custom_calling_context=user_custom_context, + target=serialize_identifier(target_participant) ) process_repeatability_first_sent(kwargs) @@ -767,57 +697,6 @@ async def start_recording( :raises ~azure.core.exceptions.HttpResponseError: """ - @overload - async def start_recording( - self, - *, - call_connection_id: str, - recording_state_callback_url: Optional[str] = None, - recording_content_type: Optional[Union[str, 'RecordingContent']] = None, - recording_channel_type: Optional[Union[str, 'RecordingChannel']] = None, - recording_format_type: Optional[Union[str, 'RecordingFormat']] = None, - audio_channel_participant_ordering: Optional[List['CommunicationIdentifier']] = None, - channel_affinity: Optional[List['ChannelAffinity']] = None, - recording_storage: Optional[Union['AzureCommunicationsRecordingStorage', - 'AzureBlobContainerRecordingStorage']] = None, - pause_on_start: Optional[bool] = None, - **kwargs - ) -> RecordingProperties: - """Start recording for a ongoing call. Locate the call with call connection id. - - :keyword str call_connection_id: The call connection ID to locate ongoing call. - :keyword recording_state_callback_url: The url to send notifications to. - :paramtype recording_state_callback_url: str or None - :keyword recording_content_type: The content type of call recording. - :paramtype recording_content_type: str or ~azure.communication.callautomation.RecordingContent or None - :keyword recording_channel_type: The channel type of call recording. - :paramtype recording_channel_type: str or ~azure.communication.callautomation.RecordingChannel or None - :keyword recording_format_type: The format type of call recording. - :paramtype recording_format_type: str or ~azure.communication.callautomation.RecordingFormat or None - :keyword audio_channel_participant_ordering: - The sequential order in which audio channels are assigned to participants in the unmixed recording. - When 'recordingChannelType' is set to 'unmixed' and `audioChannelParticipantOrdering is not specified, - the audio channel to participant mapping will be automatically assigned based on the order in - which participant first audio was detected. - Channel to participant mapping details can be found in the metadata of the recording. - :paramtype audio_channel_participant_ordering: - list[~azure.communication.callautomation.CommunicationIdentifier] or None - :keyword channel_affinity: The channel affinity of call recording - When 'recordingChannelType' is set to 'unmixed', if channelAffinity is not specified, - 'channel' will be automatically assigned. - Channel-Participant mapping details can be found in the metadata of the recording. - :paramtype channel_affinity: list[~azure.communication.callautomation.ChannelAffinity] or None - :keyword recording_storage: Defines the kind of external storage. Known values are: - ``AzureCommunicationsRecordingStorage`` and ``AzureBlobContainerRecordingStorage``. - If no storage option is provided, the default is Azure Communications recording storage. - :paramtype recording_storage: AzureCommunicationsRecordingStorage or AzureBlobContainerRecordingStorage or None - :keyword pause_on_start: The state of the pause on start option. - :paramtype pause_on_start: bool or None - :return: RecordingProperties - :rtype: ~azure.communication.callautomation.RecordingProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async async def start_recording( self, @@ -835,10 +714,8 @@ async def start_recording( kwargs.pop("room_id", None) ) external_storage = build_external_storage(kwargs.pop("recording_storage", None)) - call_connection_id = kwargs.pop("call_connection_id", None) start_recording_request = StartCallRecordingRequest( call_locator=call_locator if call_locator else None, - call_connection_id=call_connection_id if call_connection_id else None, recording_state_callback_uri=kwargs.pop("recording_state_callback_url", None), recording_content_type=kwargs.pop("recording_content_type", None), recording_channel_type=kwargs.pop("recording_channel_type", None), diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py index 467f6175f780..371459673f91 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py @@ -50,8 +50,7 @@ HoldRequest, UnholdRequest, StartMediaStreamingRequest, - StopMediaStreamingRequest, - InterruptAudioAndAnnounceRequest + StopMediaStreamingRequest ) from .._generated.models._enums import RecognizeInputType from .._shared.auth_policy_utils import get_authentication_policy @@ -390,7 +389,6 @@ async def play_media( loop: bool = False, operation_context: Optional[str] = None, operation_callback_url: Optional[str] = None, - interrupt_hold_audio : bool = False, **kwargs ) -> None: """Play media to specific participant(s) in this call. @@ -414,9 +412,6 @@ async def play_media( This setup is per-action. If this is not set, the default callback URL set by CreateCall/AnswerCall will be used. :paramtype operation_callback_url: str or None - :keyword interrupt_hold_audio: If set, hold audio will be interrupted, then this request will be - played, and then the hold audio will be resumed. - :paramtype interrupt_hold_audio: bool :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -521,7 +516,6 @@ async def _play_media( operation_context: Optional[str] = None, operation_callback_url: Optional[str] = None, interrupt_call_media_operation: Optional[bool] = None, - interrupt_hold_audio : bool = False, **kwargs, ) -> None: """Play media to specific participant(s) in this call. @@ -548,9 +542,6 @@ async def _play_media( :keyword interrupt_call_media_operation: If set play can barge into other existing queued-up/currently-processing requests. :paramtype interrupt_call_media_operation: bool - :keyword interrupt_hold_audio: If set, hold audio will be interrupted, then this request will be - played, and then the hold audio will be resumed. - :paramtype interrupt_hold_audio: bool :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -565,13 +556,12 @@ async def _play_media( audience = [] if play_to == "all" else [serialize_identifier(i) for i in play_to] interrupt_call_media_operation = interrupt_call_media_operation if play_to == "all" else False - interrupt_hold_audio = interrupt_hold_audio if play_to != "all" else False play_request = PlayRequest( play_sources=[play_source_single._to_generated()] if play_source_single else # pylint:disable=protected-access [source._to_generated() for source in play_sources] if play_sources else None, # pylint:disable=protected-access play_to=audience, - play_options=PlayOptions(loop=loop, interrupt_call_media_operation=interrupt_call_media_operation, - interrupt_hold_audio=interrupt_hold_audio), + play_options=PlayOptions(loop=loop), + interrupt_call_media_operation=interrupt_call_media_operation, operation_context=operation_context, operation_callback_uri=operation_callback_url, **kwargs, @@ -770,7 +760,6 @@ async def start_continuous_dtmf_recognition( target_participant: "CommunicationIdentifier", *, operation_context: Optional[str] = None, - operation_callback_url: Optional[str] = None, **kwargs, ) -> None: """Start continuous Dtmf recognition by subscribing to tones. @@ -779,19 +768,13 @@ async def start_continuous_dtmf_recognition( :type target_participant: ~azure.communication.callautomation.CommunicationIdentifier :keyword operation_context: Value that can be used to track this call and its associated events. :paramtype operation_context: str - :keyword operation_callback_url: Set a callback URL that overrides the default callback URL set - by CreateCall/AnswerCall for this operation. - This setup is per-action. If this is not set, the default callback URL set by - CreateCall/AnswerCall will be used. - :paramtype operation_callback_url: str or None :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ continuous_dtmf_recognition_request = ContinuousDtmfRecognitionRequest( target_participant=serialize_identifier(target_participant), - operation_context=operation_context, - operation_callback_uri=operation_callback_url, + operation_context=operation_context ) await self._call_media_client.start_continuous_dtmf_recognition( self._call_connection_id, continuous_dtmf_recognition_request, **kwargs @@ -1160,43 +1143,6 @@ async def stop_media_streaming( **kwargs ) - @distributed_trace_async - async def interrupt_audio_and_announce( - self, - target_participant: "CommunicationIdentifier", - play_sources: List[Union['FileSource', 'TextSource', 'SsmlSource']], - *, - operation_context: Optional[str] = None, - **kwargs, - ) -> None: - """Play media to specific participant(s) in this call. - - :param target_participant: The participant being added. - :type target_participant: ~azure.communication.callautomation.CommunicationIdentifier - :param play_sources: A PlaySource representing the source to play. - :type play_sources: list[~azure.communication.callautomation.FileSource] or - list[~azure.communication.callautomation.TextSource] or - list[~azure.communication.callautomation.SsmlSource] - :keyword operation_context: Value that can be used to track this call and its associated events. - :paramtype operation_context: str or None - :return: None - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - interrupt_audio_announce_request = InterruptAudioAndAnnounceRequest( - play_sources=[source._to_generated() for source in play_sources] if play_sources else None, # pylint:disable=protected-access - play_to=serialize_identifier(target_participant), - operation_context=operation_context, - kwargs=kwargs, - ) - - self._call_media_client.interrupt_audio_and_announce( - self._call_connection_id, - interrupt_audio_announce_request, - **kwargs - ) - - async def __aenter__(self) -> "CallConnectionClient": await self._client.__aenter__() return self diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_content_downloader_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_content_downloader_async.py index aa652af2292a..fb8595a99769 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_content_downloader_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_content_downloader_async.py @@ -20,7 +20,7 @@ from azure.core.utils import case_insensitive_dict from .._generated import models as _models -from .._generated._serialization import Serializer +from .._generated._utils.serialization import Serializer from .._generated.aio.operations import CallRecordingOperations _SERIALIZER = Serializer() diff --git a/sdk/communication/azure-communication-callautomation/swagger/SWAGGER.md b/sdk/communication/azure-communication-callautomation/swagger/SWAGGER.md index e3e836321bdf..99c904b19b92 100644 --- a/sdk/communication/azure-communication-callautomation/swagger/SWAGGER.md +++ b/sdk/communication/azure-communication-callautomation/swagger/SWAGGER.md @@ -16,8 +16,8 @@ autorest SWAGGER.md ### Settings ```yaml -tag: package-2024-09-01-preview -require: https://github.com/Azure/azure-rest-api-specs/blob/c4617cc66337beda60a1781f8d511dd5089bc649/specification/communication/data-plane/CallAutomation/readme.md +tag: package-2025-05-15 +require: https://github.com/Azure/azure-rest-api-specs/blob/8bf7f264d186b52eccb579accd3f584788511049/specification/communication/data-plane/CallAutomation/readme.md output-folder: ../azure/communication/callautomation/_generated models-mode: msrest namespace: azure.communication.callautomation diff --git a/sdk/communication/azure-communication-callautomation/tests/test_call_media_client.py b/sdk/communication/azure-communication-callautomation/tests/test_call_media_client.py index a1a237208d9a..624021ade5e6 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_call_media_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_call_media_client.py @@ -30,8 +30,7 @@ HoldRequest, UnholdRequest, StartMediaStreamingRequest, - StopMediaStreamingRequest, - InterruptAudioAndAnnounceRequest + StopMediaStreamingRequest ) from azure.communication.callautomation._generated.models._enums import RecognizeInputType, DtmfTone from unittest.mock import Mock @@ -152,30 +151,6 @@ def test_play_file_to_all_via_play_back_compat_with_barge_in(self): self.assertEqual(expected_play_request.play_to, actual_play_request.play_to) self.assertEqual(expected_play_request.play_options.interrupt_call_media_operation, actual_play_request.play_options.interrupt_call_media_operation) - def test_play_file_play_interrupt_hold_audio(self): - mock_play = Mock() - self.call_media_operations.play = mock_play - play_source = FileSource(url=self.url) - - self.call_connection_client.play_media(play_source=play_source, play_to=[self.target_user], interrupt_hold_audio=True) - - expected_play_request = PlayRequest( - play_sources=[play_source._to_generated()], - play_to=[serialize_identifier(self.target_user)], - play_options=PlayOptions(loop=False, interrupt_hold_audio=True) - ) - mock_play.assert_called_once() - actual_play_request = mock_play.call_args[0][1] - - self.assertEqual(expected_play_request.play_sources[0].kind, actual_play_request.play_sources[0].kind) - self.assertEqual(expected_play_request.play_sources[0].file.uri, actual_play_request.play_sources[0].file.uri) - self.assertEqual( - expected_play_request.play_sources[0].play_source_cache_id, - actual_play_request.play_sources[0].play_source_cache_id, - ) - self.assertEqual(expected_play_request.play_to[0]['raw_id'], actual_play_request.play_to[0]['raw_id']) - self.assertEqual(expected_play_request.play_options.interrupt_hold_audio, actual_play_request.play_options.interrupt_hold_audio) - def test_play_file_to_all_back_compat_with_barge_in(self): mock_play = Mock() self.call_media_operations.play = mock_play @@ -768,55 +743,4 @@ def test_stop_media_streaming_with_no_param(self): mock_stop_media_streaming.assert_called_once() actual_call_connection_id = mock_stop_media_streaming.call_args[0][0] - self.assertEqual(self.call_connection_id,actual_call_connection_id) - - def test_interrupt_audio_and_announce(self): - mock_hold = Mock() - mock_interrupt_audio_and_announce = Mock() - mock_unhold = Mock() - self.call_media_operations.hold = mock_hold - self.call_media_operations.interrupt_audio_and_announce = mock_interrupt_audio_and_announce - self.call_media_operations.unhold = mock_unhold - self.call_media_operations.hold = mock_hold - play_source = FileSource(url=self.url) - operation_context = "context" - - self.call_connection_client.hold( - target_participant=self.target_user, play_source=play_source, operation_context=operation_context - ) - - expected_hold_request = HoldRequest( - target_participant=[serialize_identifier(self.target_user)], - play_source_info=play_source._to_generated(), - operation_context=operation_context, - ) - mock_hold.assert_called_once() - actual_hold_request = mock_hold.call_args[0][1] - - self.assertEqual(expected_hold_request.play_source_info.file.uri, actual_hold_request.play_source_info.file.uri) - self.assertEqual(expected_hold_request.play_source_info.kind, actual_hold_request.play_source_info.kind) - self.assertEqual(expected_hold_request.operation_context, actual_hold_request.operation_context) - - play_sources = [FileSource(url=self.url), TextSource(text='test test test')] - self.call_connection_client.interrupt_audio_and_announce(target_participant=self.target_user, play_sources=play_sources) - - expected_interrupt_audio_announce_request = InterruptAudioAndAnnounceRequest( - play_sources=[play_source._to_generated()], - play_to=serialize_identifier(self.target_user), - operation_context=operation_context, - ) - mock_interrupt_audio_and_announce.assert_called_once() - actual_interrupt_audio_and_announce_request = mock_interrupt_audio_and_announce.call_args[0][1] - - self.assertEqual(expected_interrupt_audio_announce_request.play_sources[0].kind, actual_interrupt_audio_and_announce_request.play_sources[0].kind) - self.assertEqual(expected_interrupt_audio_announce_request.play_to, actual_interrupt_audio_and_announce_request.play_to) - - self.call_connection_client.unhold(target_participant=self.target_user, operation_context=operation_context) - - expected_hold_request = UnholdRequest( - target_participant=serialize_identifier(self.target_user), operation_context=operation_context - ) - mock_unhold.assert_called_once() - actual_hold_request = mock_unhold.call_args[0][1] - - self.assertEqual(expected_hold_request.operation_context, actual_hold_request.operation_context) \ No newline at end of file + self.assertEqual(self.call_connection_id,actual_call_connection_id) \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/test_callautomation_client.py b/sdk/communication/azure-communication-callautomation/tests/test_callautomation_client.py index 842d0a474994..f3450eeb6c08 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_callautomation_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_callautomation_client.py @@ -87,53 +87,6 @@ def mock_send(request, **kwargs): self.assertEqual(self.server_callI_id, call_connection_properties.server_call_id) self.assertEqual(self.callback_url, call_connection_properties.callback_url) - def test_ops_create_call(self): - def mock_send(request, **kwargs): - kwargs.pop("stream", None) - if kwargs: - raise ValueError(f"Received unexpected kwargs in transport: {kwargs}") - body = json.loads(request.content) - return mock_response( - status_code=201, - json_payload={ - "callConnectionId": self.call_connection_id, - "serverCallId": self.server_callI_id, - "callbackUri": self.callback_url, - "targets": [ - { - "rawId": self.another_microsoft_teams_app_id, - "microsoftTeamsApp": {"app_id": self.another_microsoft_teams_app_id}, - } - ], - "source": { - "rawId": self.microsoft_teams_app_id, - "microsoftTeamsApp": {"app_id": self.microsoft_teams_app_id}, - }, - }, - ) - - # target endpoint for ACS User - user = MicrosoftTeamsAppIdentifier(self.another_microsoft_teams_app_id) - - # caller endpoint for OPS call - caller = MicrosoftTeamsAppIdentifier(self.microsoft_teams_app_id) - - # make invitation - call_invite = CallInvite(target=user) - call_automation_client = CallAutomationClient( - "https://endpoint", - AzureKeyCredential("fakeCredential=="), - transport=Mock(send=mock_send) - ) - call_connection_properties = call_automation_client.create_call(call_invite, - self.callback_url, - teams_app_source=caller) - self.assertEqual(self.call_connection_id, call_connection_properties.call_connection_id) - self.assertEqual(self.server_callI_id, call_connection_properties.server_call_id) - self.assertEqual(self.callback_url, call_connection_properties.callback_url) - self.assertEqual(self.microsoft_teams_app_id, call_connection_properties.source.raw_id) - self.assertEqual(self.another_microsoft_teams_app_id, call_connection_properties.targets[0].raw_id) - def test_create_group_call(self): def mock_send(_, **kwargs): kwargs.pop("stream", None) diff --git a/sdk/communication/azure-communication-callautomation/tests/test_e2e_media_client.py b/sdk/communication/azure-communication-callautomation/tests/test_e2e_media_client.py index 546c5e90c646..df983a50ce4d 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_e2e_media_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_e2e_media_client.py @@ -15,11 +15,9 @@ PhoneNumberIdentifier, MediaStreamingOptions, MediaStreamingContentType, - MediaStreamingTransportType, + StreamingTransportType, MediaStreamingAudioChannelType, TranscriptionOptions, - TranscriptionTransportType, - TranscriptionTransportType, TextSource, RecognizeInputType, RecognitionChoice @@ -216,7 +214,7 @@ def test_start_stop_media_streaming_in_a_call(self): media_streaming_options=MediaStreamingOptions( transport_url=self.transport_url, - transport_type=MediaStreamingTransportType.WEBSOCKET, + transport_type=StreamingTransportType.WEBSOCKET, content_type=MediaStreamingContentType.AUDIO, audio_channel_type=MediaStreamingAudioChannelType.MIXED, start_media_streaming=False @@ -280,7 +278,7 @@ def test_start_stop_transcription_in_call(self): transcription_options=TranscriptionOptions( transport_url=self.transport_url, - transport_type=TranscriptionTransportType.WEBSOCKET, + transport_type=StreamingTransportType.WEBSOCKET, locale="en-US", start_transcription=False) @@ -812,93 +810,6 @@ def test_interrupt_audio_and_announce_in_a_call(self): get_participant_result = call_connection.get_participant(target) - if get_participant_result is None: - raise ValueError("Invalid get_participant_result") - - if get_participant_result.is_on_hold is True: - raise ValueError("Failed to unhold participant") - - self.terminate_call(unique_id) - return - - @recorded_by_proxy - def test_play_file_source_with_interrupt_hold_audio_with_play_media(self): - # try to establish the call - caller = self.identity_client.create_user() - target = self.identity_client.create_user() - unique_id, call_connection, _ = self.establish_callconnection_voip(caller, target) - - # check returned events - connected_event = self.check_for_event('CallConnected', call_connection._call_connection_id, timedelta(seconds=15)) - participant_updated_event = self.check_for_event('ParticipantsUpdated', call_connection._call_connection_id, timedelta(seconds=15)) - - if connected_event is None: - raise ValueError("Caller CallConnected event is None") - if participant_updated_event is None: - raise ValueError("Caller ParticipantsUpdated event is None") - - random_unique_id = self._unique_key_gen(caller, target) - - play_hold_source = FileSource(url=self.file_source_url) - - # Hold participant - call_connection.hold(target, play_source=play_hold_source, - operation_context="hold_add_target_participant", - operation_callback_url=(self.dispatcher_callback + "?q={}".format(random_unique_id))) - - time.sleep(2) - hold_audio_event = self.check_for_event('HoldAudioStarted', call_connection._call_connection_id, timedelta(seconds=30)) - if hold_audio_event is None: - raise ValueError("HoldAudioStarted event is None") - - get_participant_result = call_connection.get_participant(target) - if get_participant_result is None: - raise ValueError("Invalid get_participant_result") - - if get_participant_result.is_on_hold is False: - raise ValueError("Failed to hold participant") - - play_file_source = FileSource(url=self.file_source_url) - - # play media - call_connection.play_media( - play_source=play_file_source, - play_to=[target], - interrupt_hold_audio=True, - operation_callback_url=(self.dispatcher_callback + "?q={}".format(random_unique_id)) - ) - - # check for HoldAudioPaused event - hold_audio_paused_event = self.check_for_event('HoldAudioPaused', call_connection._call_connection_id, timedelta(seconds=30)) - if hold_audio_paused_event is None: - raise ValueError("HoldAudioPaused event is None") - - # check for PlayStarted event - play_started_event = self.check_for_event('PlayStarted', call_connection._call_connection_id, timedelta(seconds=30)) - if play_started_event is None: - raise ValueError("PlayStarted event is None") - - # check for PlayCompleted event - play_completed_event_file_source_to_target = self.check_for_event('PlayCompleted', call_connection._call_connection_id, timedelta(seconds=30)) - if play_completed_event_file_source_to_target is None: - raise ValueError("PlayCompleted event is None") - - # check for HoldAudioResumed event - hold_audio_resume_event = self.check_for_event('HoldAudioResumed', call_connection._call_connection_id, timedelta(seconds=30)) - if hold_audio_resume_event is None: - raise ValueError("HoldAudioResumed event is None") - - # Unhold participant - call_connection.unhold(target, operation_context="unhold_add_target_participant") - - time.sleep(2) - # check for HoldAudioCompleted event - hold_audio_completed_event = self.check_for_event('HoldAudioCompleted', call_connection._call_connection_id, timedelta(seconds=30)) - if hold_audio_completed_event is None: - raise ValueError("HoldAudioCompleted event is None") - - get_participant_result = call_connection.get_participant(target) - if get_participant_result is None: raise ValueError("Invalid get_participant_result") From 325fe7dc9894d49347e5120f52444a297f0abbed Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Fri, 16 May 2025 10:03:30 -0700 Subject: [PATCH 02/23] Addressing comments --- .../callautomation/_call_connection_client.py | 9 +++++---- .../_credential/call_automation_policy.py | 3 +-- .../azure/communication/callautomation/_models.py | 6 ++++-- .../aio/_call_connection_client_async.py | 11 ++++++----- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py index dab8956a392e..aef3da125fae 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py @@ -610,11 +610,12 @@ def start_recognizing_media( interrupt_prompt: bool = False, dtmf_inter_tone_timeout: Optional[int] = None, dtmf_max_tones_to_collect: Optional[int] = None, - dtmf_stop_tones: Optional[List[Union[str, "DtmfTone"]]] = None, + dtmf_stop_tones: Optional[List[Union[str, 'DtmfTone']]] = None, speech_language: Optional[str] = None, choices: Optional[List["RecognitionChoice"]] = None, end_silence_timeout: Optional[int] = None, speech_recognition_model_endpoint_id: Optional[str] = None, + operation_callback_url: Optional[str] = None, **kwargs, ) -> None: """Recognize inputs from specific participant in this call. @@ -952,16 +953,16 @@ def stop_transcription( @distributed_trace def update_transcription( self, - locale: str, *, + locale: str, operation_context: Optional[str] = None, speech_recognition_model_endpoint_id: Optional[str] = None, operation_callback_url: Optional[str] = None, **kwargs) -> None: """API to change transcription language. - :param locale: Defines new locale for transcription. - :type locale: str + :keyword locale: Defines new locale for transcription. + :paramtype locale: str :keyword operation_context: The value to identify context of the operation. :paramtype operation_context: str :keyword speech_recognition_model_endpoint_id: Endpoint where the custom model was deployed. diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_credential/call_automation_policy.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_credential/call_automation_policy.py index 821dbec4c3f5..872cb2812a50 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_credential/call_automation_policy.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_credential/call_automation_policy.py @@ -30,8 +30,7 @@ def __init__( acs_url: str, access_key: Union[str, AzureKeyCredential], decode_url: bool = False, - ): - # type: (...) -> None + ) -> None: super(CallAutomationHMACCredentialsPolicy, self).__init__() if host.startswith("https://"): diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py index ac9f5d137965..f8db9b4d275c 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py @@ -391,6 +391,7 @@ class MediaStreamingOptions: def __init__( self, + * transport_url: str, transport_type: Union[str, 'StreamingTransportType'], content_type: Union[str, 'MediaStreamingContentType'], @@ -407,7 +408,7 @@ def __init__( self.enable_bidirectional = enable_bidirectional self.audio_format = audio_format - def to_generated(self): + def _to_generated(self): return WebSocketMediaStreamingOptionsRest( transport_url=self.transport_url, transport_type=self.transport_type, @@ -452,6 +453,7 @@ class TranscriptionOptions: def __init__( self, + *, transport_url: str, transport_type: Union[str, "StreamingTransportType"], locale: str, @@ -466,7 +468,7 @@ def __init__( self.speech_recognition_model_endpoint_id = speech_recognition_model_endpoint_id self.enable_intermediate_results = enable_intermediate_results - def to_generated(self): + def _to_generated(self): return WebSocketTranscriptionOptionsRest( transport_url=self.transport_url, transport_type=self.transport_type, diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py index 371459673f91..920389d95628 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py @@ -631,7 +631,7 @@ async def start_recognizing_media( interrupt_prompt: bool = False, dtmf_inter_tone_timeout: Optional[int] = None, dtmf_max_tones_to_collect: Optional[int] = None, - dtmf_stop_tones: Optional[List[str or "DtmfTone"]] = None, + dtmf_stop_tones: Optional[List[Union[str, 'DtmfTone']]] = None, speech_language: Optional[str] = None, choices: Optional[List["RecognitionChoice"]] = None, end_silence_timeout: Optional[int] = None, @@ -978,15 +978,16 @@ async def stop_transcription( @distributed_trace_async async def update_transcription( self, - locale: str, *, + locale: str, operation_context: Optional[str] = None, speech_recognition_model_endpoint_id: Optional[str] = None, operation_callback_url: Optional[str] = None, **kwargs) -> None: """API to change transcription language. - :param locale: Defines new locale for transcription. + :keyword locale: Defines new locale for transcription. + :paramtype locale: str :keyword operation_context: The value to identify context of the operation. :paramtype operation_context: str :keyword speech_recognition_model_endpoint_id: Endpoint where the custom model was deployed. @@ -1107,7 +1108,7 @@ async def start_media_streaming( operation_callback_uri=operation_callback_url, operation_context=operation_context ) - self._call_media_client.start_media_streaming( + await self._call_media_client.start_media_streaming( self._call_connection_id, start_media_streaming_request, **kwargs) @@ -1137,7 +1138,7 @@ async def stop_media_streaming( operation_callback_uri=operation_callback_url, operation_context=operation_context ) - self._call_media_client.stop_media_streaming( + await self._call_media_client.stop_media_streaming( self._call_connection_id, stop_media_streaming_request, **kwargs From a6e2571b9ff8ae2f2d18e08bb350a37941167355 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 21 May 2025 05:31:25 -0700 Subject: [PATCH 03/23] fixing the media streaming error --- .../callautomation/_call_automation_client.py | 12 ++++++------ .../aio/_call_automation_client_async.py | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py index 3fdce47abf0d..d5ace29b3382 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py @@ -279,8 +279,8 @@ def connect_call( callback_uri=callback_url, operation_context=kwargs.pop("operation_context", None), call_intelligence_options=call_intelligence_options, - media_streaming_options=media_streaming_options.to_generated() if media_streaming_options else None, - transcription_options=transcription_options.to_generated() if transcription_options else None + media_streaming_options=media_streaming_options._to_generated() if media_streaming_options else None, + transcription_options=transcription_options._to_generated() if transcription_options else None ) process_repeatability_first_sent(kwargs) @@ -351,8 +351,8 @@ def create_call( targets = [serialize_identifier(p) for p in target_participant] except TypeError: targets = [serialize_identifier(target_participant)] - media_config = media_streaming.to_generated() if media_streaming else None - transcription_config = transcription.to_generated() if transcription else None + media_config = media_streaming._to_generated() if media_streaming else None + transcription_config = transcription._to_generated() if transcription else None create_call_request = CreateCallRequest( targets=targets, callback_uri=callback_url, @@ -462,9 +462,9 @@ def answer_call( call_intelligence_options=call_intelligence_options, answered_by=serialize_communication_user_identifier( self.source) if self.source else None, - media_streaming_options=media_streaming.to_generated( + media_streaming_options=media_streaming._to_generated( ) if media_streaming else None, - transcription_options=transcription.to_generated() + transcription_options=transcription._to_generated() if transcription else None, operation_context=operation_context ) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py index e22ef8123887..19dc7aa7fd90 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py @@ -293,8 +293,8 @@ async def connect_call( callback_uri=callback_url, operation_context=kwargs.pop("operation_context", None), call_intelligence_options=call_intelligence_options, - media_streaming_options=media_streaming_options.to_generated() if media_streaming_options else None, - transcription_options=transcription_options.to_generated() if transcription_options else None + media_streaming_options=media_streaming_options._to_generated() if media_streaming_options else None, + transcription_options=transcription_options._to_generated() if transcription_options else None ) process_repeatability_first_sent(kwargs) @@ -365,8 +365,8 @@ async def create_call( targets = [serialize_identifier(p) for p in target_participant] except TypeError: targets = [serialize_identifier(target_participant)] - media_config = media_streaming.to_generated() if media_streaming else None - transcription_config = transcription.to_generated() if transcription else None + media_config = media_streaming._to_generated() if media_streaming else None + transcription_config = transcription._to_generated() if transcription else None create_call_request = CreateCallRequest( targets=targets, callback_uri=callback_url, @@ -473,9 +473,9 @@ async def answer_call( answer_call_request = AnswerCallRequest( incoming_call_context=incoming_call_context, callback_uri=callback_url, - media_streaming_options=media_streaming.to_generated( + media_streaming_options=media_streaming._to_generated( ) if media_streaming else None, - transcription_options=transcription.to_generated() + transcription_options=transcription._to_generated() if transcription else None, answered_by=serialize_communication_user_identifier(self.source) if self.source else None, call_intelligence_options=call_intelligence_options, From c570649bdd9510b806e1f179ec1e0985432989ad Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 21 May 2025 13:20:54 -0700 Subject: [PATCH 04/23] updating the change --- .../azure/communication/callautomation/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py index f8db9b4d275c..4758bc4a401d 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py @@ -391,7 +391,7 @@ class MediaStreamingOptions: def __init__( self, - * + *, transport_url: str, transport_type: Union[str, 'StreamingTransportType'], content_type: Union[str, 'MediaStreamingContentType'], From 448912821e3ef7ffbcb5cb4fcb470e885765143d Mon Sep 17 00:00:00 2001 From: v-saasomani Date: Wed, 21 May 2025 15:45:45 -0700 Subject: [PATCH 05/23] Recorded live tests + GA5 changes (#41253) --- .../assets.json | 2 +- .../callautomation/_call_automation_client.py | 14 +- .../aio/_call_automation_client_async.py | 14 +- .../tests/callautomation_test_case.py | 20 +- ...participant_then_cancel_request.event.json | 2 +- ...OIP_call_and_answer_then_hangup.event.json | 2 +- ...t_recording_with_server_call_id.event.json | 2 +- ...ld_unhold_participant_in_a_call.event.json | 2 +- ..._and_mute_participant_in_a_call.event.json | 2 +- ...pt_audio_and_announce_in_a_call.event.json | 2 +- ...nd_text_sources_with_play_media.event.json | 2 +- ...ext_sources_with_play_media_all.event.json | 2 +- ...veTesttest_play_media_in_a_call.event.json | 2 +- ...tioncallbackurl_with_play_media.event.json | 2 +- ...callbackurl_with_play_media_all.event.json | 2 +- ...le_file_sources_with_play_media.event.json | 2 +- ...ile_sources_with_play_media_all.event.json | 2 +- ...le_text_sources_with_play_media.event.json | 2 +- ...ext_sources_with_play_media_all.event.json | 2 +- ...id_file_sources_with_play_media.event.json | 2 +- ...ile_sources_with_play_media_all.event.json | 2 +- ...id_file_sources_with_play_media.event.json | 2 +- ...ile_sources_with_play_media_all.event.json | 2 +- ..._stop_media_streaming_in_a_call.event.json | 2 +- ...tart_stop_transcription_in_call.event.json | 2 +- .../tests/test_call_media_client.py | 19 +- .../tests/test_call_recording_client.py | 14 -- .../tests/test_callautomation_client.py | 39 +--- .../tests/test_e2e_callautomation_client.py | 66 +------ .../tests/test_e2e_media_client.py | 172 +++++------------- 30 files changed, 103 insertions(+), 299 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/assets.json b/sdk/communication/azure-communication-callautomation/assets.json index 568abc74996b..2d6e02fea169 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": "python", "TagPrefix": "python/communication/azure-communication-callautomation", - "Tag": "python/communication/azure-communication-callautomation_4be693f217" + "Tag": "python/communication/azure-communication-callautomation_396e206eb1" } diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py index d5ace29b3382..951306e5d018 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py @@ -279,8 +279,8 @@ def connect_call( callback_uri=callback_url, operation_context=kwargs.pop("operation_context", None), call_intelligence_options=call_intelligence_options, - media_streaming_options=media_streaming_options._to_generated() if media_streaming_options else None, - transcription_options=transcription_options._to_generated() if transcription_options else None + media_streaming_options=media_streaming_options._to_generated() if media_streaming_options else None, # pylint:disable=protected-access + transcription_options=transcription_options._to_generated() if transcription_options else None # pylint:disable=protected-access ) process_repeatability_first_sent(kwargs) @@ -351,8 +351,8 @@ def create_call( targets = [serialize_identifier(p) for p in target_participant] except TypeError: targets = [serialize_identifier(target_participant)] - media_config = media_streaming._to_generated() if media_streaming else None - transcription_config = transcription._to_generated() if transcription else None + media_config = media_streaming._to_generated() if media_streaming else None # pylint:disable=protected-access + transcription_config = transcription._to_generated() if transcription else None # pylint:disable=protected-access create_call_request = CreateCallRequest( targets=targets, callback_uri=callback_url, @@ -462,10 +462,8 @@ def answer_call( call_intelligence_options=call_intelligence_options, answered_by=serialize_communication_user_identifier( self.source) if self.source else None, - media_streaming_options=media_streaming._to_generated( - ) if media_streaming else None, - transcription_options=transcription._to_generated() - if transcription else None, + media_streaming_options=media_streaming._to_generated() if media_streaming else None, # pylint:disable=protected-access + transcription_options=transcription._to_generated() if transcription else None, # pylint:disable=protected-access operation_context=operation_context ) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py index 19dc7aa7fd90..99b3b00610ad 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py @@ -293,8 +293,8 @@ async def connect_call( callback_uri=callback_url, operation_context=kwargs.pop("operation_context", None), call_intelligence_options=call_intelligence_options, - media_streaming_options=media_streaming_options._to_generated() if media_streaming_options else None, - transcription_options=transcription_options._to_generated() if transcription_options else None + media_streaming_options=media_streaming_options._to_generated() if media_streaming_options else None, # pylint:disable=protected-access + transcription_options=transcription_options._to_generated() if transcription_options else None # pylint:disable=protected-access ) process_repeatability_first_sent(kwargs) @@ -365,8 +365,8 @@ async def create_call( targets = [serialize_identifier(p) for p in target_participant] except TypeError: targets = [serialize_identifier(target_participant)] - media_config = media_streaming._to_generated() if media_streaming else None - transcription_config = transcription._to_generated() if transcription else None + media_config = media_streaming._to_generated() if media_streaming else None # pylint:disable=protected-access + transcription_config = transcription._to_generated() if transcription else None # pylint:disable=protected-access create_call_request = CreateCallRequest( targets=targets, callback_uri=callback_url, @@ -473,10 +473,8 @@ async def answer_call( answer_call_request = AnswerCallRequest( incoming_call_context=incoming_call_context, callback_uri=callback_url, - media_streaming_options=media_streaming._to_generated( - ) if media_streaming else None, - transcription_options=transcription._to_generated() - if transcription else None, + media_streaming_options=media_streaming._to_generated() if media_streaming else None, # pylint:disable=protected-access + transcription_options=transcription._to_generated() if transcription else None, # pylint:disable=protected-access answered_by=serialize_communication_user_identifier(self.source) if self.source else None, call_intelligence_options=call_intelligence_options, operation_context=operation_context diff --git a/sdk/communication/azure-communication-callautomation/tests/callautomation_test_case.py b/sdk/communication/azure-communication-callautomation/tests/callautomation_test_case.py index 47e9000da443..c2fbfdc305fd 100644 --- a/sdk/communication/azure-communication-callautomation/tests/callautomation_test_case.py +++ b/sdk/communication/azure-communication-callautomation/tests/callautomation_test_case.py @@ -183,9 +183,6 @@ def establish_callconnection_voip(self, caller, target, *, cognitive_service_ena def establish_callconnection_pstn(self, caller, target) -> tuple: return self._establish_callconnection(caller, target, is_pstn=True) - def establish_callconnection_voip_answercall_withcustomcontext(self, caller, target) -> tuple: - return self._establish_callconnection(caller, target, custom_context=True) - def establish_callconnection_voip_with_streaming_options(self, caller, target, options, is_transcription) -> tuple: return self._establish_callconnection( caller, target, options=options, is_transcription=is_transcription @@ -194,7 +191,7 @@ def establish_callconnection_voip_with_streaming_options(self, caller, target, o def establish_callconnection_voip_connect_call(self, caller, target) -> tuple: return self._establish_callconnection(caller, target, connect_call=True) - def _establish_callconnection(self, caller, target, cognitive_service_enabled: Optional[bool] = False, is_pstn: bool = False, custom_context: bool = False, options=None, is_transcription: bool = False, connect_call: bool = False) -> tuple: + def _establish_callconnection(self, caller, target, cognitive_service_enabled: Optional[bool] = False, is_pstn: bool = False, options=None, is_transcription: bool = False, connect_call: bool = False) -> tuple: call_automation_client_caller = self._create_call_automation_client(caller) call_automation_client_target = self._create_call_automation_client(target) @@ -209,7 +206,7 @@ def _establish_callconnection(self, caller, target, cognitive_service_enabled: O caller_connection_id = self._validate_create_call_result(create_call_result) incoming_call_context = self._wait_for_incoming_call(unique_id) - answer_call_result = self._answer_call(call_automation_client_target, incoming_call_context, custom_context) + answer_call_result = self._answer_call(call_automation_client_target, incoming_call_context) call_connection_caller = self._create_call_connection_client(caller_connection_id) call_connection_target = self._create_call_connection_client(answer_call_result.call_connection_id) @@ -274,15 +271,10 @@ def _wait_for_incoming_call(self, unique_id): raise ValueError("incoming_call_event is None") return incoming_call_event["incomingCallContext"] - def _answer_call(self, client, context, custom_context): - if custom_context: - result = client.answer_call( - incoming_call_context=context, callback_url=self.dispatcher_callback, voip_headers={"foo": "bar"} - ) - else: - result = client.answer_call( - incoming_call_context=context, callback_url=self.dispatcher_callback - ) + def _answer_call(self, client, context): + result = client.answer_call( + incoming_call_context=context, callback_url=self.dispatcher_callback + ) if result is None: raise ValueError("Invalid answer_call result") return result diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json index b3062fa982f2..2f3bd379d128 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-f268-85f4-343a0d000338", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-f268-85f4-343a0d000338"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-f16b-85f4-343a0d000337", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-f16b-85f4-343a0d000337"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zb3haUEFtWFRVRy1OcDQzWWljTGZnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "3d1b219c-677a-4a16-96c3-77cec088292a"}, "CallConnected": {"id": "b55ab8f8-38fb-473d-aa78-6c1fcda267d2", "source": "calling/callConnections/08002380-b89d-4304-a8dd-9f353482d7bf", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-b89d-4304-a8dd-9f353482d7bf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zb3haUEFtWFRVRy1OcDQzWWljTGZnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "3d1b219c-677a-4a16-96c3-77cec088292a", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:48:16.384762+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b89d-4304-a8dd-9f353482d7bf"}, "ParticipantsUpdated": {"id": "3ebb5150-1436-4451-8c76-54dc3b9ec6b8", "source": "calling/callConnections/08002380-b89d-4304-a8dd-9f353482d7bf", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-f16b-85f4-343a0d000337", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-f16b-85f4-343a0d000337"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-f268-85f4-343a0d000338", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-f268-85f4-343a0d000338"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 3, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-b89d-4304-a8dd-9f353482d7bf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zb3haUEFtWFRVRy1OcDQzWWljTGZnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "3d1b219c-677a-4a16-96c3-77cec088292a", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:48:20.1274372+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b89d-4304-a8dd-9f353482d7bf"}, "CancelAddParticipantSucceeded": {"id": "522c611f-f4a1-4061-aaaa-629054d0dd75", "source": "calling/callConnections/08002380-b89d-4304-a8dd-9f353482d7bf", "type": "Microsoft.Communication.CancelAddParticipantSucceeded", "data": {"invitationId": "ec414aa2-e017-452e-a077-3d188382a0aa", "version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 5300, "message": "addParticipants failed for participant 8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-f35e-85f4-343a0d000339. Underlying reason: The conversation has ended. DiagCode: 0#5300.@"}, "callConnectionId": "08002380-b89d-4304-a8dd-9f353482d7bf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zb3haUEFtWFRVRy1OcDQzWWljTGZnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "3d1b219c-677a-4a16-96c3-77cec088292a", "publicEventType": "Microsoft.Communication.CancelAddParticipantSucceeded"}, "time": "2025-03-17T17:48:22.0638623+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b89d-4304-a8dd-9f353482d7bf"}, "CallDisconnected": {"id": "50806cde-a554-4e8c-8b05-e4bdd3bca645", "source": "calling/callConnections/08002380-b89d-4304-a8dd-9f353482d7bf", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-b89d-4304-a8dd-9f353482d7bf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9zb3haUEFtWFRVRy1OcDQzWWljTGZnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "3d1b219c-677a-4a16-96c3-77cec088292a", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:48:23.1850512+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b89d-4304-a8dd-9f353482d7bf"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-72ac-2c8a-0848220052c4", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-72ac-2c8a-0848220052c4"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-726f-2c8a-0848220052c3", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-726f-2c8a-0848220052c3"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LNlVWblpEOC0wYVR6VEZqNmJ3QkJ3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "35b55b00-a44e-411d-a584-d5e8099f9176"}, "ParticipantsUpdated": {"id": "4d7818db-bdb7-414f-a797-1a2abfc4e181", "source": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-72ac-2c8a-0848220052c4", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-72ac-2c8a-0848220052c4"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-726f-2c8a-0848220052c3", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-726f-2c8a-0848220052c3"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 3, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-05dd-489b-b379-c8e32c401f03", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LNlVWblpEOC0wYVR6VEZqNmJ3QkJ3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "35b55b00-a44e-411d-a584-d5e8099f9176", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:50:54.3761624+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03"}, "CallConnected": {"id": "0dacad35-fcad-44d6-b502-c45388d05a7d", "source": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-05dd-489b-b379-c8e32c401f03", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LNlVWblpEOC0wYVR6VEZqNmJ3QkJ3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "35b55b00-a44e-411d-a584-d5e8099f9176", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:50:51.2004761+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03"}, "CancelAddParticipantSucceeded": {"id": "2eccf15d-839e-48c3-b9d5-0ea24cd08336", "source": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03", "type": "Microsoft.Communication.CancelAddParticipantSucceeded", "data": {"invitationId": "42e87e78-34c6-44c0-93c4-c30506bfc2db", "version": "2025-05-15", "resultInformation": {"code": 487, "subCode": 5234, "message": "addParticipants failed for participant 8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-72ea-2c8a-0848220052c5. Underlying reason: The Call Has Been Cancelled. DiagCode: 487#5234.@"}, "callConnectionId": "08006680-05dd-489b-b379-c8e32c401f03", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LNlVWblpEOC0wYVR6VEZqNmJ3QkJ3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "35b55b00-a44e-411d-a584-d5e8099f9176", "publicEventType": "Microsoft.Communication.CancelAddParticipantSucceeded"}, "time": "2025-05-21T21:50:56.2951141+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03"}, "CallDisconnected": {"id": "69024f11-baf3-43cd-a3bf-3cc989d88f78", "source": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-05dd-489b-b379-c8e32c401f03", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LNlVWblpEOC0wYVR6VEZqNmJ3QkJ3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "35b55b00-a44e-411d-a584-d5e8099f9176", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:50:57.3457146+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json index 1b9e3218ac71..5c550dd8bf76 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-a042-85f4-343a0d000332", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-a042-85f4-343a0d000332"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-9f24-85f4-343a0d000331", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-9f24-85f4-343a0d000331"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9iTEctWk1mRzVrMlQ4WEtIdHVSUllBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "784cf6cc-a492-44a0-897d-01f550542800"}, "ParticipantsUpdated": {"id": "7a201f59-c266-4e88-868b-3f5f3ca11a13", "source": "calling/callConnections/08002380-b749-4584-ba8e-48e4fbf0d4bf", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-a042-85f4-343a0d000332", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-a042-85f4-343a0d000332"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-9f24-85f4-343a0d000331", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4519-9f24-85f4-343a0d000331"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-b749-4584-ba8e-48e4fbf0d4bf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9iTEctWk1mRzVrMlQ4WEtIdHVSUllBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "784cf6cc-a492-44a0-897d-01f550542800", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:47:59.8067365+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b749-4584-ba8e-48e4fbf0d4bf"}, "CallConnected": {"id": "d9179103-ab33-4e93-b0ae-35427b7bd406", "source": "calling/callConnections/08002380-b749-4584-ba8e-48e4fbf0d4bf", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-b749-4584-ba8e-48e4fbf0d4bf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9iTEctWk1mRzVrMlQ4WEtIdHVSUllBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "784cf6cc-a492-44a0-897d-01f550542800", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:47:59.8386576+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b749-4584-ba8e-48e4fbf0d4bf"}, "CallDisconnected": {"id": "76a65e3e-4dad-439f-bdfc-d0457a7650d2", "source": "calling/callConnections/08002380-b749-4584-ba8e-48e4fbf0d4bf", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-b749-4584-ba8e-48e4fbf0d4bf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9iTEctWk1mRzVrMlQ4WEtIdHVSUllBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "784cf6cc-a492-44a0-897d-01f550542800", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:48:02.43489+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b749-4584-ba8e-48e4fbf0d4bf"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-4391-2c8a-0848220052c2", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-4391-2c8a-0848220052c2"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-42d5-1000-343a0d000378", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-42d5-1000-343a0d000378"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9sLWRYSzY5YzkwYVZNaGgwLUhIa2hRP2k9MTAtMTI4LTIxMi0yNTImZT02Mzg4MzQxMjc3MDAyNDU1Njk=", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "9d7a621f-29dc-408d-b412-9f5f3e726c4f"}, "ParticipantsUpdated": {"id": "a38ec35e-cdc6-4358-8b9e-01cdb20e8761", "source": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-42d5-1000-343a0d000378", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-42d5-1000-343a0d000378"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-4391-2c8a-0848220052c2", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-4391-2c8a-0848220052c2"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "53006980-9b40-4b17-b3b7-5a04ab724461", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9sLWRYSzY5YzkwYVZNaGgwLUhIa2hRP2k9MTAtMTI4LTIxMi0yNTImZT02Mzg4MzQxMjc3MDAyNDU1Njk=", "correlationId": "9d7a621f-29dc-408d-b412-9f5f3e726c4f", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:50:39.2281416+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461"}, "CallConnected": {"id": "d81081f1-95cd-49c1-bec7-8c1904dd8beb", "source": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "53006980-9b40-4b17-b3b7-5a04ab724461", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9sLWRYSzY5YzkwYVZNaGgwLUhIa2hRP2k9MTAtMTI4LTIxMi0yNTImZT02Mzg4MzQxMjc3MDAyNDU1Njk=", "correlationId": "9d7a621f-29dc-408d-b412-9f5f3e726c4f", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:50:39.3712999+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461"}, "CallDisconnected": {"id": "d6584ba0-280d-4063-9548-02bde0f34f05", "source": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "53006980-9b40-4b17-b3b7-5a04ab724461", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9sLWRYSzY5YzkwYVZNaGgwLUhIa2hRP2k9MTAtMTI4LTIxMi0yNTImZT02Mzg4MzQxMjc3MDAyNDU1Njk=", "correlationId": "9d7a621f-29dc-408d-b412-9f5f3e726c4f", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:50:41.4261411+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json index e53de15f8189..d77cebce6f6a 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-ffee-22da-363a0d003604", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-ffee-22da-363a0d003604"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-feec-22da-363a0d003602", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-feec-22da-363a0d003602"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9UbWpVak90Q0JVQ25ESmwwVnh2NlVBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "12f47d21-a19d-490b-85c7-63a2866fbeaf"}, "CallConnected": {"id": "401e17c1-61d1-4eee-ba01-cd3686275952", "source": "calling/callConnections/08002380-9cea-43db-bdda-4910cae50541", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-9cea-43db-bdda-4910cae50541", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9UbWpVak90Q0JVQ25ESmwwVnh2NlVBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "12f47d21-a19d-490b-85c7-63a2866fbeaf", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:49:23.643716+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-9cea-43db-bdda-4910cae50541"}, "ParticipantsUpdated": {"id": "f9135aeb-5865-46d6-8e53-8dcad02938a5", "source": "calling/callConnections/08002380-9cea-43db-bdda-4910cae50541", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-feec-22da-363a0d003602", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-feec-22da-363a0d003602"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-ffee-22da-363a0d003604", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-ffee-22da-363a0d003604"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 15, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-9cea-43db-bdda-4910cae50541", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9UbWpVak90Q0JVQ25ESmwwVnh2NlVBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "12f47d21-a19d-490b-85c7-63a2866fbeaf", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:49:35.8885668+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-9cea-43db-bdda-4910cae50541"}, "RecordingStateChanged": {"id": "76da6ca9-bdd9-4cc3-b824-71fe005a4f2c", "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9UbWpVak90Q0JVQ25ESmwwVnh2NlVBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwMjM4MC0zYTkyLTRhZGQtOWRhMS04MjNmNDE3YTkxMDEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiJkMjE5ZmY5Yi0xNzc2LTQyYzUtYWQ2ZS1hYjdjODQyZDBjNWYifQ/RecordingStateChanged", "type": "Microsoft.Communication.RecordingStateChanged", "data": {"eventSource": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9UbWpVak90Q0JVQ25ESmwwVnh2NlVBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwMjM4MC0zYTkyLTRhZGQtOWRhMS04MjNmNDE3YTkxMDEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiJkMjE5ZmY5Yi0xNzc2LTQyYzUtYWQ2ZS1hYjdjODQyZDBjNWYifQ/RecordingStateChanged", "recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwMjM4MC0zYTkyLTRhZGQtOWRhMS04MjNmNDE3YTkxMDEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiJkMjE5ZmY5Yi0xNzc2LTQyYzUtYWQ2ZS1hYjdjODQyZDBjNWYifQ", "state": "active", "startDateTime": "2025-03-17T17:49:30.5177847+00:00", "recordingKind": "azureCommunicationServices", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-3a92-4add-9da1-823f417a9101", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9UbWpVak90Q0JVQ25ESmwwVnh2NlVBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "12f47d21-a19d-490b-85c7-63a2866fbeaf", "publicEventType": "Microsoft.Communication.RecordingStateChanged"}, "time": "2025-03-17T17:49:30.8044533+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9UbWpVak90Q0JVQ25ESmwwVnh2NlVBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwMjM4MC0zYTkyLTRhZGQtOWRhMS04MjNmNDE3YTkxMDEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiJkMjE5ZmY5Yi0xNzc2LTQyYzUtYWQ2ZS1hYjdjODQyZDBjNWYifQ/RecordingStateChanged"}, "CallDisconnected": {"id": "f6652b47-1934-4190-9fbe-484d47d010de", "source": "calling/callConnections/08002380-9cea-43db-bdda-4910cae50541", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-9cea-43db-bdda-4910cae50541", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9UbWpVak90Q0JVQ25ESmwwVnh2NlVBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "12f47d21-a19d-490b-85c7-63a2866fbeaf", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:49:39.0804387+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-9cea-43db-bdda-4910cae50541"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-aff0-2c8a-0848220052c9", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-aff0-2c8a-0848220052c9"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-afb6-2c8a-0848220052c8", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-afb6-2c8a-0848220052c8"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "ec4cad40-7c18-4c45-b872-1262290aae35"}, "ParticipantsUpdated": {"id": "6c8ab5cc-dc6b-41a2-bfa5-7e7e9029b533", "source": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-afb6-2c8a-0848220052c8", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-afb6-2c8a-0848220052c8"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-aff0-2c8a-0848220052c9", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-aff0-2c8a-0848220052c9"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 11, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-57e5-4cd5-b9e9-c926d654b825", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ec4cad40-7c18-4c45-b872-1262290aae35", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:51:17.2076704+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825"}, "CallConnected": {"id": "510e8422-baa4-4095-9f2a-f478481888ab", "source": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-57e5-4cd5-b9e9-c926d654b825", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ec4cad40-7c18-4c45-b872-1262290aae35", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:51:07.0782226+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825"}, "RecordingStateChanged": {"id": "0f3c0bf8-3778-453a-b809-564bb3a2a9fb", "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC0wNjFkLTQ1NGYtODI4OS00NzVlZjEzYTdiODUiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiJiZTYyYmZlZC0xNmQyLTQ3MGYtOWI1Mi1iY2RlODYxNDkzY2YifQ/RecordingStateChanged", "type": "Microsoft.Communication.RecordingStateChanged", "data": {"recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC0wNjFkLTQ1NGYtODI4OS00NzVlZjEzYTdiODUiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiJiZTYyYmZlZC0xNmQyLTQ3MGYtOWI1Mi1iY2RlODYxNDkzY2YifQ", "state": "active", "startDateTime": "2025-05-21T21:51:11.803884+00:00", "recordingKind": "azureCommunicationServices", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-061d-454f-8289-475ef13a7b85", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ec4cad40-7c18-4c45-b872-1262290aae35", "publicEventType": "Microsoft.Communication.RecordingStateChanged"}, "time": "2025-05-21T21:51:12.1467222+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC0wNjFkLTQ1NGYtODI4OS00NzVlZjEzYTdiODUiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiJiZTYyYmZlZC0xNmQyLTQ3MGYtOWI1Mi1iY2RlODYxNDkzY2YifQ/RecordingStateChanged"}, "CallDisconnected": {"id": "0e206784-452a-41c7-8e8c-7eae393aca9f", "source": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-57e5-4cd5-b9e9-c926d654b825", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ec4cad40-7c18-4c45-b872-1262290aae35", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:51:20.2909944+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json index 88187ecc1146..6bd7bccfd9d0 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-3904-48d8-363a0d002a99", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-3904-48d8-363a0d002a99"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-380a-48d8-363a0d002a97", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-380a-48d8-363a0d002a97"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EU0ota1NyN1MweTRXYjRqY1ltcUp3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f2323e53-42b0-4bb9-a51c-574176a196d8"}, "ParticipantsUpdated": {"id": "8bf63def-c754-4c9c-b149-4eb722f14288", "source": "calling/callConnections/08002380-6c89-4636-861e-bb93b872253f", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-380a-48d8-363a0d002a97", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-380a-48d8-363a0d002a97"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-3904-48d8-363a0d002a99", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-3904-48d8-363a0d002a99"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 6, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-6c89-4636-861e-bb93b872253f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EU0ota1NyN1MweTRXYjRqY1ltcUp3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f2323e53-42b0-4bb9-a51c-574176a196d8", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:50:52.4771538+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-6c89-4636-861e-bb93b872253f"}, "CallConnected": {"id": "45a2ee8c-1264-412d-b403-5f345a0a4a43", "source": "calling/callConnections/08002380-6c89-4636-861e-bb93b872253f", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-6c89-4636-861e-bb93b872253f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EU0ota1NyN1MweTRXYjRqY1ltcUp3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f2323e53-42b0-4bb9-a51c-574176a196d8", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:50:44.0347304+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-6c89-4636-861e-bb93b872253f"}, "CallDisconnected": {"id": "6716daec-898d-4766-b8b5-2b31e76f6615", "source": "calling/callConnections/08002380-6c89-4636-861e-bb93b872253f", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-6c89-4636-861e-bb93b872253f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EU0ota1NyN1MweTRXYjRqY1ltcUp3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f2323e53-42b0-4bb9-a51c-574176a196d8", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:50:54.764647+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-6c89-4636-861e-bb93b872253f"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-995d-2c8a-0848220052d5", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-995d-2c8a-0848220052d5"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-98b7-2c8a-0848220052d4", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-98b7-2c8a-0848220052d4"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8xYXRJeDU2MktrRzBKR250OXVGVGh3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "4dee6198-ff01-4ac8-bf90-9728bae98fcd"}, "ParticipantsUpdated": {"id": "1626a3fb-7b3b-459b-818c-4e587b49592a", "source": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-98b7-2c8a-0848220052d4", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-98b7-2c8a-0848220052d4"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-995d-2c8a-0848220052d5", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-995d-2c8a-0848220052d5"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 6, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-6321-4a7d-9fae-ac074be77bb3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8xYXRJeDU2MktrRzBKR250OXVGVGh3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "4dee6198-ff01-4ac8-bf90-9728bae98fcd", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:52:16.2759739+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3"}, "CallConnected": {"id": "574c6f74-d605-4a8f-b97d-8bb170249294", "source": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-6321-4a7d-9fae-ac074be77bb3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8xYXRJeDU2MktrRzBKR250OXVGVGh3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "4dee6198-ff01-4ac8-bf90-9728bae98fcd", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:52:08.2370362+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3"}, "CallDisconnected": {"id": "f472391c-4d08-47e3-911f-2d0ecac1b965", "source": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-6321-4a7d-9fae-ac074be77bb3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8xYXRJeDU2MktrRzBKR250OXVGVGh3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "4dee6198-ff01-4ac8-bf90-9728bae98fcd", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:52:18.3896819+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json index 7dbfd3275ed3..7b40c638a0cb 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-e745-22da-363a0d00362c", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-e745-22da-363a0d00362c"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-e64a-22da-363a0d00362b", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-e64a-22da-363a0d00362b"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kTkxpZGJDOFRrcTI1RjVFeWFiRGhnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "96cb637c-0dff-43e2-858a-5d78aca08b40"}, "ParticipantsUpdated": {"id": "4b6f5034-99f4-498d-9101-e6df5f3c6959", "source": "calling/callConnections/08002380-fd39-4e43-8db7-aa7ad5b61099", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-e745-22da-363a0d00362c", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-e745-22da-363a0d00362c"}}, "isMuted": true, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-e64a-22da-363a0d00362b", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-e64a-22da-363a0d00362b"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 4, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-fd39-4e43-8db7-aa7ad5b61099", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kTkxpZGJDOFRrcTI1RjVFeWFiRGhnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "96cb637c-0dff-43e2-858a-5d78aca08b40", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:50:29.2911685+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-fd39-4e43-8db7-aa7ad5b61099"}, "CallConnected": {"id": "7624e0d4-8bc0-4cc5-90f4-9f1f3c262659", "source": "calling/callConnections/08002380-fd39-4e43-8db7-aa7ad5b61099", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-fd39-4e43-8db7-aa7ad5b61099", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kTkxpZGJDOFRrcTI1RjVFeWFiRGhnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "96cb637c-0dff-43e2-858a-5d78aca08b40", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:50:22.9016835+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-fd39-4e43-8db7-aa7ad5b61099"}, "CallDisconnected": {"id": "4311e090-c967-42de-9da1-d2a954fb6573", "source": "calling/callConnections/08002380-fd39-4e43-8db7-aa7ad5b61099", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-fd39-4e43-8db7-aa7ad5b61099", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kTkxpZGJDOFRrcTI1RjVFeWFiRGhnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "96cb637c-0dff-43e2-858a-5d78aca08b40", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:50:31.4756749+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-fd39-4e43-8db7-aa7ad5b61099"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-57dd-2c8a-0848220052d0", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-57dd-2c8a-0848220052d0"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-5792-2c8a-0848220052cf", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-5792-2c8a-0848220052cf"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Kb2F5TXdjN3BVeXZiQW5CaWVQM1ZBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "6aecac60-531f-4d12-a2c3-3a0bcc3e3b47"}, "ParticipantsUpdated": {"id": "2bdc6049-54fc-4511-94de-45317aa76383", "source": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-57dd-2c8a-0848220052d0", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-57dd-2c8a-0848220052d0"}}, "isMuted": true, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-5792-2c8a-0848220052cf", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-5792-2c8a-0848220052cf"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 4, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-9f1c-4c9f-aceb-ad16cf2003d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Kb2F5TXdjN3BVeXZiQW5CaWVQM1ZBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "6aecac60-531f-4d12-a2c3-3a0bcc3e3b47", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:51:55.24495+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3"}, "CallConnected": {"id": "c9663b56-89a3-4350-9cac-c21b1f4e5a34", "source": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-9f1c-4c9f-aceb-ad16cf2003d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Kb2F5TXdjN3BVeXZiQW5CaWVQM1ZBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "6aecac60-531f-4d12-a2c3-3a0bcc3e3b47", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:51:49.7388316+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3"}, "CallDisconnected": {"id": "4aff2812-20a2-4d67-bd99-3c996c38e62a", "source": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-9f1c-4c9f-aceb-ad16cf2003d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Kb2F5TXdjN3BVeXZiQW5CaWVQM1ZBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "6aecac60-531f-4d12-a2c3-3a0bcc3e3b47", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:51:57.0455152+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_interrupt_audio_and_announce_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_interrupt_audio_and_announce_in_a_call.event.json index 086f19d923cb..9224b41d6517 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_interrupt_audio_and_announce_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_interrupt_audio_and_announce_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4522-484a-a1de-363a0d002891", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4522-484a-a1de-363a0d002891"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4522-472f-a1de-363a0d002890", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4522-472f-a1de-363a0d002890"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RemRPa01FRmIwUy1MaDRZOWtacktRP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "bc35909c-2d4a-4121-9252-708544a67d0a"}, "ParticipantsUpdated": {"id": "769dbb7e-cb21-4d7b-ba10-bb788cf30ec3", "source": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4522-484a-a1de-363a0d002891", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4522-484a-a1de-363a0d002891"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4522-472f-a1de-363a0d002890", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4522-472f-a1de-363a0d002890"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "05002380-6bf8-44b3-aed0-e84d312e7a71", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RemRPa01FRmIwUy1MaDRZOWtacktRP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "bc35909c-2d4a-4121-9252-708544a67d0a", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:57:35.0925048+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71"}, "CallConnected": {"id": "6f4368c5-1ecd-4d8b-b884-4c941e2c7698", "source": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "05002380-6bf8-44b3-aed0-e84d312e7a71", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RemRPa01FRmIwUy1MaDRZOWtacktRP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "bc35909c-2d4a-4121-9252-708544a67d0a", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:57:22.2421936+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71"}, "HoldAudioStarted": {"id": "1553bbd9-3417-41af-9a7e-6e00b5970e8c", "source": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71", "type": "Microsoft.Communication.HoldAudioStarted", "data": {"operationContext": "hold_add_target_participant", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "version": "2024-09-01-preview", "callConnectionId": "05002380-6bf8-44b3-aed0-e84d312e7a71", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RemRPa01FRmIwUy1MaDRZOWtacktRP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "bc35909c-2d4a-4121-9252-708544a67d0a", "publicEventType": "Microsoft.Communication.HoldAudioStarted"}, "time": "2025-03-17T17:57:26.5999695+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71"}, "HoldAudioPaused": {"id": "fea82fd7-c23b-4cfb-8fbc-804e412996b2", "source": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71", "type": "Microsoft.Communication.HoldAudioPaused", "data": {"operationContext": "hold_add_target_participant", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "version": "2024-09-01-preview", "callConnectionId": "05002380-6bf8-44b3-aed0-e84d312e7a71", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RemRPa01FRmIwUy1MaDRZOWtacktRP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "bc35909c-2d4a-4121-9252-708544a67d0a", "publicEventType": "Microsoft.Communication.HoldAudioPaused"}, "time": "2025-03-17T17:57:28.7543353+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71"}, "PlayStarted": {"id": "8b5ce3c8-fab2-4f1e-9d4d-6e27334f5fee", "source": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "05002380-6bf8-44b3-aed0-e84d312e7a71", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RemRPa01FRmIwUy1MaDRZOWtacktRP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "bc35909c-2d4a-4121-9252-708544a67d0a", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:57:28.7698552+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71"}, "PlayCompleted": {"id": "88a2f0f0-cfbc-41ab-9111-ba798c2a0c97", "source": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "05002380-6bf8-44b3-aed0-e84d312e7a71", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RemRPa01FRmIwUy1MaDRZOWtacktRP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "bc35909c-2d4a-4121-9252-708544a67d0a", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-03-17T17:57:33.0380469+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71"}, "HoldAudioResumed": {"id": "50404b1f-3e9e-443d-8766-a82685cfdebd", "source": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71", "type": "Microsoft.Communication.HoldAudioResumed", "data": {"operationContext": "hold_add_target_participant", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "version": "2024-09-01-preview", "callConnectionId": "05002380-6bf8-44b3-aed0-e84d312e7a71", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RemRPa01FRmIwUy1MaDRZOWtacktRP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "bc35909c-2d4a-4121-9252-708544a67d0a", "publicEventType": "Microsoft.Communication.HoldAudioResumed"}, "time": "2025-03-17T17:57:33.0380469+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71"}, "HoldAudioCompleted": {"id": "799c5d75-e64d-4ae6-b15b-ea2d7dae73be", "source": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71", "type": "Microsoft.Communication.HoldAudioCompleted", "data": {"operationContext": "hold_add_target_participant", "resultInformation": {"code": 400, "subCode": 8508, "message": "Action falied, the operation was cancelled."}, "version": "2024-09-01-preview", "callConnectionId": "05002380-6bf8-44b3-aed0-e84d312e7a71", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RemRPa01FRmIwUy1MaDRZOWtacktRP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "bc35909c-2d4a-4121-9252-708544a67d0a", "publicEventType": "Microsoft.Communication.HoldAudioCompleted"}, "time": "2025-03-17T17:57:34.9362001+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71"}, "CallDisconnected": {"id": "ed6b7ed5-e7f9-4a72-b87f-d04f5c6bd986", "source": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "05002380-6bf8-44b3-aed0-e84d312e7a71", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RemRPa01FRmIwUy1MaDRZOWtacktRP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "bc35909c-2d4a-4121-9252-708544a67d0a", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:57:37.436376+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-6bf8-44b3-aed0-e84d312e7a71"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94aa-1e8a-ce46-04bd4560487d", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94aa-1e8a-ce46-04bd4560487d"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94aa-1dcc-e84c-09bd4560025f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94aa-1dcc-e84c-09bd4560025f"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi92eTF1ZlhBUF9VaThLdlNZTGJfdnVnP2k9MTAtMTI4LTI4LTI0MyZlPTYzODgzMzcxODY5NDgxODM1OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "77232ca2-c9d4-4155-b52b-f4d22b504b0f"}, "ParticipantsUpdated": {"id": "fe078294-cdb4-43ff-bbbf-041f114fcdf0", "source": "calling/callConnections/57006580-ec96-4f06-a36a-30a0c778c7ab", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94aa-1dcc-e84c-09bd4560025f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94aa-1dcc-e84c-09bd4560025f"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94aa-1e8a-ce46-04bd4560487d", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94aa-1e8a-ce46-04bd4560487d"}}, "isMuted": false, "isOnHold": true}], "sequenceNumber": 3, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "57006580-ec96-4f06-a36a-30a0c778c7ab", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi92eTF1ZlhBUF9VaThLdlNZTGJfdnVnP2k9MTAtMTI4LTI4LTI0MyZlPTYzODgzMzcxODY5NDgxODM1OA==", "correlationId": "77232ca2-c9d4-4155-b52b-f4d22b504b0f", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:38:35.2003934+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/57006580-ec96-4f06-a36a-30a0c778c7ab"}, "CallConnected": {"id": "577f9e59-c8cc-4d37-b3e7-c1870093dd4d", "source": "calling/callConnections/57006580-ec96-4f06-a36a-30a0c778c7ab", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "57006580-ec96-4f06-a36a-30a0c778c7ab", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi92eTF1ZlhBUF9VaThLdlNZTGJfdnVnP2k9MTAtMTI4LTI4LTI0MyZlPTYzODgzMzcxODY5NDgxODM1OA==", "correlationId": "77232ca2-c9d4-4155-b52b-f4d22b504b0f", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:38:29.8281748+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/57006580-ec96-4f06-a36a-30a0c778c7ab"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json index cee6fe44d91e..f1e40d963a42 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-2c1b-22da-363a0d00368a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-2c1b-22da-363a0d00368a"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-2b27-22da-363a0d003689", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-2b27-22da-363a0d003689"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9acE83MEhmX3FVZTRqcmhWRXZOVVRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "073a2fe4-914d-417a-a4be-4869d0d4be24"}, "ParticipantsUpdated": {"id": "611a8556-1880-4f14-8fd8-45830a9cd5be", "source": "calling/callConnections/08002380-f7bc-43ea-b4f5-14414292b885", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-2b27-22da-363a0d003689", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-2b27-22da-363a0d003689"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-2c1b-22da-363a0d00368a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-2c1b-22da-363a0d00368a"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-f7bc-43ea-b4f5-14414292b885", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9acE83MEhmX3FVZTRqcmhWRXZOVVRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "073a2fe4-914d-417a-a4be-4869d0d4be24", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:55:14.1055842+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-f7bc-43ea-b4f5-14414292b885"}, "CallConnected": {"id": "e86f3afa-f74c-482d-ba2b-b4d2704a5d18", "source": "calling/callConnections/08002380-f7bc-43ea-b4f5-14414292b885", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-f7bc-43ea-b4f5-14414292b885", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9acE83MEhmX3FVZTRqcmhWRXZOVVRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "073a2fe4-914d-417a-a4be-4869d0d4be24", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:55:02.5421285+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-f7bc-43ea-b4f5-14414292b885"}, "PlayStarted": {"id": "a8dedee1-ff69-4f1a-a97b-ef1426ea64b9", "source": "calling/callConnections/08002380-f7bc-43ea-b4f5-14414292b885", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-f7bc-43ea-b4f5-14414292b885", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9acE83MEhmX3FVZTRqcmhWRXZOVVRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "073a2fe4-914d-417a-a4be-4869d0d4be24", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:55:07.7217822+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-f7bc-43ea-b4f5-14414292b885"}, "PlayCompleted": {"id": "41c9120d-5422-46dc-b32a-9091f2bc5e6e", "source": "calling/callConnections/08002380-f7bc-43ea-b4f5-14414292b885", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-f7bc-43ea-b4f5-14414292b885", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9acE83MEhmX3FVZTRqcmhWRXZOVVRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "073a2fe4-914d-417a-a4be-4869d0d4be24", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-03-17T17:55:14.0899548+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-f7bc-43ea-b4f5-14414292b885"}, "CallDisconnected": {"id": "ea2568fb-f801-4fb6-99c2-abd0d155c640", "source": "calling/callConnections/08002380-f7bc-43ea-b4f5-14414292b885", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-f7bc-43ea-b4f5-14414292b885", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9acE83MEhmX3FVZTRqcmhWRXZOVVRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "073a2fe4-914d-417a-a4be-4869d0d4be24", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:55:15.4898611+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-f7bc-43ea-b4f5-14414292b885"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c575-284a-04bd45605336", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c575-284a-04bd45605336"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c53a-284a-04bd45605335", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c53a-284a-04bd45605335"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801"}, "ParticipantsUpdated": {"id": "4992aee5-dc4d-4930-95f9-d075d78f6763", "source": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c53a-284a-04bd45605335", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c53a-284a-04bd45605335"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c575-284a-04bd45605336", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c575-284a-04bd45605336"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-26d4-44ae-9c26-dcbf803fa1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:55:44.3792458+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7"}, "CallConnected": {"id": "0b97bbf1-b729-4aec-8fce-739c833aa1c8", "source": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-26d4-44ae-9c26-dcbf803fa1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:55:34.1998559+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7"}, "PlayStarted": {"id": "df404486-8763-4ea9-98e0-e71b1c913d39", "source": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-26d4-44ae-9c26-dcbf803fa1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:55:37.9767704+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7"}, "PlayCompleted": {"id": "e07003f1-85f5-4df1-8c2a-b173f5001272", "source": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-26d4-44ae-9c26-dcbf803fa1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:55:44.3479435+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7"}, "CallDisconnected": {"id": "1577e15c-fae0-4532-a7db-887524607d13", "source": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-26d4-44ae-9c26-dcbf803fa1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:55:44.7727167+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json index c74e447966f8..93803e1a9bbc 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-8e62-22da-363a0d003694", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-8e62-22da-363a0d003694"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-8d68-22da-363a0d003693", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-8d68-22da-363a0d003693"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qTm52RkU2bG4wU3lnUmpSNUFyNFNRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "90d80b0a-bda7-4729-9cca-f03fb7343c7c"}, "ParticipantsUpdated": {"id": "8b543d87-3f3b-4150-b44c-55ae61443ff4", "source": "calling/callConnections/08002380-a2eb-4b9c-8345-53d444b30bf1", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-8d68-22da-363a0d003693", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-8d68-22da-363a0d003693"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-8e62-22da-363a0d003694", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-8e62-22da-363a0d003694"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-a2eb-4b9c-8345-53d444b30bf1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qTm52RkU2bG4wU3lnUmpSNUFyNFNRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "90d80b0a-bda7-4729-9cca-f03fb7343c7c", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:55:30.0331382+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-a2eb-4b9c-8345-53d444b30bf1"}, "CallConnected": {"id": "f2d92461-0d96-481a-8a55-3c3a1cfcd4f9", "source": "calling/callConnections/08002380-a2eb-4b9c-8345-53d444b30bf1", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-a2eb-4b9c-8345-53d444b30bf1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qTm52RkU2bG4wU3lnUmpSNUFyNFNRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "90d80b0a-bda7-4729-9cca-f03fb7343c7c", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:55:30.0416595+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-a2eb-4b9c-8345-53d444b30bf1"}, "PlayStarted": {"id": "99ff4943-c829-4905-9096-71bf2ef090bf", "source": "calling/callConnections/08002380-a2eb-4b9c-8345-53d444b30bf1", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-a2eb-4b9c-8345-53d444b30bf1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qTm52RkU2bG4wU3lnUmpSNUFyNFNRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "90d80b0a-bda7-4729-9cca-f03fb7343c7c", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:55:33.2416949+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-a2eb-4b9c-8345-53d444b30bf1"}, "PlayCompleted": {"id": "8bb6ddbd-7504-493c-b7be-2c46b7a90768", "source": "calling/callConnections/08002380-a2eb-4b9c-8345-53d444b30bf1", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-a2eb-4b9c-8345-53d444b30bf1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qTm52RkU2bG4wU3lnUmpSNUFyNFNRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "90d80b0a-bda7-4729-9cca-f03fb7343c7c", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-03-17T17:55:39.5340546+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-a2eb-4b9c-8345-53d444b30bf1"}, "CallDisconnected": {"id": "0c6f5b5f-a387-44f8-a808-1ce34a899f2a", "source": "calling/callConnections/08002380-a2eb-4b9c-8345-53d444b30bf1", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-a2eb-4b9c-8345-53d444b30bf1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qTm52RkU2bG4wU3lnUmpSNUFyNFNRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "90d80b0a-bda7-4729-9cca-f03fb7343c7c", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:55:41.0042467+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-a2eb-4b9c-8345-53d444b30bf1"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-15c9-284a-04bd4560533f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-15c9-284a-04bd4560533f"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-158e-284a-04bd4560533e", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-158e-284a-04bd4560533e"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326"}, "ParticipantsUpdated": {"id": "1089b7db-904b-4461-92a4-fbac9dc45691", "source": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-158e-284a-04bd4560533e", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-158e-284a-04bd4560533e"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-15c9-284a-04bd4560533f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-15c9-284a-04bd4560533f"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-d045-4951-9c6b-776227a17b53", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:55:54.6400839+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53"}, "CallConnected": {"id": "a5e8df76-ea20-4314-a585-0fe89a5dd2c9", "source": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-d045-4951-9c6b-776227a17b53", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:55:54.7459431+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53"}, "PlayStarted": {"id": "dee7ecd2-5708-4a60-a1f8-532d15afc379", "source": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-d045-4951-9c6b-776227a17b53", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:55:57.1999412+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53"}, "PlayCompleted": {"id": "d638bd73-db6b-4d3d-9c42-ab486badc211", "source": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-d045-4951-9c6b-776227a17b53", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:56:03.5232177+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53"}, "CallDisconnected": {"id": "31c4b83c-40cc-4ba0-b626-364e286f2418", "source": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-d045-4951-9c6b-776227a17b53", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:56:03.9998297+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json index 4c3e1b52fab2..64ae294df38f 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-9491-08d5-363a0d001c74", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-9491-08d5-363a0d001c74"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-9394-08d5-363a0d001c73", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-9394-08d5-363a0d001c73"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi92blBJZUZSLVVVaUQ4OGFZd3BhWFV3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e38edaf8-7152-4a48-8b64-69862d2daf20"}, "ParticipantsUpdated": {"id": "8bc6ccad-ec4a-4ea5-93ee-69f003049e84", "source": "calling/callConnections/08002380-5111-4054-a245-229083f436a1", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-9394-08d5-363a0d001c73", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-9394-08d5-363a0d001c73"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-9491-08d5-363a0d001c74", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451b-9491-08d5-363a0d001c74"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-5111-4054-a245-229083f436a1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi92blBJZUZSLVVVaUQ4OGFZd3BhWFV3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e38edaf8-7152-4a48-8b64-69862d2daf20", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:50:02.9005712+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-5111-4054-a245-229083f436a1"}, "CallConnected": {"id": "e767dfab-2fbf-4441-b70a-41aa28a831b1", "source": "calling/callConnections/08002380-5111-4054-a245-229083f436a1", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-5111-4054-a245-229083f436a1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi92blBJZUZSLVVVaUQ4OGFZd3BhWFV3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e38edaf8-7152-4a48-8b64-69862d2daf20", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:50:03.0431559+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-5111-4054-a245-229083f436a1"}, "PlayStarted": {"id": "88fc43b5-776c-4a6b-b934-95e4e6c1eb39", "source": "calling/callConnections/08002380-5111-4054-a245-229083f436a1", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-5111-4054-a245-229083f436a1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi92blBJZUZSLVVVaUQ4OGFZd3BhWFV3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e38edaf8-7152-4a48-8b64-69862d2daf20", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:50:05.8429327+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-5111-4054-a245-229083f436a1"}, "PlayCompleted": {"id": "4baf9618-23b2-4c19-8f52-7d07f811491e", "source": "calling/callConnections/08002380-5111-4054-a245-229083f436a1", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-5111-4054-a245-229083f436a1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi92blBJZUZSLVVVaUQ4OGFZd3BhWFV3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e38edaf8-7152-4a48-8b64-69862d2daf20", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-03-17T17:50:10.0359494+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-5111-4054-a245-229083f436a1"}, "CallDisconnected": {"id": "bb681330-3911-472f-a363-dafb8309ccdb", "source": "calling/callConnections/08002380-5111-4054-a245-229083f436a1", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-5111-4054-a245-229083f436a1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi92blBJZUZSLVVVaUQ4OGFZd3BhWFV3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e38edaf8-7152-4a48-8b64-69862d2daf20", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:50:11.4872598+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-5111-4054-a245-229083f436a1"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-17ad-2c8a-0848220052cd", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-17ad-2c8a-0848220052cd"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-176d-2c8a-0848220052cc", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-176d-2c8a-0848220052cc"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127"}, "ParticipantsUpdated": {"id": "0aeda72d-17bc-423d-ad55-638b4cb0c45c", "source": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-176d-2c8a-0848220052cc", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-176d-2c8a-0848220052cc"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-17ad-2c8a-0848220052cd", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-17ad-2c8a-0848220052cd"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-ec5e-4079-ae03-940daaa13ddf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:51:32.984587+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf"}, "CallConnected": {"id": "5f6819d1-0ef7-4639-9948-df24798c00cd", "source": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-ec5e-4079-ae03-940daaa13ddf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:51:33.1284938+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf"}, "PlayStarted": {"id": "b8a857b8-e115-419d-9c18-7310f9080019", "source": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-ec5e-4079-ae03-940daaa13ddf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:51:35.7483978+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf"}, "PlayCompleted": {"id": "1b2cc931-9caa-4e1d-9ea6-fd7daf87dba3", "source": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-ec5e-4079-ae03-940daaa13ddf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:51:39.9731746+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf"}, "CallDisconnected": {"id": "108ef89f-f7b3-4281-bbd6-d407d740feeb", "source": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-ec5e-4079-ae03-940daaa13ddf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:51:40.4067163+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json index fcb745afa15f..098ea5879c5d 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-de2b-7dd3-363a0d0030a0", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-de2b-7dd3-363a0d0030a0"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-dd2f-7dd3-363a0d00309f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-dd2f-7dd3-363a0d00309f"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9VLWowczNab2FFNmpiMkl3bElwakRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "97b93ca2-fd0e-42f8-8d73-010e6b1b869a"}, "ParticipantsUpdated": {"id": "d70b42f6-5dd2-4c8f-82d0-a5e168fa818b", "source": "calling/callConnections/08002380-c00e-49c3-9add-2ed830c59fc7", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-dd2f-7dd3-363a0d00309f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-dd2f-7dd3-363a0d00309f"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-de2b-7dd3-363a0d0030a0", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-de2b-7dd3-363a0d0030a0"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-c00e-49c3-9add-2ed830c59fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9VLWowczNab2FFNmpiMkl3bElwakRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "97b93ca2-fd0e-42f8-8d73-010e6b1b869a", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:53:55.6056758+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-c00e-49c3-9add-2ed830c59fc7"}, "CallConnected": {"id": "af4e3733-ee38-48bb-a277-c4302b9e4a34", "source": "calling/callConnections/08002380-c00e-49c3-9add-2ed830c59fc7", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-c00e-49c3-9add-2ed830c59fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9VLWowczNab2FFNmpiMkl3bElwakRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "97b93ca2-fd0e-42f8-8d73-010e6b1b869a", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:53:36.9541894+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-c00e-49c3-9add-2ed830c59fc7"}, "PlayStarted": {"id": "ff09dea1-2106-400a-a29d-3d071fcaa099", "source": "calling/callConnections/08002380-c00e-49c3-9add-2ed830c59fc7", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-c00e-49c3-9add-2ed830c59fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9VLWowczNab2FFNmpiMkl3bElwakRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "97b93ca2-fd0e-42f8-8d73-010e6b1b869a", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:53:42.79364+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-c00e-49c3-9add-2ed830c59fc7"}, "PlayCompleted": {"id": "02225013-7d0e-463c-bb5a-7c323761a14a", "source": "calling/callConnections/08002380-c00e-49c3-9add-2ed830c59fc7", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-c00e-49c3-9add-2ed830c59fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9VLWowczNab2FFNmpiMkl3bElwakRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "97b93ca2-fd0e-42f8-8d73-010e6b1b869a", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-03-17T17:53:55.5900233+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-c00e-49c3-9add-2ed830c59fc7"}, "CallDisconnected": {"id": "b1e7c4b5-db72-4416-a9d1-24c06d622048", "source": "calling/callConnections/08002380-c00e-49c3-9add-2ed830c59fc7", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-c00e-49c3-9add-2ed830c59fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9VLWowczNab2FFNmpiMkl3bElwakRRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "97b93ca2-fd0e-42f8-8d73-010e6b1b869a", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:53:56.8910951+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-c00e-49c3-9add-2ed830c59fc7"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b7ce-2c8a-0848220052f3", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b7ce-2c8a-0848220052f3"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b77d-2c8a-0848220052f2", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b77d-2c8a-0848220052f2"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf"}, "ParticipantsUpdated": {"id": "47df51ed-982e-4b29-989b-b94d774f9b2e", "source": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b7ce-2c8a-0848220052f3", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b7ce-2c8a-0848220052f3"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b77d-2c8a-0848220052f2", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b77d-2c8a-0848220052f2"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-f91a-4129-980b-e64bd8758fbb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:54:42.1435594+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb"}, "CallConnected": {"id": "8b743c1d-ba04-4a5c-9595-8233c039b021", "source": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-f91a-4129-980b-e64bd8758fbb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:54:25.1220291+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb"}, "PlayStarted": {"id": "79548f98-54df-49d1-bdbe-423df11e84f9", "source": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-f91a-4129-980b-e64bd8758fbb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:54:29.2518481+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb"}, "PlayCompleted": {"id": "b37a5aba-ae54-4a21-ab49-1135895864de", "source": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-f91a-4129-980b-e64bd8758fbb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:54:42.1122754+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb"}, "CallDisconnected": {"id": "f3732a5b-7be6-447d-9ac8-b0a87ca1a008", "source": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-f91a-4129-980b-e64bd8758fbb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:54:43.0410653+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json index 6113d4c3ce8b..3fc1e49b103d 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-6ec9-7dd3-363a0d00308c", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-6ec9-7dd3-363a0d00308c"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-6dd0-7dd3-363a0d00308b", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-6dd0-7dd3-363a0d00308b"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96NlRtd0VqRm5FZU9ZeWk3VVpOTDBRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "c94be615-67f3-4a82-b5ed-06ad0b731710"}, "ParticipantsUpdated": {"id": "a5122b11-2d14-4b5f-8b38-8a2ae9d38135", "source": "calling/callConnections/08002380-80de-48e3-93b8-974a4469c7e9", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-6ec9-7dd3-363a0d00308c", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-6ec9-7dd3-363a0d00308c"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-6dd0-7dd3-363a0d00308b", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451e-6dd0-7dd3-363a0d00308b"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-80de-48e3-93b8-974a4469c7e9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96NlRtd0VqRm5FZU9ZeWk3VVpOTDBRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "c94be615-67f3-4a82-b5ed-06ad0b731710", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:53:08.5342399+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-80de-48e3-93b8-974a4469c7e9"}, "CallConnected": {"id": "8cfaf70a-d83c-4a2a-a534-1a498b6c7876", "source": "calling/callConnections/08002380-80de-48e3-93b8-974a4469c7e9", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-80de-48e3-93b8-974a4469c7e9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96NlRtd0VqRm5FZU9ZeWk3VVpOTDBRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "c94be615-67f3-4a82-b5ed-06ad0b731710", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:53:08.6120871+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-80de-48e3-93b8-974a4469c7e9"}, "PlayStarted": {"id": "68045c1e-13f1-445c-b3c3-7526ac140f21", "source": "calling/callConnections/08002380-80de-48e3-93b8-974a4469c7e9", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-80de-48e3-93b8-974a4469c7e9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96NlRtd0VqRm5FZU9ZeWk3VVpOTDBRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "c94be615-67f3-4a82-b5ed-06ad0b731710", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:53:12.0638024+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-80de-48e3-93b8-974a4469c7e9"}, "PlayCompleted": {"id": "930eadd7-f230-418a-8476-eb9be34052e3", "source": "calling/callConnections/08002380-80de-48e3-93b8-974a4469c7e9", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-80de-48e3-93b8-974a4469c7e9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96NlRtd0VqRm5FZU9ZeWk3VVpOTDBRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "c94be615-67f3-4a82-b5ed-06ad0b731710", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-03-17T17:53:24.8566508+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-80de-48e3-93b8-974a4469c7e9"}, "CallDisconnected": {"id": "3457e75c-89bd-43b8-b764-044302c41c0e", "source": "calling/callConnections/08002380-80de-48e3-93b8-974a4469c7e9", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-80de-48e3-93b8-974a4469c7e9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96NlRtd0VqRm5FZU9ZeWk3VVpOTDBRP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "c94be615-67f3-4a82-b5ed-06ad0b731710", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:53:25.8837452+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-80de-48e3-93b8-974a4469c7e9"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-551b-2c8a-0848220052eb", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-551b-2c8a-0848220052eb"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-54c8-2c8a-0848220052ea", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-54c8-2c8a-0848220052ea"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5"}, "ParticipantsUpdated": {"id": "3d897c4a-29f6-4dd8-9672-f07e324d807e", "source": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-551b-2c8a-0848220052eb", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-551b-2c8a-0848220052eb"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-54c8-2c8a-0848220052ea", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-54c8-2c8a-0848220052ea"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-6457-454d-a542-fa2d3f26e1cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:53:59.7352775+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd"}, "CallConnected": {"id": "233e5619-329b-4d90-8a39-59efaf87044b", "source": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-6457-454d-a542-fa2d3f26e1cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:53:59.9562365+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd"}, "PlayStarted": {"id": "cf3f77d9-d81d-4c3d-81a7-59ad5c45234f", "source": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-6457-454d-a542-fa2d3f26e1cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:54:02.3234287+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd"}, "PlayCompleted": {"id": "13154a2c-b8ee-41e1-a143-54aa57bb9296", "source": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-6457-454d-a542-fa2d3f26e1cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:54:15.1049491+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd"}, "CallDisconnected": {"id": "caa12e8e-2e17-4dad-b07a-195812adeed4", "source": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-6457-454d-a542-fa2d3f26e1cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:54:16.114084+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json index 9a4fddc4055e..94016235108b 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-e38e-28f4-343a0d002351", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-e38e-28f4-343a0d002351"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-e295-28f4-343a0d002350", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-e295-28f4-343a0d002350"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9lWkZXT3dYSFYwNkp5dXVIMHR4QVRnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "aa114631-a1d9-4cac-98ee-a6334438ac53"}, "ParticipantsUpdated": {"id": "394ebc74-b268-4430-9b19-95527a7bfb3a", "source": "calling/callConnections/08002380-20eb-42a6-9705-439c04e558e5", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-e38e-28f4-343a0d002351", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-e38e-28f4-343a0d002351"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-e295-28f4-343a0d002350", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-e295-28f4-343a0d002350"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-20eb-42a6-9705-439c04e558e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9lWkZXT3dYSFYwNkp5dXVIMHR4QVRnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "aa114631-a1d9-4cac-98ee-a6334438ac53", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:52:54.2977625+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-20eb-42a6-9705-439c04e558e5"}, "CallConnected": {"id": "9b54bf70-fbae-4297-9eea-8f1749550a6e", "source": "calling/callConnections/08002380-20eb-42a6-9705-439c04e558e5", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-20eb-42a6-9705-439c04e558e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9lWkZXT3dYSFYwNkp5dXVIMHR4QVRnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "aa114631-a1d9-4cac-98ee-a6334438ac53", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:52:34.8506105+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-20eb-42a6-9705-439c04e558e5"}, "PlayStarted": {"id": "3ee3ffe1-c750-42e7-b3aa-73b6d37bb8a2", "source": "calling/callConnections/08002380-20eb-42a6-9705-439c04e558e5", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-20eb-42a6-9705-439c04e558e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9lWkZXT3dYSFYwNkp5dXVIMHR4QVRnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "aa114631-a1d9-4cac-98ee-a6334438ac53", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:52:41.3565461+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-20eb-42a6-9705-439c04e558e5"}, "PlayCompleted": {"id": "c173e66d-6654-485a-ac21-d74d1f65b207", "source": "calling/callConnections/08002380-20eb-42a6-9705-439c04e558e5", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-20eb-42a6-9705-439c04e558e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9lWkZXT3dYSFYwNkp5dXVIMHR4QVRnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "aa114631-a1d9-4cac-98ee-a6334438ac53", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-03-17T17:52:54.2832139+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-20eb-42a6-9705-439c04e558e5"}, "CallDisconnected": {"id": "b6a72f0e-b131-4a72-8148-d89eab28bf24", "source": "calling/callConnections/08002380-20eb-42a6-9705-439c04e558e5", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-20eb-42a6-9705-439c04e558e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9lWkZXT3dYSFYwNkp5dXVIMHR4QVRnP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "aa114631-a1d9-4cac-98ee-a6334438ac53", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:52:55.1804336+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-20eb-42a6-9705-439c04e558e5"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e941-2c8a-0848220052e6", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e941-2c8a-0848220052e6"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e90a-2c8a-0848220052e5", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e90a-2c8a-0848220052e5"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5"}, "ParticipantsUpdated": {"id": "8cd37279-5331-498d-9c8e-cd833bd9e67d", "source": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e941-2c8a-0848220052e6", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e941-2c8a-0848220052e6"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e90a-2c8a-0848220052e5", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e90a-2c8a-0848220052e5"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-283c-43ca-80df-48f46ffe1697", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:53:48.9085116+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697"}, "CallConnected": {"id": "e289eeb9-1295-4ad8-bd1f-c92e15d115a0", "source": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-283c-43ca-80df-48f46ffe1697", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:53:32.0993611+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697"}, "PlayStarted": {"id": "0ee44644-7ada-4dbb-92ea-83dc5eace734", "source": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-283c-43ca-80df-48f46ffe1697", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:53:36.0549545+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697"}, "PlayCompleted": {"id": "394cff4f-3203-441d-bb42-15a7b4ffdb19", "source": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-283c-43ca-80df-48f46ffe1697", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:53:48.8766415+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697"}, "CallDisconnected": {"id": "b8b9b1a8-8b49-48d9-9adb-ff30eaee5ed1", "source": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-283c-43ca-80df-48f46ffe1697", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:53:49.8760233+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json index 084d6356fcd4..7708a39e29f2 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-630b-28f4-343a0d002349", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-630b-28f4-343a0d002349"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-5b4b-48d8-363a0d002ada", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-5b4b-48d8-363a0d002ada"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PM05va3V4NmEwZXhzc1lOdEllbXdBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f7eb3442-b07e-43f7-a0b9-ef34bc39fe77"}, "ParticipantsUpdated": {"id": "662df1ee-a000-41d8-9987-033536c508a7", "source": "calling/callConnections/08002380-b5e9-4dbe-8dd8-68f605a6f2b1", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-630b-28f4-343a0d002349", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-630b-28f4-343a0d002349"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-5b4b-48d8-363a0d002ada", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451d-5b4b-48d8-363a0d002ada"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-b5e9-4dbe-8dd8-68f605a6f2b1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PM05va3V4NmEwZXhzc1lOdEllbXdBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f7eb3442-b07e-43f7-a0b9-ef34bc39fe77", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:52:02.3057278+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b5e9-4dbe-8dd8-68f605a6f2b1"}, "CallConnected": {"id": "52467ae1-7a1e-43c7-9469-ed2cf957ca64", "source": "calling/callConnections/08002380-b5e9-4dbe-8dd8-68f605a6f2b1", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-b5e9-4dbe-8dd8-68f605a6f2b1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PM05va3V4NmEwZXhzc1lOdEllbXdBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f7eb3442-b07e-43f7-a0b9-ef34bc39fe77", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:52:02.4302349+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b5e9-4dbe-8dd8-68f605a6f2b1"}, "PlayStarted": {"id": "0b53b64b-12ee-44a0-adcc-dd58aabe8ade", "source": "calling/callConnections/08002380-b5e9-4dbe-8dd8-68f605a6f2b1", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-b5e9-4dbe-8dd8-68f605a6f2b1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PM05va3V4NmEwZXhzc1lOdEllbXdBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f7eb3442-b07e-43f7-a0b9-ef34bc39fe77", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:52:06.1266582+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b5e9-4dbe-8dd8-68f605a6f2b1"}, "PlayCompleted": {"id": "265b8d60-f3f8-4258-814f-468d242c86a8", "source": "calling/callConnections/08002380-b5e9-4dbe-8dd8-68f605a6f2b1", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-b5e9-4dbe-8dd8-68f605a6f2b1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PM05va3V4NmEwZXhzc1lOdEllbXdBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f7eb3442-b07e-43f7-a0b9-ef34bc39fe77", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-03-17T17:52:18.9017156+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b5e9-4dbe-8dd8-68f605a6f2b1"}, "CallDisconnected": {"id": "2c49b9dc-2f6c-47f1-b8eb-6fa4889fca1c", "source": "calling/callConnections/08002380-b5e9-4dbe-8dd8-68f605a6f2b1", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-b5e9-4dbe-8dd8-68f605a6f2b1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PM05va3V4NmEwZXhzc1lOdEllbXdBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f7eb3442-b07e-43f7-a0b9-ef34bc39fe77", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:52:20.3745372+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-b5e9-4dbe-8dd8-68f605a6f2b1"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8673-2c8a-0848220052e2", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8673-2c8a-0848220052e2"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8611-2c8a-0848220052e1", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8611-2c8a-0848220052e1"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94"}, "ParticipantsUpdated": {"id": "7762acf4-11d6-41a9-9196-ea935de8336d", "source": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8673-2c8a-0848220052e2", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8673-2c8a-0848220052e2"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8611-2c8a-0848220052e1", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8611-2c8a-0848220052e1"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-2809-438d-b15e-f7315c098247", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:53:06.8015868+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247"}, "CallConnected": {"id": "668ddcd5-c168-411c-b8fc-c1013b2824d9", "source": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-2809-438d-b15e-f7315c098247", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:53:07.0697136+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247"}, "PlayStarted": {"id": "a50f1683-1243-4b2e-addf-33f2f4c56694", "source": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-2809-438d-b15e-f7315c098247", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:53:09.6516388+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247"}, "PlayCompleted": {"id": "208ea802-ac4f-445b-bec9-85550e46abd2", "source": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-2809-438d-b15e-f7315c098247", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:53:22.4390395+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247"}, "CallDisconnected": {"id": "8f1a228f-9ebb-426c-9721-944465b142a1", "source": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-2809-438d-b15e-f7315c098247", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:53:23.189907+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json index bbbfb158e1ed..9d7b681ff9f5 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-5b79-7dd3-363a0d0030b5", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-5b79-7dd3-363a0d0030b5"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-5a85-7dd3-363a0d0030b4", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-5a85-7dd3-363a0d0030b4"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9iV1hwZFZaZTVFT2NiNlpQVnJkM05BP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "fa189a69-cb84-4447-9a10-bf416c6e0bdb"}, "ParticipantsUpdated": {"id": "61ace638-31f2-4f00-af89-0e084cd59d00", "source": "calling/callConnections/08002380-dc01-4e65-a67d-64083ce09957", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-5a85-7dd3-363a0d0030b4", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-5a85-7dd3-363a0d0030b4"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-5b79-7dd3-363a0d0030b5", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-5b79-7dd3-363a0d0030b5"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-dc01-4e65-a67d-64083ce09957", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9iV1hwZFZaZTVFT2NiNlpQVnJkM05BP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "fa189a69-cb84-4447-9a10-bf416c6e0bdb", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:54:24.2348363+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-dc01-4e65-a67d-64083ce09957"}, "CallConnected": {"id": "6616fbff-fbe2-4756-bf20-02725d18ad5f", "source": "calling/callConnections/08002380-dc01-4e65-a67d-64083ce09957", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-dc01-4e65-a67d-64083ce09957", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9iV1hwZFZaZTVFT2NiNlpQVnJkM05BP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "fa189a69-cb84-4447-9a10-bf416c6e0bdb", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:54:09.4210856+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-dc01-4e65-a67d-64083ce09957"}, "PlayStarted": {"id": "3627f804-3bf7-4c0c-8384-838f40039def", "source": "calling/callConnections/08002380-dc01-4e65-a67d-64083ce09957", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-dc01-4e65-a67d-64083ce09957", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9iV1hwZFZaZTVFT2NiNlpQVnJkM05BP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "fa189a69-cb84-4447-9a10-bf416c6e0bdb", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:54:17.4907917+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-dc01-4e65-a67d-64083ce09957"}, "PlayCompleted": {"id": "0c606e35-dd78-4170-8493-d94800654607", "source": "calling/callConnections/08002380-dc01-4e65-a67d-64083ce09957", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-dc01-4e65-a67d-64083ce09957", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9iV1hwZFZaZTVFT2NiNlpQVnJkM05BP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "fa189a69-cb84-4447-9a10-bf416c6e0bdb", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-03-17T17:54:24.2034995+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-dc01-4e65-a67d-64083ce09957"}, "CallDisconnected": {"id": "fbde6be6-b568-467a-9902-be32d8874cb0", "source": "calling/callConnections/08002380-dc01-4e65-a67d-64083ce09957", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-dc01-4e65-a67d-64083ce09957", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9iV1hwZFZaZTVFT2NiNlpQVnJkM05BP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "fa189a69-cb84-4447-9a10-bf416c6e0bdb", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:54:25.0932612+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-dc01-4e65-a67d-64083ce09957"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-255a-284a-04bd4560531e", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-255a-284a-04bd4560531e"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-2519-284a-04bd4560531d", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-2519-284a-04bd4560531d"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2"}, "ParticipantsUpdated": {"id": "4e4749a0-33bf-4467-bd46-dda4847d54e7", "source": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-255a-284a-04bd4560531e", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-255a-284a-04bd4560531e"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-2519-284a-04bd4560531d", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-2519-284a-04bd4560531d"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "27006880-ab25-4c0b-9f69-fca066dfdd49", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:55:04.3449927+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49"}, "CallConnected": {"id": "3dcc8c32-5338-44c2-9689-0d7636d62dbf", "source": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "27006880-ab25-4c0b-9f69-fca066dfdd49", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:54:53.3226867+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49"}, "PlayStarted": {"id": "9c529c3d-edf6-4b89-803f-89a14b608b26", "source": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "27006880-ab25-4c0b-9f69-fca066dfdd49", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:54:57.6805747+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49"}, "PlayCompleted": {"id": "b29d66d4-7276-41ac-89e4-96196770da3e", "source": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "27006880-ab25-4c0b-9f69-fca066dfdd49", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:55:04.3223361+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49"}, "CallDisconnected": {"id": "0ca8fa50-88f7-414e-94a5-2b467b7dc3a6", "source": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "27006880-ab25-4c0b-9f69-fca066dfdd49", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:55:05.0085797+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json index fb6cf953ae5b..ee8c73732049 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-ce87-0e04-343a0d00f0f3", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-ce87-0e04-343a0d00f0f3"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-cd86-0e04-343a0d00f0f2", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-cd86-0e04-343a0d00f0f2"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kT0o2TzVYclIwNkFOQWRXREtaeG1nP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f70df6d0-e168-47ce-9318-1b6ec14d0100"}, "CallConnected": {"id": "4556f380-6263-4a67-b21a-13362cbf287d", "source": "calling/callConnections/08002380-ea71-4672-90ab-215dce50ca43", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-ea71-4672-90ab-215dce50ca43", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kT0o2TzVYclIwNkFOQWRXREtaeG1nP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f70df6d0-e168-47ce-9318-1b6ec14d0100", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:54:38.2720769+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-ea71-4672-90ab-215dce50ca43"}, "ParticipantsUpdated": {"id": "2acd5b83-31a8-4296-83ad-7855f5a4bfb8", "source": "calling/callConnections/08002380-ea71-4672-90ab-215dce50ca43", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-cd86-0e04-343a0d00f0f2", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-cd86-0e04-343a0d00f0f2"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-ce87-0e04-343a0d00f0f3", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451f-ce87-0e04-343a0d00f0f3"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-ea71-4672-90ab-215dce50ca43", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kT0o2TzVYclIwNkFOQWRXREtaeG1nP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f70df6d0-e168-47ce-9318-1b6ec14d0100", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:54:38.1936567+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-ea71-4672-90ab-215dce50ca43"}, "PlayStarted": {"id": "e259651e-1a41-4c46-8260-8ba1f6d74da8", "source": "calling/callConnections/08002380-ea71-4672-90ab-215dce50ca43", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-ea71-4672-90ab-215dce50ca43", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kT0o2TzVYclIwNkFOQWRXREtaeG1nP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f70df6d0-e168-47ce-9318-1b6ec14d0100", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:54:42.9615053+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-ea71-4672-90ab-215dce50ca43"}, "PlayCompleted": {"id": "cba91aef-751c-4c20-8488-ee37f44f1e08", "source": "calling/callConnections/08002380-ea71-4672-90ab-215dce50ca43", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-ea71-4672-90ab-215dce50ca43", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kT0o2TzVYclIwNkFOQWRXREtaeG1nP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f70df6d0-e168-47ce-9318-1b6ec14d0100", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-03-17T17:54:49.5164726+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-ea71-4672-90ab-215dce50ca43"}, "CallDisconnected": {"id": "002baf87-d973-46c6-a899-6af00c4cb81f", "source": "calling/callConnections/08002380-ea71-4672-90ab-215dce50ca43", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-ea71-4672-90ab-215dce50ca43", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kT0o2TzVYclIwNkFOQWRXREtaeG1nP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "f70df6d0-e168-47ce-9318-1b6ec14d0100", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:54:50.5375822+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-ea71-4672-90ab-215dce50ca43"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7ac4-284a-04bd4560532b", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7ac4-284a-04bd4560532b"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7a74-284a-04bd4560532a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7a74-284a-04bd4560532a"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844"}, "ParticipantsUpdated": {"id": "9861cac8-6abc-433f-a962-d712df528551", "source": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7a74-284a-04bd4560532a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7a74-284a-04bd4560532a"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7ac4-284a-04bd4560532b", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7ac4-284a-04bd4560532b"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-6495-4427-ad91-828b87c06f67", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:55:14.7635024+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67"}, "CallConnected": {"id": "5ea527d0-f8ae-4112-bb6a-8eccca3b7e1a", "source": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-6495-4427-ad91-828b87c06f67", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:55:14.8847347+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67"}, "PlayStarted": {"id": "03b9d489-1aef-4130-9384-d0c4a17cbfab", "source": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-6495-4427-ad91-828b87c06f67", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:55:17.4408079+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67"}, "PlayCompleted": {"id": "c76730e6-e376-4063-8692-9a9242c33260", "source": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-6495-4427-ad91-828b87c06f67", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:55:24.0110484+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67"}, "CallDisconnected": {"id": "c72e7b0e-8356-43a1-ba6b-e249879b2fa5", "source": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-6495-4427-ad91-828b87c06f67", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:55:25.1931939+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json index 46664945f8c1..960f992a225a 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-f58a-28f4-343a0d0023d2", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-f58a-28f4-343a0d0023d2"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-f3ad-a1de-363a0d002885", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-f3ad-a1de-363a0d002885"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PTWdUbGdsTENFR2ZkMGVkRHNhS0NnP2k9MTAtNjAtOC00NyZlPTYzODc3NTc5OTU2NTUwNjQ4OQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "9c64cdac-573a-442a-b4ea-3b5c421ced96"}, "ParticipantsUpdated": {"id": "94ccc9fc-7312-4aba-8b07-176261b78c49", "source": "calling/callConnections/05002380-78c2-479d-aecd-578b2b002145", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-f3ad-a1de-363a0d002885", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-f3ad-a1de-363a0d002885"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-f58a-28f4-343a0d0023d2", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-f58a-28f4-343a0d0023d2"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "05002380-78c2-479d-aecd-578b2b002145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PTWdUbGdsTENFR2ZkMGVkRHNhS0NnP2k9MTAtNjAtOC00NyZlPTYzODc3NTc5OTU2NTUwNjQ4OQ==", "correlationId": "9c64cdac-573a-442a-b4ea-3b5c421ced96", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:57:06.9322194+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-78c2-479d-aecd-578b2b002145"}, "CallConnected": {"id": "67efc7e3-8937-4464-a18a-b77795ab54bc", "source": "calling/callConnections/05002380-78c2-479d-aecd-578b2b002145", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "05002380-78c2-479d-aecd-578b2b002145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PTWdUbGdsTENFR2ZkMGVkRHNhS0NnP2k9MTAtNjAtOC00NyZlPTYzODc3NTc5OTU2NTUwNjQ4OQ==", "correlationId": "9c64cdac-573a-442a-b4ea-3b5c421ced96", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:56:59.3747394+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-78c2-479d-aecd-578b2b002145"}, "PlayStarted": {"id": "08be100a-63bd-4b04-b971-c15dd740ed46", "source": "calling/callConnections/05002380-78c2-479d-aecd-578b2b002145", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "05002380-78c2-479d-aecd-578b2b002145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PTWdUbGdsTENFR2ZkMGVkRHNhS0NnP2k9MTAtNjAtOC00NyZlPTYzODc3NTc5OTU2NTUwNjQ4OQ==", "correlationId": "9c64cdac-573a-442a-b4ea-3b5c421ced96", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:57:02.6544889+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-78c2-479d-aecd-578b2b002145"}, "PlayFailed": {"id": "cec35ec6-9d00-4692-b547-2f43deeb4aca", "source": "calling/callConnections/05002380-78c2-479d-aecd-578b2b002145", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2024-09-01-preview", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "05002380-78c2-479d-aecd-578b2b002145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PTWdUbGdsTENFR2ZkMGVkRHNhS0NnP2k9MTAtNjAtOC00NyZlPTYzODc3NTc5OTU2NTUwNjQ4OQ==", "correlationId": "9c64cdac-573a-442a-b4ea-3b5c421ced96", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-03-17T17:57:06.903788+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-78c2-479d-aecd-578b2b002145"}, "CallDisconnected": {"id": "d9905d69-eeba-4b9c-826e-1075175db1cc", "source": "calling/callConnections/05002380-78c2-479d-aecd-578b2b002145", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "05002380-78c2-479d-aecd-578b2b002145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9PTWdUbGdsTENFR2ZkMGVkRHNhS0NnP2k9MTAtNjAtOC00NyZlPTYzODc3NTc5OTU2NTUwNjQ4OQ==", "correlationId": "9c64cdac-573a-442a-b4ea-3b5c421ced96", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:57:07.4994027+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-78c2-479d-aecd-578b2b002145"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-1976-284a-04bd45605355", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-1976-284a-04bd45605355"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-18bd-284a-04bd45605354", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-18bd-284a-04bd45605354"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb"}, "ParticipantsUpdated": {"id": "74998ec9-7b62-4897-b39b-fd1c826aa4eb", "source": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-18bd-284a-04bd45605354", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-18bd-284a-04bd45605354"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-1976-284a-04bd45605355", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-1976-284a-04bd45605355"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-907f-40f2-8a7f-43d214db64cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:57:10.6550845+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb"}, "CallConnected": {"id": "7f8757ed-e514-4f75-b15d-f1eb9806beff", "source": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-907f-40f2-8a7f-43d214db64cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:57:02.2539208+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb"}, "PlayStarted": {"id": "02636404-a1b4-4344-befd-3cc2a33188be", "source": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-907f-40f2-8a7f-43d214db64cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:57:06.3225448+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb"}, "PlayFailed": {"id": "fd3bd900-a088-445b-89ed-160c4e852c30", "source": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "32006680-907f-40f2-8a7f-43d214db64cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-21T21:57:10.6260487+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb"}, "CallDisconnected": {"id": "ad6731e2-7f86-4b61-bc78-21ae5c768958", "source": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-907f-40f2-8a7f-43d214db64cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:57:11.1453862+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json index ee346acf2b92..009f3fec0f05 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-4b54-28f4-343a0d0023b7", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-4b54-28f4-343a0d0023b7"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-4a22-a1de-363a0d00286d", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-4a22-a1de-363a0d00286d"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90T2dQX1hkM05VbWljRzJzbldYRWFBP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "24925e88-684c-4cdc-8061-cc80fb313842"}, "ParticipantsUpdated": {"id": "7a25e3e1-60e4-4da6-93b9-ccf51f558056", "source": "calling/callConnections/05002380-fa8d-4748-92a1-a0da3f8d71ab", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-4b54-28f4-343a0d0023b7", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-4b54-28f4-343a0d0023b7"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-4a22-a1de-363a0d00286d", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-4a22-a1de-363a0d00286d"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "05002380-fa8d-4748-92a1-a0da3f8d71ab", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90T2dQX1hkM05VbWljRzJzbldYRWFBP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "24925e88-684c-4cdc-8061-cc80fb313842", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:56:18.1598041+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-fa8d-4748-92a1-a0da3f8d71ab"}, "CallConnected": {"id": "11e2e749-42d1-4b24-adb0-37d1199a2f25", "source": "calling/callConnections/05002380-fa8d-4748-92a1-a0da3f8d71ab", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "05002380-fa8d-4748-92a1-a0da3f8d71ab", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90T2dQX1hkM05VbWljRzJzbldYRWFBP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "24925e88-684c-4cdc-8061-cc80fb313842", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:56:18.3487203+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-fa8d-4748-92a1-a0da3f8d71ab"}, "PlayStarted": {"id": "ca5ffd5a-c2cb-48c6-91e4-14f86f0d059e", "source": "calling/callConnections/05002380-fa8d-4748-92a1-a0da3f8d71ab", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "05002380-fa8d-4748-92a1-a0da3f8d71ab", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90T2dQX1hkM05VbWljRzJzbldYRWFBP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "24925e88-684c-4cdc-8061-cc80fb313842", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-03-17T17:56:22.0772428+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-fa8d-4748-92a1-a0da3f8d71ab"}, "PlayFailed": {"id": "fc203ca7-b125-44aa-b195-3cb11591139a", "source": "calling/callConnections/05002380-fa8d-4748-92a1-a0da3f8d71ab", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2024-09-01-preview", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "05002380-fa8d-4748-92a1-a0da3f8d71ab", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90T2dQX1hkM05VbWljRzJzbldYRWFBP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "24925e88-684c-4cdc-8061-cc80fb313842", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-03-17T17:56:26.3062036+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-fa8d-4748-92a1-a0da3f8d71ab"}, "CallDisconnected": {"id": "1c32ffe8-fca6-4e14-9c7d-b13b4982ea7e", "source": "calling/callConnections/05002380-fa8d-4748-92a1-a0da3f8d71ab", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "05002380-fa8d-4748-92a1-a0da3f8d71ab", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90T2dQX1hkM05VbWljRzJzbldYRWFBP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "24925e88-684c-4cdc-8061-cc80fb313842", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:56:27.7205974+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-fa8d-4748-92a1-a0da3f8d71ab"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d64-284a-04bd4560534a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d64-284a-04bd4560534a"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d27-284a-04bd45605349", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d27-284a-04bd45605349"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d"}, "ParticipantsUpdated": {"id": "d73594ca-0949-4971-a2c1-ad5226f26ad3", "source": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d64-284a-04bd4560534a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d64-284a-04bd4560534a"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d27-284a-04bd45605349", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d27-284a-04bd45605349"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-e64d-4e04-91fd-82e573c3ae0b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:56:25.7361222+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b"}, "CallConnected": {"id": "67dde893-c556-4791-8d1f-e0b81ee8d0b3", "source": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-e64d-4e04-91fd-82e573c3ae0b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:56:25.8467881+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b"}, "PlayStarted": {"id": "1d3a6d9f-4cdd-4b6d-8f0e-9375ae953995", "source": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-e64d-4e04-91fd-82e573c3ae0b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:56:29.2036607+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b"}, "PlayFailed": {"id": "3f974918-e9f2-40c4-8a37-a201bcbf7c95", "source": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "32006680-e64d-4e04-91fd-82e573c3ae0b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-21T21:56:33.4351562+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b"}, "CallDisconnected": {"id": "f2eb7c98-8e9f-4b6b-a13a-493364f2c697", "source": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-e64d-4e04-91fd-82e573c3ae0b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:56:34.1669448+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json index bc1d88498f2f..fb5b37a680f0 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-a556-a1de-363a0d002879", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-a556-a1de-363a0d002879"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-a452-a1de-363a0d002878", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-a452-a1de-363a0d002878"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XTU52My13aVBVQ1dQWHVIbElDNU5RP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "6111b61e-684a-423b-845a-9f415796a954"}, "ParticipantsUpdated": {"id": "3515273a-116d-435f-a338-e1f15be9dbd8", "source": "calling/callConnections/05002380-16b9-48c2-903f-40aa1c105fed", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-a452-a1de-363a0d002878", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-a452-a1de-363a0d002878"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-a556-a1de-363a0d002879", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4521-a556-a1de-363a0d002879"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "05002380-16b9-48c2-903f-40aa1c105fed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XTU52My13aVBVQ1dQWHVIbElDNU5RP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "6111b61e-684a-423b-845a-9f415796a954", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:56:45.7614921+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-16b9-48c2-903f-40aa1c105fed"}, "CallConnected": {"id": "38ea5e02-3622-430d-9a85-96f4ac01a46f", "source": "calling/callConnections/05002380-16b9-48c2-903f-40aa1c105fed", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "05002380-16b9-48c2-903f-40aa1c105fed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XTU52My13aVBVQ1dQWHVIbElDNU5RP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "6111b61e-684a-423b-845a-9f415796a954", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:56:39.653955+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-16b9-48c2-903f-40aa1c105fed"}, "PlayFailed": {"id": "460559c6-cfca-4607-a8ff-262e2c9f2d95", "source": "calling/callConnections/05002380-16b9-48c2-903f-40aa1c105fed", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2024-09-01-preview", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "05002380-16b9-48c2-903f-40aa1c105fed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XTU52My13aVBVQ1dQWHVIbElDNU5RP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "6111b61e-684a-423b-845a-9f415796a954", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-03-17T17:56:45.745833+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-16b9-48c2-903f-40aa1c105fed"}, "CallDisconnected": {"id": "41d2bcb9-00a6-46f7-843e-9b2a9ec011b1", "source": "calling/callConnections/05002380-16b9-48c2-903f-40aa1c105fed", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "05002380-16b9-48c2-903f-40aa1c105fed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XTU52My13aVBVQ1dQWHVIbElDNU5RP2k9MTAtNjAtMjEtMjU0JmU9NjM4Nzc1Nzk3MzIwNTQ2MTg5", "correlationId": "6111b61e-684a-423b-845a-9f415796a954", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:56:46.9855578+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/05002380-16b9-48c2-903f-40aa1c105fed"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d414-284a-04bd45605350", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d414-284a-04bd45605350"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d3d6-284a-04bd4560534f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d3d6-284a-04bd4560534f"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9ualc0cGc1RG5FT0VTUm9XMGtQMjRBP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "794fe5e3-d22e-4b67-acf9-70cec6b6bf87"}, "ParticipantsUpdated": {"id": "c00a25ee-dddb-4b39-89ba-e9ecf4e7f952", "source": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d414-284a-04bd45605350", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d414-284a-04bd45605350"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d3d6-284a-04bd4560534f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d3d6-284a-04bd4560534f"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-d09d-4405-95d3-75a5fcbe5fdb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9ualc0cGc1RG5FT0VTUm9XMGtQMjRBP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "794fe5e3-d22e-4b67-acf9-70cec6b6bf87", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:56:49.1620788+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb"}, "CallConnected": {"id": "2d59c507-96cd-4590-851f-60eff2a42745", "source": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-d09d-4405-95d3-75a5fcbe5fdb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9ualc0cGc1RG5FT0VTUm9XMGtQMjRBP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "794fe5e3-d22e-4b67-acf9-70cec6b6bf87", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:56:44.6896984+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb"}, "PlayFailed": {"id": "2cf44b5c-175b-4a6e-bec8-5b734f7a5aa5", "source": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "32006680-d09d-4405-95d3-75a5fcbe5fdb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9ualc0cGc1RG5FT0VTUm9XMGtQMjRBP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "794fe5e3-d22e-4b67-acf9-70cec6b6bf87", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-21T21:56:49.1273409+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb"}, "CallDisconnected": {"id": "619b044a-9169-465c-bc87-eeae1d0452a4", "source": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-d09d-4405-95d3-75a5fcbe5fdb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9ualc0cGc1RG5FT0VTUm9XMGtQMjRBP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "794fe5e3-d22e-4b67-acf9-70cec6b6bf87", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:56:50.7381645+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json index 9cda01169a87..a7c832ff71b5 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-eee8-22da-363a0d0036ac", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-eee8-22da-363a0d0036ac"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-edee-22da-363a0d0036ab", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-edee-22da-363a0d0036ab"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KMGh3TnU1S2lrZUkzWTE1NGhlNTZ3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "62bf93d1-6920-4d56-8189-bce693bc3518"}, "ParticipantsUpdated": {"id": "9617a02c-3100-4828-b2d6-cfe459efa192", "source": "calling/callConnections/08002380-9de8-4f37-9d87-8e50086bd443", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-edee-22da-363a0d0036ab", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-edee-22da-363a0d0036ab"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-eee8-22da-363a0d0036ac", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-4520-eee8-22da-363a0d0036ac"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-9de8-4f37-9d87-8e50086bd443", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KMGh3TnU1S2lrZUkzWTE1NGhlNTZ3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "62bf93d1-6920-4d56-8189-bce693bc3518", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:55:56.8882867+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-9de8-4f37-9d87-8e50086bd443"}, "CallConnected": {"id": "deab4de2-e3ea-4e11-af76-b6652589ab26", "source": "calling/callConnections/08002380-9de8-4f37-9d87-8e50086bd443", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-9de8-4f37-9d87-8e50086bd443", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KMGh3TnU1S2lrZUkzWTE1NGhlNTZ3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "62bf93d1-6920-4d56-8189-bce693bc3518", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:55:56.8882867+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-9de8-4f37-9d87-8e50086bd443"}, "PlayFailed": {"id": "cb4dd5f7-69f3-48df-80b0-de15b9f24313", "source": "calling/callConnections/08002380-9de8-4f37-9d87-8e50086bd443", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2024-09-01-preview", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "08002380-9de8-4f37-9d87-8e50086bd443", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KMGh3TnU1S2lrZUkzWTE1NGhlNTZ3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "62bf93d1-6920-4d56-8189-bce693bc3518", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-03-17T17:56:00.5713865+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-9de8-4f37-9d87-8e50086bd443"}, "CallDisconnected": {"id": "c9b64919-5f16-4c2f-887a-00ef5e9204d6", "source": "calling/callConnections/08002380-9de8-4f37-9d87-8e50086bd443", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-9de8-4f37-9d87-8e50086bd443", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KMGh3TnU1S2lrZUkzWTE1NGhlNTZ3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "62bf93d1-6920-4d56-8189-bce693bc3518", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:56:02.2400873+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-9de8-4f37-9d87-8e50086bd443"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5db0-284a-04bd45605345", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5db0-284a-04bd45605345"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5d63-284a-04bd45605344", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5d63-284a-04bd45605344"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9YcU9FT1FyeGtVQ1Zod2tPb1UyNjFRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "4e67bcfe-e405-4fb1-a769-6dd047dff431"}, "CallConnected": {"id": "8c939eb4-fb8d-4a00-bc99-ce0e071ddde6", "source": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-9dee-4246-8734-269c7198e40b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9YcU9FT1FyeGtVQ1Zod2tPb1UyNjFRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "4e67bcfe-e405-4fb1-a769-6dd047dff431", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:56:13.2068633+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b"}, "ParticipantsUpdated": {"id": "aa1313fc-816a-46f4-bf2a-3d2dabd4b325", "source": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5d63-284a-04bd45605344", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5d63-284a-04bd45605344"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5db0-284a-04bd45605345", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5db0-284a-04bd45605345"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-9dee-4246-8734-269c7198e40b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9YcU9FT1FyeGtVQ1Zod2tPb1UyNjFRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "4e67bcfe-e405-4fb1-a769-6dd047dff431", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:56:13.1748075+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b"}, "PlayFailed": {"id": "953c1135-c419-454d-89b3-e5645777bb82", "source": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "32006680-9dee-4246-8734-269c7198e40b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9YcU9FT1FyeGtVQ1Zod2tPb1UyNjFRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "4e67bcfe-e405-4fb1-a769-6dd047dff431", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-21T21:56:15.6260259+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b"}, "CallDisconnected": {"id": "f858ba40-dd91-4b2f-8c95-480bb857c359", "source": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-9dee-4246-8734-269c7198e40b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9YcU9FT1FyeGtVQ1Zod2tPb1UyNjFRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "4e67bcfe-e405-4fb1-a769-6dd047dff431", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:56:16.409471+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json index 958da273c71e..68c62c335017 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-9053-48d8-363a0d002aad", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-9053-48d8-363a0d002aad"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-8f59-48d8-363a0d002aac", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-8f59-48d8-363a0d002aac"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kaFhsN1lId0xVLVB6YUpsWTR5VmNBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "ecd5ab77-5b8e-4db7-ac16-57d0461c07eb"}, "ParticipantsUpdated": {"id": "34ad0bb7-95cf-4d1b-b155-46ecb6fe5136", "source": "calling/callConnections/08002380-f03a-488b-a39f-cd7e0636713f", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-8f59-48d8-363a0d002aac", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-8f59-48d8-363a0d002aac"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-9053-48d8-363a0d002aad", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-9053-48d8-363a0d002aad"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-f03a-488b-a39f-cd7e0636713f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kaFhsN1lId0xVLVB6YUpsWTR5VmNBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "ecd5ab77-5b8e-4db7-ac16-57d0461c07eb", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:51:05.8900196+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-f03a-488b-a39f-cd7e0636713f"}, "CallConnected": {"id": "a72b6a47-3413-424b-b218-030ea6e5e2b2", "source": "calling/callConnections/08002380-f03a-488b-a39f-cd7e0636713f", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-f03a-488b-a39f-cd7e0636713f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kaFhsN1lId0xVLVB6YUpsWTR5VmNBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "ecd5ab77-5b8e-4db7-ac16-57d0461c07eb", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:51:06.0312973+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-f03a-488b-a39f-cd7e0636713f"}, "MediaStreamingStarted": {"id": "fe1be4c8-fdab-405f-94b9-a3e39ac3aef3", "source": "calling/callConnections/08002380-f03a-488b-a39f-cd7e0636713f", "type": "Microsoft.Communication.MediaStreamingStarted", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStarted", "mediaStreamingStatusDetails": "subscriptionStarted"}, "version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-f03a-488b-a39f-cd7e0636713f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kaFhsN1lId0xVLVB6YUpsWTR5VmNBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "ecd5ab77-5b8e-4db7-ac16-57d0461c07eb", "publicEventType": "Microsoft.Communication.MediaStreamingStarted"}, "time": "2025-03-17T17:51:09.192835+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-f03a-488b-a39f-cd7e0636713f"}, "MediaStreamingStopped": {"id": "ed1b2364-d3fc-4f8f-82bc-f4c18584d534", "source": "calling/callConnections/08002380-f03a-488b-a39f-cd7e0636713f", "type": "Microsoft.Communication.MediaStreamingStopped", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStopped", "mediaStreamingStatusDetails": "subscriptionStopped"}, "version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-f03a-488b-a39f-cd7e0636713f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kaFhsN1lId0xVLVB6YUpsWTR5VmNBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "ecd5ab77-5b8e-4db7-ac16-57d0461c07eb", "publicEventType": "Microsoft.Communication.MediaStreamingStopped"}, "time": "2025-03-17T17:51:13.4738166+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-f03a-488b-a39f-cd7e0636713f"}, "CallDisconnected": {"id": "0fb4f016-66c1-4c26-9d72-8eba07d8f7e9", "source": "calling/callConnections/08002380-f03a-488b-a39f-cd7e0636713f", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-f03a-488b-a39f-cd7e0636713f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9kaFhsN1lId0xVLVB6YUpsWTR5VmNBP2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "ecd5ab77-5b8e-4db7-ac16-57d0461c07eb", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:51:14.7668114+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-f03a-488b-a39f-cd7e0636713f"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ec2c-2c8a-0848220052da", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ec2c-2c8a-0848220052da"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ebd0-2c8a-0848220052d9", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ebd0-2c8a-0848220052d9"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f"}, "ParticipantsUpdated": {"id": "367b42a9-148f-4731-8f7f-da2d4ce44c2a", "source": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ec2c-2c8a-0848220052da", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ec2c-2c8a-0848220052da"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ebd0-2c8a-0848220052d9", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ebd0-2c8a-0848220052d9"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-c372-4e7f-b3b4-a706fdfae6a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:52:27.4771446+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7"}, "CallConnected": {"id": "6d9ebf3e-9bab-4ff1-a068-3906e8af1c3c", "source": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-c372-4e7f-b3b4-a706fdfae6a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:52:27.6436421+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7"}, "MediaStreamingStarted": {"id": "88ceab77-02f6-4a20-aaae-81db13989433", "source": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7", "type": "Microsoft.Communication.MediaStreamingStarted", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStarted", "mediaStreamingStatusDetails": "subscriptionStarted"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-c372-4e7f-b3b4-a706fdfae6a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f", "publicEventType": "Microsoft.Communication.MediaStreamingStarted"}, "time": "2025-05-21T21:52:29.8864984+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7"}, "MediaStreamingStopped": {"id": "44c17ef4-243c-4119-9b85-7dee8315c38c", "source": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7", "type": "Microsoft.Communication.MediaStreamingStopped", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStopped", "mediaStreamingStatusDetails": "subscriptionStopped"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-c372-4e7f-b3b4-a706fdfae6a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f", "publicEventType": "Microsoft.Communication.MediaStreamingStopped"}, "time": "2025-05-21T21:52:34.097691+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7"}, "CallDisconnected": {"id": "3ceb0ffe-38d7-43f0-8194-9c7398045cfa", "source": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-c372-4e7f-b3b4-a706fdfae6a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:52:35.2129027+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json index e56459c0c642..2292747370a9 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-decd-48d8-363a0d002abc", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-decd-48d8-363a0d002abc"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-ddd6-48d8-363a0d002aba", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-ddd6-48d8-363a0d002aba"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9udklJNDhva1RrbVJNTm5kcE9xZm53P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e731b44f-8e01-48fd-b974-003d87d85d3a"}, "ParticipantsUpdated": {"id": "7c1def49-2451-4660-a70a-5c2c2a7752e6", "source": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-decd-48d8-363a0d002abc", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-decd-48d8-363a0d002abc"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-ddd6-48d8-363a0d002aba", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451c-ddd6-48d8-363a0d002aba"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-cf4e-4c73-aab8-5d31e2d368b7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9udklJNDhva1RrbVJNTm5kcE9xZm53P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e731b44f-8e01-48fd-b974-003d87d85d3a", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:51:25.6016131+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7"}, "CallConnected": {"id": "ba784fa3-6db0-4d0a-b40e-ece69a7584fb", "source": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-cf4e-4c73-aab8-5d31e2d368b7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9udklJNDhva1RrbVJNTm5kcE9xZm53P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e731b44f-8e01-48fd-b974-003d87d85d3a", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:51:25.6473209+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7"}, "TranscriptionStarted": {"id": "934b53d0-25e6-4629-a3f8-1dcfe25ca4bc", "source": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7", "type": "Microsoft.Communication.TranscriptionStarted", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStarted", "transcriptionStatusDetails": "subscriptionStarted"}, "version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-cf4e-4c73-aab8-5d31e2d368b7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9udklJNDhva1RrbVJNTm5kcE9xZm53P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e731b44f-8e01-48fd-b974-003d87d85d3a", "publicEventType": "Microsoft.Communication.TranscriptionStarted"}, "time": "2025-03-17T17:51:31.1318519+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7"}, "TranscriptionUpdated": {"id": "118deb94-2ce3-49cb-bbe2-5fe8d0977de2", "source": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7", "type": "Microsoft.Communication.TranscriptionUpdated", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionUpdated", "transcriptionStatusDetails": "transcriptionLocaleUpdated"}, "version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-cf4e-4c73-aab8-5d31e2d368b7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9udklJNDhva1RrbVJNTm5kcE9xZm53P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e731b44f-8e01-48fd-b974-003d87d85d3a", "publicEventType": "Microsoft.Communication.TranscriptionUpdated"}, "time": "2025-03-17T17:51:35.6471766+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7"}, "TranscriptionStopped": {"id": "6a0a38f5-c73c-4ce5-9676-bec7cc742d74", "source": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7", "type": "Microsoft.Communication.TranscriptionStopped", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStopped", "transcriptionStatusDetails": "subscriptionStopped"}, "version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08002380-cf4e-4c73-aab8-5d31e2d368b7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9udklJNDhva1RrbVJNTm5kcE9xZm53P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e731b44f-8e01-48fd-b974-003d87d85d3a", "publicEventType": "Microsoft.Communication.TranscriptionStopped"}, "time": "2025-03-17T17:51:41.987517+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7"}, "CallDisconnected": {"id": "854f72bf-c511-4b0f-8e51-614ecd889dad", "source": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-cf4e-4c73-aab8-5d31e2d368b7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9udklJNDhva1RrbVJNTm5kcE9xZm53P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "e731b44f-8e01-48fd-b974-003d87d85d3a", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:51:43.3008859+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-cf4e-4c73-aab8-5d31e2d368b7"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2db7-2c8a-0848220052de", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2db7-2c8a-0848220052de"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2d65-2c8a-0848220052dd", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2d65-2c8a-0848220052dd"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d"}, "ParticipantsUpdated": {"id": "93d94fad-7bc2-45dd-9468-949cc50e2e74", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2db7-2c8a-0848220052de", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2db7-2c8a-0848220052de"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2d65-2c8a-0848220052dd", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2d65-2c8a-0848220052dd"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:52:44.0775693+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}, "CallConnected": {"id": "8cf61c9a-9829-4973-a90e-080533a313ff", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:52:44.2879541+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}, "TranscriptionStarted": {"id": "82793b30-cfdb-4faf-a44f-4150ef9fe39b", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.TranscriptionStarted", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStarted", "transcriptionStatusDetails": "subscriptionStarted"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.TranscriptionStarted"}, "time": "2025-05-21T21:52:46.5870024+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}, "TranscriptionUpdated": {"id": "d4e6a60a-b896-4593-bf61-1548450d17d4", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.TranscriptionUpdated", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionUpdated", "transcriptionStatusDetails": "transcriptionLocaleUpdated"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.TranscriptionUpdated"}, "time": "2025-05-21T21:52:50.6302858+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}, "TranscriptionStopped": {"id": "b365a87e-2dc9-4ab0-b094-cb353dd468ca", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.TranscriptionStopped", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStopped", "transcriptionStatusDetails": "subscriptionStopped"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.TranscriptionStopped"}, "time": "2025-05-21T21:52:56.7807446+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}, "CallDisconnected": {"id": "171e6a99-fa2e-4917-9298-a815b0b3c0ea", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:52:57.8754329+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/test_call_media_client.py b/sdk/communication/azure-communication-callautomation/tests/test_call_media_client.py index 624021ade5e6..03fa868fd6ba 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_call_media_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_call_media_client.py @@ -112,7 +112,8 @@ def test_play_file_to_all_back_compat(self): expected_play_request = PlayRequest( play_sources=[play_source._to_generated()], play_to=[], - play_options=PlayOptions(loop=False, interrupt_call_media_operation=False) + play_options=PlayOptions(loop=False), + interrupt_call_media_operation=False ) mock_play.assert_called_once() actual_play_request = mock_play.call_args[0][1] @@ -125,7 +126,7 @@ def test_play_file_to_all_back_compat(self): ) self.assertEqual(expected_play_request.play_to, actual_play_request.play_to) self.assertEqual(expected_play_request.play_options.loop, actual_play_request.play_options.loop) - self.assertEqual(expected_play_request.play_options.interrupt_call_media_operation, actual_play_request.play_options.interrupt_call_media_operation) + self.assertEqual(expected_play_request.interrupt_call_media_operation, actual_play_request.interrupt_call_media_operation) def test_play_file_to_all_via_play_back_compat_with_barge_in(self): mock_play = Mock() @@ -137,7 +138,8 @@ def test_play_file_to_all_via_play_back_compat_with_barge_in(self): expected_play_request = PlayRequest( play_sources=[play_source._to_generated()], play_to=[], - play_options=PlayOptions(loop=False, interrupt_call_media_operation=True) + play_options=PlayOptions(loop=False), + interrupt_call_media_operation=True ) mock_play.assert_called_once() actual_play_request = mock_play.call_args[0][1] @@ -149,8 +151,8 @@ def test_play_file_to_all_via_play_back_compat_with_barge_in(self): actual_play_request.play_sources[0].play_source_cache_id, ) self.assertEqual(expected_play_request.play_to, actual_play_request.play_to) - self.assertEqual(expected_play_request.play_options.interrupt_call_media_operation, actual_play_request.play_options.interrupt_call_media_operation) - + self.assertEqual(expected_play_request.interrupt_call_media_operation, actual_play_request.interrupt_call_media_operation) + def test_play_file_to_all_back_compat_with_barge_in(self): mock_play = Mock() self.call_media_operations.play = mock_play @@ -161,7 +163,8 @@ def test_play_file_to_all_back_compat_with_barge_in(self): expected_play_request = PlayRequest( play_sources=[play_source._to_generated()], play_to=[], - play_options=PlayOptions(loop=False, interrupt_call_media_operation=True) + play_options=PlayOptions(loop=False), + interrupt_call_media_operation=True ) mock_play.assert_called_once() actual_play_request = mock_play.call_args[0][1] @@ -173,7 +176,7 @@ def test_play_file_to_all_back_compat_with_barge_in(self): actual_play_request.play_sources[0].play_source_cache_id, ) self.assertEqual(expected_play_request.play_to, actual_play_request.play_to) - self.assertEqual(expected_play_request.play_options.interrupt_call_media_operation, actual_play_request.play_options.interrupt_call_media_operation) + self.assertEqual(expected_play_request.interrupt_call_media_operation, actual_play_request.interrupt_call_media_operation) def test_play_multiple_source_to_all(self): mock_play = Mock() @@ -685,7 +688,7 @@ def test_unhold(self): actual_hold_request = mock_unhold.call_args[0][1] self.assertEqual(expected_hold_request.operation_context, actual_hold_request.operation_context) - + def test_start_media_streaming(self): mock_start_media_streaming = Mock() self.call_media_operations.start_media_streaming = mock_start_media_streaming diff --git a/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py b/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py index d1322e338bce..b7f9a96f61c9 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py @@ -97,17 +97,3 @@ def mock_send(_, **kwargs): "https://endpoint", AzureKeyCredential("fakeCredential=="), transport=Mock(send=mock_send) ) callautomation_client.get_recording_properties(recording_id=self.recording_id) - - def test_start_recording_with_call_connection_id(self): - def mock_send(_, **kwargs): - kwargs.pop("stream", None) - if kwargs: - raise ValueError(f"Received unexpected kwargs in transport: {kwargs}") - return mock_response(status_code=200, json_payload={"recording_id": "1", "recording_state": "2"}) - - callautomation_client = CallAutomationClient( - "https://endpoint", AzureKeyCredential("fakeCredential=="), transport=Mock(send=mock_send) - ) - target_participant = CommunicationUserIdentifier("testId") - channel_affinity = ChannelAffinity(target_participant=target_participant, channel=0) - callautomation_client.start_recording(call_connection_id=self.call_connection_id, channel_affinity=[channel_affinity]) diff --git a/sdk/communication/azure-communication-callautomation/tests/test_callautomation_client.py b/sdk/communication/azure-communication-callautomation/tests/test_callautomation_client.py index f3450eeb6c08..6f469dfb7c54 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_callautomation_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_callautomation_client.py @@ -70,7 +70,6 @@ def mock_send(request, **kwargs): call_connection_properties = call_automation_client.create_call( target_participant=call_invite, callback_url=self.callback_url, - voip_headers={"foo": "bar"}, source_display_name="baz", ) self.assertEqual(self.call_connection_id, call_connection_properties.call_connection_id) @@ -80,7 +79,6 @@ def mock_send(request, **kwargs): call_connection_properties = call_automation_client.create_call( target_participant=user, callback_url=self.callback_url, - voip_headers={"foo": "bar"}, source_display_name="baz", ) self.assertEqual(self.call_connection_id, call_connection_properties.call_connection_id) @@ -181,37 +179,6 @@ def mock_send(_, **kwargs): self.assertEqual(self.call_connection_id, call_connection_properties.call_connection_id) self.assertEqual(self.server_callI_id, call_connection_properties.server_call_id) self.assertEqual(self.callback_url, call_connection_properties.callback_url) - - def test_answer_call_with_custom_context(self): - def mock_send(_, **kwargs): - kwargs.pop("stream", None) - if kwargs: - raise ValueError(f"Received unexpected kwargs in transport: {kwargs}") - return mock_response( - status_code=200, - json_payload={ - "callConnectionId": self.call_connection_id, - "serverCallId": self.server_callI_id, - "callbackUri": self.callback_url, - "targets": [ - {"rawId": self.communication_user_id, "communicationUser": {"id": self.communication_user_id}} - ], - "source": { - "rawId": self.communication_user_source_id, - "communicationUser": {"id": self.communication_user_source_id}, - }, - }, - ) - - # target endpoint for ACS User - user = CommunicationUserIdentifier(self.communication_user_id) - call_automation_client = CallAutomationClient( - "https://endpoint", AzureKeyCredential("fakeCredential=="), transport=Mock(send=mock_send) - ) - call_connection_properties = call_automation_client.answer_call(self.incoming_call_context, self.callback_url, voip_headers={"foo": "bar"}) - self.assertEqual(self.call_connection_id, call_connection_properties.call_connection_id) - self.assertEqual(self.server_callI_id, call_connection_properties.server_call_id) - self.assertEqual(self.callback_url, call_connection_properties.callback_url) def test_redirect_call(self): def mock_send(_, **kwargs): @@ -228,11 +195,9 @@ def mock_send(_, **kwargs): "https://endpoint", AzureKeyCredential("fakeCredential=="), transport=Mock(send=mock_send) ) call_automation_client.redirect_call(self.incoming_call_context, call_redirect_to) - call_automation_client.redirect_call(self.incoming_call_context, user, voip_headers={"foo": "bar"}) + call_automation_client.redirect_call(self.incoming_call_context, user) with pytest.raises(ValueError) as e: - call_automation_client.redirect_call( - self.incoming_call_context, user, voip_headers={"foo": "bar"}, source_display_name="baz" - ) + call_automation_client.redirect_call(self.incoming_call_context, user, source_display_name="baz") assert "unexpected kwargs" in str(e.value) def test_reject_call(self): diff --git a/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py b/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py index 3de86c97e4f2..0a835dd201dd 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py @@ -76,7 +76,7 @@ def test_add_participant_then_cancel_request(self): self.terminate_call(unique_id) return - + @pytest.mark.skip(reason="""Playback fails for same event type triggered and test recording code takes the event type has the dictionary it fails to recording call connected event for the connect api""") @recorded_by_proxy @@ -111,67 +111,7 @@ def test_create_VOIP_call_and_connect_call_then_hangup(self): self.terminate_call(unique_id) return - - @recorded_by_proxy - def test_create_VOIP_call_and_answer_custom_context(self): - # try to establish the call - caller = self.identity_client.create_user() - target = self.identity_client.create_user() - unique_id, call_connection, _ = self.establish_callconnection_voip_answercall_withcustomcontext(caller, target) - - # check returned events - connected_event = self.check_for_event( - "CallConnected", call_connection._call_connection_id, timedelta(seconds=15) - ) - participant_updated_event = self.check_for_event( - "ParticipantsUpdated", call_connection._call_connection_id, timedelta(seconds=15) - ) - - if connected_event is None: - raise ValueError("Caller CallConnected event is None") - if participant_updated_event is None: - raise ValueError("Caller ParticipantsUpdated event is None") - self.terminate_call(unique_id) - return - - @recorded_by_proxy - def test_start_recording_with_call_connection_id(self): - # try to establish the call - caller = self.identity_client.create_user() - target = self.identity_client.create_user() - unique_id, call_connection, _, call_automation_client, callback_url = self.establish_callconnection_voip_connect_call(caller, target) - - # check returned events - connected_event = self.check_for_event('CallConnected', call_connection._call_connection_id, timedelta(seconds=15)) - participant_updated_event = self.check_for_event('ParticipantsUpdated', call_connection._call_connection_id, timedelta(seconds=15)) - - if connected_event is None: - raise ValueError("Caller CallConnected event is None") - if participant_updated_event is None: - raise ValueError("Caller ParticipantsUpdated event is None") - - call_connection_properties = call_connection.get_call_properties() - call_connection_id = call_connection_properties.call_connection_id - target_participant = CommunicationUserIdentifier("testId") - channel_affinity = ChannelAffinity(target_participant=target_participant, channel=0) - - # start recording request with call connection id. - start_recording = call_automation_client.start_recording(call_connection_id=call_connection_id, recording_state_callback_url=callback_url, channel_affinity=[channel_affinity] - ) - time.sleep(5) - - # check for RecordingStateChanged event - recording_state_changed_event = self.check_for_event('RecordingStateChanged', call_connection_id, timedelta(seconds=30)) - if recording_state_changed_event is None: - raise ValueError("RecordingStateChanged event is None") - - # stop recording request. - call_automation_client.stop_recording(recording_id=start_recording.recording_id) - time.sleep(3) - - self.terminate_call(unique_id) - return @recorded_by_proxy def test_start_recording_with_server_call_id(self): @@ -204,10 +144,10 @@ def test_start_recording_with_server_call_id(self): recording_state_changed_event = self.check_for_event('RecordingStateChanged', call_connection_id, timedelta(seconds=30)) if recording_state_changed_event is None: raise ValueError("RecordingStateChanged event is None") - + # stop recording request. call_automation_client.stop_recording(recording_id=start_recording.recording_id) time.sleep(3) - + self.terminate_call(unique_id) return diff --git a/sdk/communication/azure-communication-callautomation/tests/test_e2e_media_client.py b/sdk/communication/azure-communication-callautomation/tests/test_e2e_media_client.py index df983a50ce4d..0af5b08e8628 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_e2e_media_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_e2e_media_client.py @@ -204,10 +204,10 @@ def test_add_and_hold_unhold_participant_in_a_call(self): self.terminate_call(unique_id) return - - @recorded_by_proxy + + @recorded_by_proxy def test_start_stop_media_streaming_in_a_call(self): - + # try to establish the call caller = self.identity_client.create_user() target = self.identity_client.create_user() @@ -217,9 +217,7 @@ def test_start_stop_media_streaming_in_a_call(self): transport_type=StreamingTransportType.WEBSOCKET, content_type=MediaStreamingContentType.AUDIO, audio_channel_type=MediaStreamingAudioChannelType.MIXED, - start_media_streaming=False - ) - + start_media_streaming=False) unique_id, call_connection, _ = self.establish_callconnection_voip_with_streaming_options(caller, target, media_streaming_options, False) # check returned events @@ -230,17 +228,17 @@ def test_start_stop_media_streaming_in_a_call(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + # start media streaming. call_connection.start_media_streaming() - + # check for MediaStreamingStarted event media_streaming_started = self.check_for_event('MediaStreamingStarted', call_connection._call_connection_id, timedelta(seconds=30)) if media_streaming_started is None: raise ValueError("MediaStreamingStarted event is None") time.sleep(3) - + # check for media streaming subscription from call connection properties for media streaming started event call_connection_properties=call_connection.get_call_properties() if call_connection_properties is None: @@ -257,7 +255,7 @@ def test_start_stop_media_streaming_in_a_call(self): media_streaming_stopped = self.check_for_event('MediaStreamingStopped', call_connection._call_connection_id, timedelta(seconds=30)) if media_streaming_stopped is None: raise ValueError("MediaStreamingStopped event is None") - + # check for media streaming subscription from call connection properties for media streaming stopped event call_connection_properties=call_connection.get_call_properties() if call_connection_properties is None: @@ -269,7 +267,7 @@ def test_start_stop_media_streaming_in_a_call(self): self.terminate_call(unique_id) return - + @recorded_by_proxy def test_start_stop_transcription_in_call(self): # try to establish the call @@ -292,10 +290,10 @@ def test_start_stop_transcription_in_call(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + # start transcription call_connection.start_transcription(locale="en-ca") - + # check for TranscriptionStarted event transcription_started = self.check_for_event('TranscriptionStarted', call_connection._call_connection_id, timedelta(seconds=30)) if transcription_started is None: @@ -312,22 +310,22 @@ def test_start_stop_transcription_in_call(self): time.sleep(3) call_connection.update_transcription(locale="en-gb") - + # check for TranscriptionUpdated event transcription_updated = self.check_for_event('TranscriptionUpdated', call_connection._call_connection_id, timedelta(seconds=30)) if transcription_updated is None: raise ValueError("TranscriptionUpdated event is None") - + time.sleep(3) # stop transcription call_connection.stop_transcription() - + # check for TranscriptionStopped event transcription_stopped = self.check_for_event('TranscriptionStopped', call_connection._call_connection_id, timedelta(seconds=30)) if transcription_stopped is None: raise ValueError("TranscriptionStopped event is None") - + # check for transcription subscription from call connection properties for transcription stopped event call_connection_properties=call_connection.get_call_properties() if call_connection_properties is None: @@ -336,7 +334,7 @@ def test_start_stop_transcription_in_call(self): raise ValueError("call_connection_properties.transcription_subscription is None") if call_connection_properties.transcription_subscription.state!='inactive': raise ValueError("transcription subscription state is invalid for TranscriptionStopped event") - + self.terminate_call(unique_id) return @@ -355,14 +353,14 @@ def test_play_multiple_file_sources_with_play_media_all(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + play_multiple_file_source = [ FileSource(url=self.file_source_url), FileSource(url=self.file_source_url), FileSource(url=self.file_source_url) ] - # play media to all + # play media to all call_connection.play_media_to_all( play_source=play_multiple_file_source ) @@ -390,7 +388,7 @@ def test_play_multiple_file_sources_with_play_media(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + play_multiple_file_source = [ FileSource(url=self.file_source_url), FileSource(url=self.file_source_url), @@ -407,10 +405,10 @@ def test_play_multiple_file_sources_with_play_media(self): play_completed_event_file_source_to_target = self.check_for_event('PlayCompleted', call_connection._call_connection_id, timedelta(seconds=30)) if play_completed_event_file_source_to_target is None: raise ValueError("Play media PlayCompleted event is None") - + self.terminate_call(unique_id) return - + @recorded_by_proxy def test_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all(self): # try to establish the call @@ -426,7 +424,7 @@ def test_play_multiple_file_sources_with_operationcallbackurl_with_play_media_al raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + play_multiple_file_source = [ FileSource(url=self.file_source_url), FileSource(url=self.file_source_url), @@ -435,7 +433,7 @@ def test_play_multiple_file_sources_with_operationcallbackurl_with_play_media_al random_unique_id = self._unique_key_gen(caller, target) - # play media to all + # play media to all call_connection.play_media_to_all( play_source=play_multiple_file_source, operation_callback_url=(self.dispatcher_callback + "?q={}".format(random_unique_id)) @@ -445,10 +443,10 @@ def test_play_multiple_file_sources_with_operationcallbackurl_with_play_media_al play_completed_event_file_source = self.check_for_event('PlayCompleted', call_connection._call_connection_id, timedelta(seconds=30)) if play_completed_event_file_source is None: raise ValueError("PlayCompleted event is None") - + self.terminate_call(unique_id) return - + @recorded_by_proxy def test_play_multiple_file_sources_with_operationcallbackurl_with_play_media(self): # try to establish the call @@ -464,7 +462,7 @@ def test_play_multiple_file_sources_with_operationcallbackurl_with_play_media(se raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + play_multiple_file_source = [ FileSource(url=self.file_source_url), FileSource(url=self.file_source_url), @@ -484,7 +482,7 @@ def test_play_multiple_file_sources_with_operationcallbackurl_with_play_media(se play_completed_event_file_source_to_target = self.check_for_event('PlayCompleted', call_connection._call_connection_id, timedelta(seconds=30)) if play_completed_event_file_source_to_target is None: raise ValueError("PlayCompleted event is None") - + self.terminate_call(unique_id) return @@ -503,7 +501,7 @@ def test_play_multiple_text_sources_with_play_media(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + play_multiple_text_source = [ TextSource(text="this is test one", voice_name="en-US-NancyNeural"), TextSource(text="this is test two", voice_name="en-US-NancyNeural"), @@ -519,10 +517,10 @@ def test_play_multiple_text_sources_with_play_media(self): play_completed_event_text_source_to_target = self.check_for_event('PlayCompleted', call_connection._call_connection_id, timedelta(seconds=30)) if play_completed_event_text_source_to_target is None: raise ValueError("PlayCompleted event is None") - + self.terminate_call(unique_id) return - + @recorded_by_proxy def test_play_multiple_text_sources_with_play_media_all(self): # try to establish the call @@ -538,7 +536,7 @@ def test_play_multiple_text_sources_with_play_media_all(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + play_multiple_text_source = [ TextSource(text="this is test one", voice_name="en-US-NancyNeural"), TextSource(text="this is test two", voice_name="en-US-NancyNeural"), @@ -553,10 +551,10 @@ def test_play_multiple_text_sources_with_play_media_all(self): play_completed_event_text_source = self.check_for_event('PlayCompleted', call_connection._call_connection_id, timedelta(seconds=30)) if play_completed_event_text_source is None: raise ValueError("PlayCompleted event is None") - + self.terminate_call(unique_id) return - + @recorded_by_proxy def test_play_combined_file_and_text_sources_with_play_media(self): # try to establish the call @@ -572,7 +570,7 @@ def test_play_combined_file_and_text_sources_with_play_media(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + play_multiple_source = [ FileSource(url=self.file_source_url), TextSource(text="this is test.", voice_name="en-US-NancyNeural"), @@ -587,10 +585,10 @@ def test_play_combined_file_and_text_sources_with_play_media(self): play_completed_event_multiple_source_to_target = self.check_for_event('PlayCompleted', call_connection._call_connection_id, timedelta(seconds=30)) if play_completed_event_multiple_source_to_target is None: raise ValueError("PlayCompleted event is None") - + self.terminate_call(unique_id) return - + @recorded_by_proxy def test_play_combined_file_and_text_sources_with_play_media_all(self): # try to establish the call @@ -606,7 +604,7 @@ def test_play_combined_file_and_text_sources_with_play_media_all(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + play_multiple_source = [ FileSource(url=self.file_source_url), TextSource(text="this is test.", voice_name="en-US-NancyNeural"), @@ -623,7 +621,7 @@ def test_play_combined_file_and_text_sources_with_play_media_all(self): self.terminate_call(unique_id) return - + @recorded_by_proxy def test_play_with_invalid_file_sources_with_play_media_all(self): # try to establish the call @@ -639,7 +637,7 @@ def test_play_with_invalid_file_sources_with_play_media_all(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + file_prompt = [FileSource(url="https://dummy.com/dummyurl.wav")] call_connection.play_media_to_all( @@ -649,10 +647,10 @@ def test_play_with_invalid_file_sources_with_play_media_all(self): play_failed_event = self.check_for_event('PlayFailed', call_connection._call_connection_id, timedelta(seconds=30)) if play_failed_event is None: raise ValueError("PlayFailed event is None") - + self.terminate_call(unique_id) return - + @recorded_by_proxy def test_play_with_invalid_and_valid_file_sources_with_play_media_all(self): # try to establish the call @@ -668,7 +666,7 @@ def test_play_with_invalid_and_valid_file_sources_with_play_media_all(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + file_prompt = [FileSource(url=self.file_source_url), FileSource(url="https://dummy.com/dummyurl.wav")] call_connection.play_media_to_all( @@ -678,7 +676,7 @@ def test_play_with_invalid_and_valid_file_sources_with_play_media_all(self): play_failed_event = self.check_for_event('PlayFailed', call_connection._call_connection_id, timedelta(seconds=30)) if play_failed_event is None: raise ValueError("PlayFailed event is None") - + self.terminate_call(unique_id) return @@ -697,7 +695,7 @@ def test_play_with_invalid_file_sources_with_play_media(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + file_prompt = [FileSource(url="https://dummy.com/dummyurl.wav")] call_connection._play_media( @@ -708,7 +706,7 @@ def test_play_with_invalid_file_sources_with_play_media(self): play_failed_event_to_target = self.check_for_event('PlayFailed', call_connection._call_connection_id, timedelta(seconds=30)) if play_failed_event_to_target is None: raise ValueError("PlayFailed event is None") - + self.terminate_call(unique_id) return @@ -727,7 +725,7 @@ def test_play_with_invalid_and_valid_file_sources_with_play_media(self): raise ValueError("Caller CallConnected event is None") if participant_updated_event is None: raise ValueError("Caller ParticipantsUpdated event is None") - + file_prompt = [FileSource(url=self.file_source_url), FileSource(url="https://dummy.com/dummyurl.wav")] call_connection._play_media( @@ -739,82 +737,6 @@ def test_play_with_invalid_and_valid_file_sources_with_play_media(self): print(play_failed_event_to_target) if play_failed_event_to_target is None: raise ValueError("PlayFailed event is None") - - self.terminate_call(unique_id) - return - - @recorded_by_proxy - def test_interrupt_audio_and_announce_in_a_call(self): - - # try to establish the call - caller = self.identity_client.create_user() - target = self.identity_client.create_user() - unique_id, call_connection, _ = self.establish_callconnection_voip(caller, target) - - # check returned events - connected_event = self.check_for_event( - "CallConnected", call_connection._call_connection_id, timedelta(seconds=15) - ) - participant_updated_event = self.check_for_event( - "ParticipantsUpdated", call_connection._call_connection_id, timedelta(seconds=15) - ) - - if connected_event is None: - raise ValueError("Caller CallConnected event is None") - if participant_updated_event is None: - raise ValueError("Caller ParticipantsUpdated event is None") - play_source = FileSource(url=self.file_source_url) - - # Hold participant - call_connection.hold(target_participant=target, play_source=play_source, operation_context="hold_add_target_participant") - time.sleep(2) - # check returned events - hold_audio_started_event = self.check_for_event( - "HoldAudioStarted", call_connection._call_connection_id, timedelta(seconds=15) - ) - if hold_audio_started_event is None: - raise ValueError("Caller HoldAudioStarted event is None") - - get_participant_result = call_connection.get_participant(target) - if get_participant_result is None: - raise ValueError("Invalid get_participant_result") - - if get_participant_result.is_on_hold is False: - raise ValueError("Failed to hold participant") - play_multiple_file_source = [ - FileSource(url=self.file_source_url) - ] - call_connection.interrupt_audio_and_announce(target_participant=target, play_sources=play_multiple_file_source) - - # check returned events - hold_audio_paused_event = self.check_for_event( - "HoldAudioPaused", call_connection._call_connection_id, timedelta(seconds=15) - ) - if hold_audio_paused_event is None: - raise ValueError("Caller HoldAudioPaused event is None") - - hold_audio_resumed_event = self.check_for_event( - "HoldAudioResumed", call_connection._call_connection_id, timedelta(seconds=15) - ) - if hold_audio_resumed_event is None: - raise ValueError("Caller HoldAudioResumed event is None") - - # Unhold participant - call_connection.unhold(target, operation_context="unhold_add_target_participant") - time.sleep(2) - hold_audio_completed_event = self.check_for_event( - "HoldAudioCompleted", call_connection._call_connection_id, timedelta(seconds=15) - ) - if hold_audio_completed_event is None: - raise ValueError("Caller HoldAudioCompleted event is None") - - get_participant_result = call_connection.get_participant(target) - - if get_participant_result is None: - raise ValueError("Invalid get_participant_result") - - if get_participant_result.is_on_hold is True: - raise ValueError("Failed to unhold participant") self.terminate_call(unique_id) - return \ No newline at end of file + return From dbf9d2dddbe4f0428f853c25224a1f8e40fe937c Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Thu, 22 May 2025 15:51:07 -0700 Subject: [PATCH 06/23] updating the locale and adding the operation callback uril in the unholdoptions --- .../callautomation/_call_connection_client.py | 13 ++++++++++++- .../azure/communication/callautomation/_models.py | 9 +++++++-- .../aio/_call_connection_client_async.py | 13 ++++++++++++- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py index aef3da125fae..df661230b12a 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py @@ -1038,7 +1038,12 @@ def hold( @distributed_trace def unhold( - self, target_participant: "CommunicationIdentifier", *, operation_context: Optional[str] = None, **kwargs + self, + target_participant: "CommunicationIdentifier", + *, + operation_context: Optional[str] = None, + operation_callback_url: Optional[str] = None, + **kwargs ) -> None: """Play media to specific participant(s) in this call. @@ -1046,6 +1051,11 @@ def unhold( :type target_participant: ~azure.communication.callautomation.CommunicationIdentifier :keyword operation_context: Value that can be used to track this call and its associated events. :paramtype operation_context: str or None + :keyword operation_callback_url: Set a callback URL that overrides the default callback URL set + by CreateCall/AnswerCall for this operation. + This setup is per-action. If this is not set, the default callback URL set by + CreateCall/AnswerCall will be used. + :paramtype operation_callback_url: str or None :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1054,6 +1064,7 @@ def unhold( unhold_request = UnholdRequest( target_participant=serialize_identifier(target_participant), operation_context=operation_context, + operation_callback_url=operation_callback_url, kwargs=kwargs, ) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py index 4758bc4a401d..3afb00a8d774 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py @@ -549,23 +549,28 @@ class TranscriptionSubscription: """transcription subscription state.""" subscribed_result_types: Optional[List[Union[str, 'TranscriptionResultType']]] """subscribed transcription result types.""" + """Specifies the locale used for transcription, e.g., en-CA or en-AU.""" + locale: Optional[str] def __init__( self, *, id: Optional[str] = None, # pylint: disable=redefined-builtin state: Optional[Union[str, "TranscriptionSubscriptionState"]] = None, - subscribed_result_types: Optional[List[Union[str, "TranscriptionResultType"]]] = None + subscribed_result_types: Optional[List[Union[str, "TranscriptionResultType"]]] = None, + locale: Optional[str] = None, ) -> None: self.id = id self.state = state self.subscribed_result_types = subscribed_result_types + self.locale = locale def _to_generated(self): return TranscriptionSubscriptionInternal( id=self.id, state=self.state , - subscribed_result_types=self.subscribed_result_types + subscribed_result_types=self.subscribed_result_types, + locale=self.locale ) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py index 920389d95628..6e90f2dd8ea2 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py @@ -1062,7 +1062,12 @@ async def hold( @distributed_trace_async async def unhold( - self, target_participant: "CommunicationIdentifier", *, operation_context: Optional[str] = None, **kwargs + self, + target_participant: "CommunicationIdentifier", + *, + operation_context: Optional[str] = None, + operation_callback_url: Optional[str] = None, + **kwargs ) -> None: """Play media to specific participant(s) in this call. @@ -1070,6 +1075,11 @@ async def unhold( :type target_participant: ~azure.communication.callautomation.CommunicationIdentifier :keyword operation_context: Value that can be used to track this call and its associated events. :paramtype operation_context: str or None + :keyword operation_callback_url: Set a callback URL that overrides the default callback URL set + by CreateCall/AnswerCall for this operation. + This setup is per-action. If this is not set, the default callback URL set by + CreateCall/AnswerCall will be used. + :paramtype operation_callback_url: str or None :return: None :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1078,6 +1088,7 @@ async def unhold( unhold_request = UnholdRequest( target_participant=serialize_identifier(target_participant), operation_context=operation_context, + operation_callback_uri=operation_callback_url, kwargs=kwargs, ) From c11e1d4276d322ee9f0764e2b77de84b09b88dc9 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Fri, 23 May 2025 12:38:47 -0700 Subject: [PATCH 07/23] updating hold operationcallback url --- .../callautomation/_call_connection_client.py | 6 +++--- .../azure/communication/callautomation/_models.py | 2 +- .../callautomation/aio/_call_connection_client_async.py | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py index df661230b12a..c23aa375f03f 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py @@ -1038,9 +1038,9 @@ def hold( @distributed_trace def unhold( - self, - target_participant: "CommunicationIdentifier", - *, + self, + target_participant: "CommunicationIdentifier", + *, operation_context: Optional[str] = None, operation_callback_url: Optional[str] = None, **kwargs diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py index 3afb00a8d774..16704fe37427 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py @@ -549,8 +549,8 @@ class TranscriptionSubscription: """transcription subscription state.""" subscribed_result_types: Optional[List[Union[str, 'TranscriptionResultType']]] """subscribed transcription result types.""" - """Specifies the locale used for transcription, e.g., en-CA or en-AU.""" locale: Optional[str] + """Specifies the locale used for transcription, e.g., en-CA or en-AU.""" def __init__( self, diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py index 6e90f2dd8ea2..b4debb8a6a21 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py @@ -1062,10 +1062,10 @@ async def hold( @distributed_trace_async async def unhold( - self, - target_participant: "CommunicationIdentifier", - *, - operation_context: Optional[str] = None, + self, + target_participant: "CommunicationIdentifier", + *, + operation_context: Optional[str] = None, operation_callback_url: Optional[str] = None, **kwargs ) -> None: From 6e082eca04e08431e5a907621753b266619077a8 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Fri, 23 May 2025 13:53:09 -0700 Subject: [PATCH 08/23] updating version number --- .../_generated/aio/operations/_operations.py | 8 +++++--- .../_generated/operations/_operations.py | 12 ++++++------ .../azure/communication/callautomation/_version.py | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py index a1f3d2efd8de..3c8a7d24e678 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -72,7 +72,9 @@ class AzureCommunicationCallAutomationServiceOperationsMixin( # pylint: disable=name-too-long - ClientMixinABC[AsyncPipelineClient, AzureCommunicationCallAutomationServiceConfiguration] + ClientMixinABC[ + AsyncPipelineClient[HttpRequest, AsyncHttpResponse], AzureCommunicationCallAutomationServiceConfiguration + ] ): @overload @@ -909,7 +911,7 @@ async def transfer_to_participant( return deserialized # type: ignore @distributed_trace - def get_participants(self, call_connection_id: str, **kwargs: Any) -> AsyncIterable["_models.CallParticipant"]: + def get_participants(self, call_connection_id: str, **kwargs: Any) -> AsyncItemPaged["_models.CallParticipant"]: """Get participants from a call. Recording and transcription bots are omitted from this list. Get participants from a call. Recording and transcription bots are omitted from this list. diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py index c7cc75bf0195..755e92eaddc2 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py @@ -9,7 +9,7 @@ from collections.abc import MutableMapping import datetime from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse import uuid @@ -1001,7 +1001,7 @@ def build_call_recording_resume_recording_request( # pylint: disable=name-too-l class AzureCommunicationCallAutomationServiceOperationsMixin( # pylint: disable=name-too-long - ClientMixinABC[PipelineClient, AzureCommunicationCallAutomationServiceConfiguration] + ClientMixinABC[PipelineClient[HttpRequest, HttpResponse], AzureCommunicationCallAutomationServiceConfiguration] ): @overload @@ -1542,7 +1542,7 @@ class CallConnectionOperations: models = _models - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") self._config: AzureCommunicationCallAutomationServiceConfiguration = ( @@ -1842,7 +1842,7 @@ def transfer_to_participant( return deserialized # type: ignore @distributed_trace - def get_participants(self, call_connection_id: str, **kwargs: Any) -> Iterable["_models.CallParticipant"]: + def get_participants(self, call_connection_id: str, **kwargs: Any) -> ItemPaged["_models.CallParticipant"]: """Get participants from a call. Recording and transcription bots are omitted from this list. Get participants from a call. Recording and transcription bots are omitted from this list. @@ -2512,7 +2512,7 @@ class CallMediaOperations: models = _models - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") self._config: AzureCommunicationCallAutomationServiceConfiguration = ( @@ -4037,7 +4037,7 @@ class CallRecordingOperations: models = _models - def __init__(self, *args, **kwargs): + def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") self._config: AzureCommunicationCallAutomationServiceConfiguration = ( diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_version.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_version.py index 8521ef4a1900..0c9eeb772f97 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_version.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_version.py @@ -4,6 +4,6 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "1.4.0b2" +VERSION = "1.4.0" SDK_MONIKER = f"communication-callautomation/{format(VERSION)}" From a21efac1ed5515bde04994cc56cdcafefcb3c72a Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Fri, 23 May 2025 14:20:06 -0700 Subject: [PATCH 09/23] adding the dtmf --- .../azure/communication/callautomation/_models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py index 16704fe37427..e34808adb444 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py @@ -388,6 +388,8 @@ class MediaStreamingOptions: """A value indicating whether bidirectional streaming is enabled""" audio_format: Optional[Union[str, 'AudioFormat']] = None """Specifies the audio format used for encoding.""" + enable_dtmf_tones: Optional[bool] = None + """A value that indicates whether to stream the DTMF tones.""" def __init__( self, @@ -399,6 +401,7 @@ def __init__( start_media_streaming: Optional[bool] = None, enable_bidirectional: Optional[bool] = None, audio_format: Optional[Union[str, 'AudioFormat']] = None, + enable_dtmf_tones: Optional[bool] = None, ): self.transport_url = transport_url self.transport_type = transport_type @@ -407,6 +410,7 @@ def __init__( self.start_media_streaming = start_media_streaming self.enable_bidirectional = enable_bidirectional self.audio_format = audio_format + self.enable_dtmf_tones = enable_dtmf_tones def _to_generated(self): return WebSocketMediaStreamingOptionsRest( @@ -416,7 +420,8 @@ def _to_generated(self): audio_channel_type=self.audio_channel_type, start_media_streaming=self.start_media_streaming, enable_bidirectional = self.enable_bidirectional, - audio_format=self.audio_format + audio_format=self.audio_format, + enable_dtmf_tones=self.enable_dtmf_tones, ) class TranscriptionOptions: From 9a569fb18fc53b14beb0bffc0b35f9803f68b650 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 28 May 2025 06:42:12 -0700 Subject: [PATCH 10/23] fixing the spelling error on the comment --- .../azure/communication/callautomation/_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py index e34808adb444..9da1c67c64b9 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_models.py @@ -359,7 +359,7 @@ class MediaStreamingOptions: :param transport_url: Transport URL for media streaming. :type transport_url: str :param transport_type: The type of transport to be used for media streaming. - :type transport_type: str or ~azure.communication.callautomation.StramingTransport + :type transport_type: str or ~azure.communication.callautomation.StreamingTransport :param content_type: Content type to stream, eg. audio, audio/video. :type content_type: str or ~azure.communication.callautomation.MediaStreamingContentType :param audio_channel_type: Audio channel type to stream, eg. unmixed audio, mixed audio. From f3d28821987d324a228de2f77fcbd5fda4f4c7cb Mon Sep 17 00:00:00 2001 From: v-saasomani Date: Wed, 28 May 2025 11:44:13 -0700 Subject: [PATCH 11/23] Live/Recorded Tests (#41328) * Rerecorded live tests. * Pushed assets.json. --- .../azure-communication-callautomation/assets.json | 2 +- ...dLiveTesttest_add_participant_then_cancel_request.event.json | 2 +- ...eTesttest_create_VOIP_call_and_answer_then_hangup.event.json | 2 +- ...dLiveTesttest_start_recording_with_server_call_id.event.json | 2 +- ...esttest_add_and_hold_unhold_participant_in_a_call.event.json | 2 +- ...edLiveTesttest_add_and_mute_participant_in_a_call.event.json | 2 +- ...ay_combined_file_and_text_sources_with_play_media.event.json | 2 +- ...ombined_file_and_text_sources_with_play_media_all.event.json | 2 +- ...stMediaAutomatedLiveTesttest_play_media_in_a_call.event.json | 2 +- ...sources_with_operationcallbackurl_with_play_media.event.json | 2 +- ...ces_with_operationcallbackurl_with_play_media_all.event.json | 2 +- ...sttest_play_multiple_file_sources_with_play_media.event.json | 2 +- ...st_play_multiple_file_sources_with_play_media_all.event.json | 2 +- ...sttest_play_multiple_text_sources_with_play_media.event.json | 2 +- ...st_play_multiple_text_sources_with_play_media_all.event.json | 2 +- ...th_invalid_and_valid_file_sources_with_play_media.event.json | 2 +- ...nvalid_and_valid_file_sources_with_play_media_all.event.json | 2 +- ...st_play_with_invalid_file_sources_with_play_media.event.json | 2 +- ...lay_with_invalid_file_sources_with_play_media_all.event.json | 2 +- ...LiveTesttest_start_stop_media_streaming_in_a_call.event.json | 2 +- ...atedLiveTesttest_start_stop_transcription_in_call.event.json | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/assets.json b/sdk/communication/azure-communication-callautomation/assets.json index 2d6e02fea169..ccff8c99833c 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": "python", "TagPrefix": "python/communication/azure-communication-callautomation", - "Tag": "python/communication/azure-communication-callautomation_396e206eb1" + "Tag": "python/communication/azure-communication-callautomation_873c9c1c4a" } diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json index 2f3bd379d128..6c56afb448c1 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-72ac-2c8a-0848220052c4", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-72ac-2c8a-0848220052c4"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-726f-2c8a-0848220052c3", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-726f-2c8a-0848220052c3"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LNlVWblpEOC0wYVR6VEZqNmJ3QkJ3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "35b55b00-a44e-411d-a584-d5e8099f9176"}, "ParticipantsUpdated": {"id": "4d7818db-bdb7-414f-a797-1a2abfc4e181", "source": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-72ac-2c8a-0848220052c4", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-72ac-2c8a-0848220052c4"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-726f-2c8a-0848220052c3", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-726f-2c8a-0848220052c3"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 3, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-05dd-489b-b379-c8e32c401f03", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LNlVWblpEOC0wYVR6VEZqNmJ3QkJ3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "35b55b00-a44e-411d-a584-d5e8099f9176", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:50:54.3761624+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03"}, "CallConnected": {"id": "0dacad35-fcad-44d6-b502-c45388d05a7d", "source": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-05dd-489b-b379-c8e32c401f03", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LNlVWblpEOC0wYVR6VEZqNmJ3QkJ3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "35b55b00-a44e-411d-a584-d5e8099f9176", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:50:51.2004761+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03"}, "CancelAddParticipantSucceeded": {"id": "2eccf15d-839e-48c3-b9d5-0ea24cd08336", "source": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03", "type": "Microsoft.Communication.CancelAddParticipantSucceeded", "data": {"invitationId": "42e87e78-34c6-44c0-93c4-c30506bfc2db", "version": "2025-05-15", "resultInformation": {"code": 487, "subCode": 5234, "message": "addParticipants failed for participant 8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-72ea-2c8a-0848220052c5. Underlying reason: The Call Has Been Cancelled. DiagCode: 487#5234.@"}, "callConnectionId": "08006680-05dd-489b-b379-c8e32c401f03", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LNlVWblpEOC0wYVR6VEZqNmJ3QkJ3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "35b55b00-a44e-411d-a584-d5e8099f9176", "publicEventType": "Microsoft.Communication.CancelAddParticipantSucceeded"}, "time": "2025-05-21T21:50:56.2951141+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03"}, "CallDisconnected": {"id": "69024f11-baf3-43cd-a3bf-3cc989d88f78", "source": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-05dd-489b-b379-c8e32c401f03", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LNlVWblpEOC0wYVR6VEZqNmJ3QkJ3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "35b55b00-a44e-411d-a584-d5e8099f9176", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:50:57.3457146+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-05dd-489b-b379-c8e32c401f03"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e777-984c-04bd456001f9", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e777-984c-04bd456001f9"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e739-984c-04bd456001f8", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e739-984c-04bd456001f8"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JYkZ0SURUS2wwdUJYbVhqLXpsWnpRP2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f462f0b7-df6d-4b22-ad0d-ba7ca67688f5"}, "ParticipantsUpdated": {"id": "97709a95-7f80-4ea7-8318-7c04f295170a", "source": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e777-984c-04bd456001f9", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e777-984c-04bd456001f9"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e739-984c-04bd456001f8", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e739-984c-04bd456001f8"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 3, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-4947-47f0-bfee-c61ebd7011e1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JYkZ0SURUS2wwdUJYbVhqLXpsWnpRP2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "f462f0b7-df6d-4b22-ad0d-ba7ca67688f5", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T17:53:52.5463063+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1"}, "CallConnected": {"id": "8f955b13-9563-45f1-85e1-9308cacb7f43", "source": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-4947-47f0-bfee-c61ebd7011e1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JYkZ0SURUS2wwdUJYbVhqLXpsWnpRP2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "f462f0b7-df6d-4b22-ad0d-ba7ca67688f5", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T17:53:47.8264531+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1"}, "CancelAddParticipantSucceeded": {"id": "f8452665-14ab-418b-829b-4b640d59bff3", "source": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1", "type": "Microsoft.Communication.CancelAddParticipantSucceeded", "data": {"invitationId": "8b4a7079-85be-49ae-b503-de5a17538783", "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 5300, "message": "addParticipants failed for participant 8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e7d1-984c-04bd456001fa. Underlying reason: The conversation has ended. DiagCode: 0#5300.@"}, "callConnectionId": "08006680-4947-47f0-bfee-c61ebd7011e1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JYkZ0SURUS2wwdUJYbVhqLXpsWnpRP2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "f462f0b7-df6d-4b22-ad0d-ba7ca67688f5", "publicEventType": "Microsoft.Communication.CancelAddParticipantSucceeded"}, "time": "2025-05-28T17:53:54.2872002+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1"}, "CallDisconnected": {"id": "0965595d-0da4-4716-a0d9-5348f2d81b44", "source": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-4947-47f0-bfee-c61ebd7011e1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JYkZ0SURUS2wwdUJYbVhqLXpsWnpRP2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "f462f0b7-df6d-4b22-ad0d-ba7ca67688f5", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T17:53:55.3667219+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json index 5c550dd8bf76..0e701663181b 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-4391-2c8a-0848220052c2", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-4391-2c8a-0848220052c2"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-42d5-1000-343a0d000378", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-42d5-1000-343a0d000378"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9sLWRYSzY5YzkwYVZNaGgwLUhIa2hRP2k9MTAtMTI4LTIxMi0yNTImZT02Mzg4MzQxMjc3MDAyNDU1Njk=", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "9d7a621f-29dc-408d-b412-9f5f3e726c4f"}, "ParticipantsUpdated": {"id": "a38ec35e-cdc6-4358-8b9e-01cdb20e8761", "source": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-42d5-1000-343a0d000378", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-42d5-1000-343a0d000378"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-4391-2c8a-0848220052c2", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-4391-2c8a-0848220052c2"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "53006980-9b40-4b17-b3b7-5a04ab724461", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9sLWRYSzY5YzkwYVZNaGgwLUhIa2hRP2k9MTAtMTI4LTIxMi0yNTImZT02Mzg4MzQxMjc3MDAyNDU1Njk=", "correlationId": "9d7a621f-29dc-408d-b412-9f5f3e726c4f", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:50:39.2281416+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461"}, "CallConnected": {"id": "d81081f1-95cd-49c1-bec7-8c1904dd8beb", "source": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "53006980-9b40-4b17-b3b7-5a04ab724461", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9sLWRYSzY5YzkwYVZNaGgwLUhIa2hRP2k9MTAtMTI4LTIxMi0yNTImZT02Mzg4MzQxMjc3MDAyNDU1Njk=", "correlationId": "9d7a621f-29dc-408d-b412-9f5f3e726c4f", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:50:39.3712999+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461"}, "CallDisconnected": {"id": "d6584ba0-280d-4063-9548-02bde0f34f05", "source": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "53006980-9b40-4b17-b3b7-5a04ab724461", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9sLWRYSzY5YzkwYVZNaGgwLUhIa2hRP2k9MTAtMTI4LTIxMi0yNTImZT02Mzg4MzQxMjc3MDAyNDU1Njk=", "correlationId": "9d7a621f-29dc-408d-b412-9f5f3e726c4f", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:50:41.4261411+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/53006980-9b40-4b17-b3b7-5a04ab724461"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-9024-984c-04bd456001f7", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-9024-984c-04bd456001f7"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-8fcf-984c-04bd456001f6", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-8fcf-984c-04bd456001f6"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fNnBGdFlrUnQwV0ZuYmlacGVCcFF3P2k9MTAtMTI4LTE0Mi0xODQmZT02Mzg4MzY0MDg1NDI0MDQwNDA=", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "bdc8300f-0ecf-4e29-806d-a787b0b41b7c"}, "ParticipantsUpdated": {"id": "4ea66ab3-33ab-427a-9d00-ed6545685727", "source": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-8fcf-984c-04bd456001f6", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-8fcf-984c-04bd456001f6"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-9024-984c-04bd456001f7", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-9024-984c-04bd456001f7"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "24006580-91de-482c-9c14-5f9d75eb74f9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fNnBGdFlrUnQwV0ZuYmlacGVCcFF3P2k9MTAtMTI4LTE0Mi0xODQmZT02Mzg4MzY0MDg1NDI0MDQwNDA=", "correlationId": "bdc8300f-0ecf-4e29-806d-a787b0b41b7c", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T17:53:33.511774+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9"}, "CallConnected": {"id": "933c31ce-8c06-43f2-83c9-a7e5b4956672", "source": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "24006580-91de-482c-9c14-5f9d75eb74f9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fNnBGdFlrUnQwV0ZuYmlacGVCcFF3P2k9MTAtMTI4LTE0Mi0xODQmZT02Mzg4MzY0MDg1NDI0MDQwNDA=", "correlationId": "bdc8300f-0ecf-4e29-806d-a787b0b41b7c", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T17:53:33.6290594+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9"}, "CallDisconnected": {"id": "bc20ba92-c085-485a-865f-432a98f8c056", "source": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "24006580-91de-482c-9c14-5f9d75eb74f9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fNnBGdFlrUnQwV0ZuYmlacGVCcFF3P2k9MTAtMTI4LTE0Mi0xODQmZT02Mzg4MzY0MDg1NDI0MDQwNDA=", "correlationId": "bdc8300f-0ecf-4e29-806d-a787b0b41b7c", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T17:53:35.9347346+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json index d77cebce6f6a..9c98bf805159 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-aff0-2c8a-0848220052c9", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-aff0-2c8a-0848220052c9"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-afb6-2c8a-0848220052c8", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-afb6-2c8a-0848220052c8"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "ec4cad40-7c18-4c45-b872-1262290aae35"}, "ParticipantsUpdated": {"id": "6c8ab5cc-dc6b-41a2-bfa5-7e7e9029b533", "source": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-afb6-2c8a-0848220052c8", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-afb6-2c8a-0848220052c8"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-aff0-2c8a-0848220052c9", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b5-aff0-2c8a-0848220052c9"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 11, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-57e5-4cd5-b9e9-c926d654b825", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ec4cad40-7c18-4c45-b872-1262290aae35", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:51:17.2076704+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825"}, "CallConnected": {"id": "510e8422-baa4-4095-9f2a-f478481888ab", "source": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-57e5-4cd5-b9e9-c926d654b825", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ec4cad40-7c18-4c45-b872-1262290aae35", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:51:07.0782226+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825"}, "RecordingStateChanged": {"id": "0f3c0bf8-3778-453a-b809-564bb3a2a9fb", "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC0wNjFkLTQ1NGYtODI4OS00NzVlZjEzYTdiODUiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiJiZTYyYmZlZC0xNmQyLTQ3MGYtOWI1Mi1iY2RlODYxNDkzY2YifQ/RecordingStateChanged", "type": "Microsoft.Communication.RecordingStateChanged", "data": {"recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC0wNjFkLTQ1NGYtODI4OS00NzVlZjEzYTdiODUiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiJiZTYyYmZlZC0xNmQyLTQ3MGYtOWI1Mi1iY2RlODYxNDkzY2YifQ", "state": "active", "startDateTime": "2025-05-21T21:51:11.803884+00:00", "recordingKind": "azureCommunicationServices", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-061d-454f-8289-475ef13a7b85", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ec4cad40-7c18-4c45-b872-1262290aae35", "publicEventType": "Microsoft.Communication.RecordingStateChanged"}, "time": "2025-05-21T21:51:12.1467222+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC0wNjFkLTQ1NGYtODI4OS00NzVlZjEzYTdiODUiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiJiZTYyYmZlZC0xNmQyLTQ3MGYtOWI1Mi1iY2RlODYxNDkzY2YifQ/RecordingStateChanged"}, "CallDisconnected": {"id": "0e206784-452a-41c7-8e8c-7eae393aca9f", "source": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-57e5-4cd5-b9e9-c926d654b825", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9RZTR0Y2xseGdraWwzanF0a2IwbnZnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ec4cad40-7c18-4c45-b872-1262290aae35", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:51:20.2909944+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-57e5-4cd5-b9e9-c926d654b825"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-333d-984c-04bd456001fc", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-333d-984c-04bd456001fc"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-32f5-984c-04bd456001fb", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-32f5-984c-04bd456001fb"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e1e9e609-32f9-42e8-93f1-a0221e49540e"}, "ParticipantsUpdated": {"id": "a9209bc3-e707-47d4-8236-0829d9f86bf6", "source": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-333d-984c-04bd456001fc", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-333d-984c-04bd456001fc"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-32f5-984c-04bd456001fb", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-32f5-984c-04bd456001fb"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 10, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-af55-44ae-8bcd-155dd5d6e4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "e1e9e609-32f9-42e8-93f1-a0221e49540e", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T17:54:18.742348+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3"}, "CallConnected": {"id": "05eadceb-30c8-46bf-b69c-0c844808622d", "source": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-af55-44ae-8bcd-155dd5d6e4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "e1e9e609-32f9-42e8-93f1-a0221e49540e", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T17:54:07.7031066+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3"}, "RecordingStateChanged": {"id": "4af75f58-f160-4382-9893-e6de4d0b98f0", "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC1kYmUxLTQ5YTYtYTZiYi05MTRhODE0NmViNTkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2MTIzMjk3YS00MDIxLTQxZmQtYjRlMi1lMDU3YTMzMjI3OGMifQ/RecordingStateChanged", "type": "Microsoft.Communication.RecordingStateChanged", "data": {"recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC1kYmUxLTQ5YTYtYTZiYi05MTRhODE0NmViNTkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2MTIzMjk3YS00MDIxLTQxZmQtYjRlMi1lMDU3YTMzMjI3OGMifQ", "state": "inactive", "startDateTime": "0001-01-01T00:00:00+00:00", "recordingKind": "azureCommunicationServices", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-dbe1-49a6-a6bb-914a8146eb59", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "e1e9e609-32f9-42e8-93f1-a0221e49540e", "publicEventType": "Microsoft.Communication.RecordingStateChanged"}, "time": "2025-05-28T17:54:13.6015841+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC1kYmUxLTQ5YTYtYTZiYi05MTRhODE0NmViNTkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2MTIzMjk3YS00MDIxLTQxZmQtYjRlMi1lMDU3YTMzMjI3OGMifQ/RecordingStateChanged"}, "CallDisconnected": {"id": "4f0565eb-b031-43ea-afba-fe792826c879", "source": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-af55-44ae-8bcd-155dd5d6e4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "e1e9e609-32f9-42e8-93f1-a0221e49540e", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T17:54:21.7997014+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json index 6bd7bccfd9d0..ac1383abcc14 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-995d-2c8a-0848220052d5", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-995d-2c8a-0848220052d5"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-98b7-2c8a-0848220052d4", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-98b7-2c8a-0848220052d4"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8xYXRJeDU2MktrRzBKR250OXVGVGh3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "4dee6198-ff01-4ac8-bf90-9728bae98fcd"}, "ParticipantsUpdated": {"id": "1626a3fb-7b3b-459b-818c-4e587b49592a", "source": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-98b7-2c8a-0848220052d4", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-98b7-2c8a-0848220052d4"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-995d-2c8a-0848220052d5", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-995d-2c8a-0848220052d5"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 6, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-6321-4a7d-9fae-ac074be77bb3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8xYXRJeDU2MktrRzBKR250OXVGVGh3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "4dee6198-ff01-4ac8-bf90-9728bae98fcd", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:52:16.2759739+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3"}, "CallConnected": {"id": "574c6f74-d605-4a8f-b97d-8bb170249294", "source": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-6321-4a7d-9fae-ac074be77bb3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8xYXRJeDU2MktrRzBKR250OXVGVGh3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "4dee6198-ff01-4ac8-bf90-9728bae98fcd", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:52:08.2370362+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3"}, "CallDisconnected": {"id": "f472391c-4d08-47e3-911f-2d0ecac1b965", "source": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-6321-4a7d-9fae-ac074be77bb3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8xYXRJeDU2MktrRzBKR250OXVGVGh3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "4dee6198-ff01-4ac8-bf90-9728bae98fcd", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:52:18.3896819+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6321-4a7d-9fae-ac074be77bb3"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f58-024c-04bd4560034e", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f58-024c-04bd4560034e"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f17-024c-04bd4560034d", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f17-024c-04bd4560034d"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hQnNlenE0TDQwbWFxQzdTNXM2Y1VBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e8b4718e-7630-424d-a03e-dce3ab7d0358"}, "ParticipantsUpdated": {"id": "6a8c3a52-c2a5-4eff-b2bc-065d543e30f5", "source": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f58-024c-04bd4560034e", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f58-024c-04bd4560034e"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f17-024c-04bd4560034d", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f17-024c-04bd4560034d"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 6, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-9528-4a4f-bd55-9a2448bd17d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hQnNlenE0TDQwbWFxQzdTNXM2Y1VBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "e8b4718e-7630-424d-a03e-dce3ab7d0358", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:13:08.4791546+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3"}, "CallConnected": {"id": "3a35046c-3930-4c7f-b0b0-eb8a95b180ae", "source": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-9528-4a4f-bd55-9a2448bd17d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hQnNlenE0TDQwbWFxQzdTNXM2Y1VBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "e8b4718e-7630-424d-a03e-dce3ab7d0358", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:13:00.2373884+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3"}, "CallDisconnected": {"id": "3fd6ed74-3340-482a-a9ce-fb126c86d8e5", "source": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-9528-4a4f-bd55-9a2448bd17d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hQnNlenE0TDQwbWFxQzdTNXM2Y1VBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "e8b4718e-7630-424d-a03e-dce3ab7d0358", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:13:10.663352+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json index 7b40c638a0cb..5c32cf320d89 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-57dd-2c8a-0848220052d0", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-57dd-2c8a-0848220052d0"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-5792-2c8a-0848220052cf", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-5792-2c8a-0848220052cf"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Kb2F5TXdjN3BVeXZiQW5CaWVQM1ZBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "6aecac60-531f-4d12-a2c3-3a0bcc3e3b47"}, "ParticipantsUpdated": {"id": "2bdc6049-54fc-4511-94de-45317aa76383", "source": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-57dd-2c8a-0848220052d0", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-57dd-2c8a-0848220052d0"}}, "isMuted": true, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-5792-2c8a-0848220052cf", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-5792-2c8a-0848220052cf"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 4, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-9f1c-4c9f-aceb-ad16cf2003d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Kb2F5TXdjN3BVeXZiQW5CaWVQM1ZBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "6aecac60-531f-4d12-a2c3-3a0bcc3e3b47", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:51:55.24495+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3"}, "CallConnected": {"id": "c9663b56-89a3-4350-9cac-c21b1f4e5a34", "source": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-9f1c-4c9f-aceb-ad16cf2003d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Kb2F5TXdjN3BVeXZiQW5CaWVQM1ZBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "6aecac60-531f-4d12-a2c3-3a0bcc3e3b47", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:51:49.7388316+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3"}, "CallDisconnected": {"id": "4aff2812-20a2-4d67-bd99-3c996c38e62a", "source": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-9f1c-4c9f-aceb-ad16cf2003d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Kb2F5TXdjN3BVeXZiQW5CaWVQM1ZBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "6aecac60-531f-4d12-a2c3-3a0bcc3e3b47", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:51:57.0455152+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-9f1c-4c9f-aceb-ad16cf2003d3"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-38b7-024c-04bd45600349", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-38b7-024c-04bd45600349"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-3871-024c-04bd45600348", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-3871-024c-04bd45600348"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90VC15YlJSQ0JVT0xqNVd3elM0MTR3P2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "42f6e501-3071-441d-91c6-cfbc22131456"}, "ParticipantsUpdated": {"id": "f81849cc-196f-4ad0-bcaa-f8ab19718484", "source": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-3871-024c-04bd45600348", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-3871-024c-04bd45600348"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-38b7-024c-04bd45600349", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-38b7-024c-04bd45600349"}}, "isMuted": true, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-ed12-4b4a-84de-195342fc26b5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90VC15YlJSQ0JVT0xqNVd3elM0MTR3P2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "42f6e501-3071-441d-91c6-cfbc22131456", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:12:47.3835083+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5"}, "CallConnected": {"id": "f6994e75-9b90-40ee-85f3-9e5a40fd2e92", "source": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-ed12-4b4a-84de-195342fc26b5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90VC15YlJSQ0JVT0xqNVd3elM0MTR3P2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "42f6e501-3071-441d-91c6-cfbc22131456", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:12:41.8733173+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5"}, "CallDisconnected": {"id": "c95f7382-4012-46d5-950e-3e9da228d0ee", "source": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-ed12-4b4a-84de-195342fc26b5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90VC15YlJSQ0JVT0xqNVd3elM0MTR3P2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "42f6e501-3071-441d-91c6-cfbc22131456", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:12:49.3377552+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json index f1e40d963a42..ad46c49b2eed 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c575-284a-04bd45605336", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c575-284a-04bd45605336"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c53a-284a-04bd45605335", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c53a-284a-04bd45605335"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801"}, "ParticipantsUpdated": {"id": "4992aee5-dc4d-4930-95f9-d075d78f6763", "source": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c53a-284a-04bd45605335", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c53a-284a-04bd45605335"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c575-284a-04bd45605336", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-c575-284a-04bd45605336"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-26d4-44ae-9c26-dcbf803fa1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:55:44.3792458+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7"}, "CallConnected": {"id": "0b97bbf1-b729-4aec-8fce-739c833aa1c8", "source": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-26d4-44ae-9c26-dcbf803fa1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:55:34.1998559+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7"}, "PlayStarted": {"id": "df404486-8763-4ea9-98e0-e71b1c913d39", "source": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-26d4-44ae-9c26-dcbf803fa1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:55:37.9767704+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7"}, "PlayCompleted": {"id": "e07003f1-85f5-4df1-8c2a-b173f5001272", "source": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-26d4-44ae-9c26-dcbf803fa1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:55:44.3479435+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7"}, "CallDisconnected": {"id": "1577e15c-fae0-4532-a7db-887524607d13", "source": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-26d4-44ae-9c26-dcbf803fa1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mSUpVTHN6TWRVNkVZNk96VWowQS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "e0135750-2496-4b27-af7d-8230fbce5801", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:55:44.7727167+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-26d4-44ae-9c26-dcbf803fa1a7"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ed3b-e541-09bd45607901", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ed3b-e541-09bd45607901"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ecf9-e541-09bd45607900", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ecf9-e541-09bd45607900"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c"}, "ParticipantsUpdated": {"id": "f0bfd995-8201-48b8-862a-76ee52695dab", "source": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ed3b-e541-09bd45607901", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ed3b-e541-09bd45607901"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ecf9-e541-09bd45607900", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ecf9-e541-09bd45607900"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "17006980-1230-4b0a-89f2-4a0ad34f33d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:16:55.9102942+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1"}, "CallConnected": {"id": "a5ca4e49-a430-431e-821c-eb73b1df94e5", "source": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "17006980-1230-4b0a-89f2-4a0ad34f33d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:16:45.1989074+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1"}, "PlayStarted": {"id": "f418f7f7-acf7-4a4c-a20f-3527a8db442d", "source": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "17006980-1230-4b0a-89f2-4a0ad34f33d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:16:49.5309875+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1"}, "PlayCompleted": {"id": "56f7d1be-c452-44a4-820a-cbba97bd658e", "source": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "17006980-1230-4b0a-89f2-4a0ad34f33d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:16:55.8868069+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1"}, "CallDisconnected": {"id": "c6a20819-645e-47bc-841d-ac47c6ceaad5", "source": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "17006980-1230-4b0a-89f2-4a0ad34f33d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:16:56.3974495+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json index 93803e1a9bbc..02e792fd4271 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-15c9-284a-04bd4560533f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-15c9-284a-04bd4560533f"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-158e-284a-04bd4560533e", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-158e-284a-04bd4560533e"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326"}, "ParticipantsUpdated": {"id": "1089b7db-904b-4461-92a4-fbac9dc45691", "source": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-158e-284a-04bd4560533e", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-158e-284a-04bd4560533e"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-15c9-284a-04bd4560533f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-15c9-284a-04bd4560533f"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-d045-4951-9c6b-776227a17b53", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:55:54.6400839+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53"}, "CallConnected": {"id": "a5e8df76-ea20-4314-a585-0fe89a5dd2c9", "source": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-d045-4951-9c6b-776227a17b53", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:55:54.7459431+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53"}, "PlayStarted": {"id": "dee7ecd2-5708-4a60-a1f8-532d15afc379", "source": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-d045-4951-9c6b-776227a17b53", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:55:57.1999412+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53"}, "PlayCompleted": {"id": "d638bd73-db6b-4d3d-9c42-ab486badc211", "source": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-d045-4951-9c6b-776227a17b53", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:56:03.5232177+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53"}, "CallDisconnected": {"id": "31c4b83c-40cc-4ba0-b626-364e286f2418", "source": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-d045-4951-9c6b-776227a17b53", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hdDBNX3VLUC1FZUhsWlRpUHRqRU9BP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "522ea998-ea8c-4953-8817-e6ea3c062326", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:56:03.9998297+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d045-4951-9c6b-776227a17b53"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d178-a842-04bd45600298", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d178-a842-04bd45600298"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d115-a842-04bd45600297", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d115-a842-04bd45600297"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6"}, "ParticipantsUpdated": {"id": "77edd7dc-7fd6-422a-b771-c8c8ed29d2b7", "source": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d178-a842-04bd45600298", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d178-a842-04bd45600298"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d115-a842-04bd45600297", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d115-a842-04bd45600297"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "1b006680-bf6a-4961-8028-6baabea395c5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:22:06.0377646+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5"}, "CallConnected": {"id": "a6896ee6-4fab-4ff0-90b7-49363b4d35e5", "source": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "1b006680-bf6a-4961-8028-6baabea395c5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:22:06.0533919+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5"}, "PlayStarted": {"id": "0957ee2c-9f6b-4cb2-b868-f2c3fdd3468b", "source": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "1b006680-bf6a-4961-8028-6baabea395c5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:22:08.8453223+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5"}, "PlayCompleted": {"id": "041be74b-d2b5-4acb-8b6a-1c1ea2e62efe", "source": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "1b006680-bf6a-4961-8028-6baabea395c5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:22:15.1160394+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5"}, "CallDisconnected": {"id": "9e089c62-b1a3-43b9-be96-3ab73ea5458c", "source": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "1b006680-bf6a-4961-8028-6baabea395c5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:22:15.482516+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json index 64ae294df38f..4eacee067e84 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-17ad-2c8a-0848220052cd", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-17ad-2c8a-0848220052cd"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-176d-2c8a-0848220052cc", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-176d-2c8a-0848220052cc"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127"}, "ParticipantsUpdated": {"id": "0aeda72d-17bc-423d-ad55-638b4cb0c45c", "source": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-176d-2c8a-0848220052cc", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-176d-2c8a-0848220052cc"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-17ad-2c8a-0848220052cd", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-17ad-2c8a-0848220052cd"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-ec5e-4079-ae03-940daaa13ddf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:51:32.984587+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf"}, "CallConnected": {"id": "5f6819d1-0ef7-4639-9948-df24798c00cd", "source": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-ec5e-4079-ae03-940daaa13ddf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:51:33.1284938+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf"}, "PlayStarted": {"id": "b8a857b8-e115-419d-9c18-7310f9080019", "source": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-ec5e-4079-ae03-940daaa13ddf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:51:35.7483978+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf"}, "PlayCompleted": {"id": "1b2cc931-9caa-4e1d-9ea6-fd7daf87dba3", "source": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-ec5e-4079-ae03-940daaa13ddf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:51:39.9731746+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf"}, "CallDisconnected": {"id": "108ef89f-f7b3-4281-bbd6-d407d740feeb", "source": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-ec5e-4079-ae03-940daaa13ddf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QTzAyenhpQ2lFQ1FDVFhuaHk2X1F3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "bc0f7cf2-ab4e-4757-8171-fe782681d127", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:51:40.4067163+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-ec5e-4079-ae03-940daaa13ddf"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-ef64-024c-04bd45600347", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-ef64-024c-04bd45600347"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-eeb8-0e04-343a0d007396", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-eeb8-0e04-343a0d007396"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6"}, "ParticipantsUpdated": {"id": "edb4853d-b20d-45b8-97de-6a7708573e55", "source": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-ef64-024c-04bd45600347", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-ef64-024c-04bd45600347"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-eeb8-0e04-343a0d007396", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-eeb8-0e04-343a0d007396"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "22006780-b1cf-49a1-ada8-f83894ceb4db", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:12:23.5062029+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db"}, "CallConnected": {"id": "265a6cb3-77c4-4ddb-9bde-a39852ebe4cb", "source": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "22006780-b1cf-49a1-ada8-f83894ceb4db", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:12:23.6206097+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db"}, "PlayStarted": {"id": "036630a1-4765-40b6-9a2d-64c7181eef03", "source": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "22006780-b1cf-49a1-ada8-f83894ceb4db", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:12:26.3880954+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db"}, "PlayCompleted": {"id": "714bf527-9834-4110-b14d-c444e7ee9528", "source": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "22006780-b1cf-49a1-ada8-f83894ceb4db", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:12:30.6313941+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db"}, "CallDisconnected": {"id": "6cc24549-5a7b-4e8c-8d3c-637e137845db", "source": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "22006780-b1cf-49a1-ada8-f83894ceb4db", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:12:31.1803395+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json index 098ea5879c5d..49f9b453421c 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b7ce-2c8a-0848220052f3", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b7ce-2c8a-0848220052f3"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b77d-2c8a-0848220052f2", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b77d-2c8a-0848220052f2"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf"}, "ParticipantsUpdated": {"id": "47df51ed-982e-4b29-989b-b94d774f9b2e", "source": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b7ce-2c8a-0848220052f3", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b7ce-2c8a-0848220052f3"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b77d-2c8a-0848220052f2", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-b77d-2c8a-0848220052f2"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-f91a-4129-980b-e64bd8758fbb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:54:42.1435594+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb"}, "CallConnected": {"id": "8b743c1d-ba04-4a5c-9595-8233c039b021", "source": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-f91a-4129-980b-e64bd8758fbb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:54:25.1220291+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb"}, "PlayStarted": {"id": "79548f98-54df-49d1-bdbe-423df11e84f9", "source": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-f91a-4129-980b-e64bd8758fbb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:54:29.2518481+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb"}, "PlayCompleted": {"id": "b37a5aba-ae54-4a21-ab49-1135895864de", "source": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-f91a-4129-980b-e64bd8758fbb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:54:42.1122754+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb"}, "CallDisconnected": {"id": "f3732a5b-7be6-447d-9ac8-b0a87ca1a008", "source": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-f91a-4129-980b-e64bd8758fbb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fRDhOODNIam9VMk9jOXpLS2diOUxRP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "73b65eef-3070-45d8-ae01-9580f07bcfaf", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:54:43.0410653+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-f91a-4129-980b-e64bd8758fbb"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bfdd-024c-04bd45600360", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bfdd-024c-04bd45600360"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bf99-024c-04bd4560035f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bf99-024c-04bd4560035f"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a"}, "ParticipantsUpdated": {"id": "2557834a-bad6-4860-bdb8-9c78cfd77df9", "source": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bf99-024c-04bd4560035f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bf99-024c-04bd4560035f"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bfdd-024c-04bd45600360", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bfdd-024c-04bd45600360"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-d377-4cba-9bac-42253e6ec353", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:15:44.5216274+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353"}, "CallConnected": {"id": "75209c06-f65e-4d3f-a85c-b5e493ab6b89", "source": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-d377-4cba-9bac-42253e6ec353", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:15:27.4044744+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353"}, "PlayStarted": {"id": "8729ce02-8af2-4b02-99c8-f9fe6888b698", "source": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-d377-4cba-9bac-42253e6ec353", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:15:31.6095655+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353"}, "PlayCompleted": {"id": "c1726e2c-c435-404e-bda0-52ca78ff98c2", "source": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-d377-4cba-9bac-42253e6ec353", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:15:44.5079158+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353"}, "CallDisconnected": {"id": "9a0d6bdf-15b3-488c-9c44-edafc16a9882", "source": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-d377-4cba-9bac-42253e6ec353", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:15:45.3419493+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json index 3fc1e49b103d..bcf64c52b7c4 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-551b-2c8a-0848220052eb", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-551b-2c8a-0848220052eb"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-54c8-2c8a-0848220052ea", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-54c8-2c8a-0848220052ea"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5"}, "ParticipantsUpdated": {"id": "3d897c4a-29f6-4dd8-9672-f07e324d807e", "source": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-551b-2c8a-0848220052eb", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-551b-2c8a-0848220052eb"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-54c8-2c8a-0848220052ea", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b8-54c8-2c8a-0848220052ea"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-6457-454d-a542-fa2d3f26e1cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:53:59.7352775+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd"}, "CallConnected": {"id": "233e5619-329b-4d90-8a39-59efaf87044b", "source": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-6457-454d-a542-fa2d3f26e1cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:53:59.9562365+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd"}, "PlayStarted": {"id": "cf3f77d9-d81d-4c3d-81a7-59ad5c45234f", "source": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-6457-454d-a542-fa2d3f26e1cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:54:02.3234287+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd"}, "PlayCompleted": {"id": "13154a2c-b8ee-41e1-a143-54aa57bb9296", "source": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-6457-454d-a542-fa2d3f26e1cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:54:15.1049491+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd"}, "CallDisconnected": {"id": "caa12e8e-2e17-4dad-b07a-195812adeed4", "source": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-6457-454d-a542-fa2d3f26e1cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi83Y2tpdllYbkQwcW82NERNdlVCMVlnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "ede4760d-de51-4a96-b659-7fc10b67d7e5", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:54:16.114084+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-6457-454d-a542-fa2d3f26e1cd"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5753-024c-04bd4560035d", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5753-024c-04bd4560035d"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5707-024c-04bd4560035c", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5707-024c-04bd4560035c"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5"}, "ParticipantsUpdated": {"id": "6b149976-9a2e-4d9d-b44b-0780475f4b2d", "source": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5707-024c-04bd4560035c", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5707-024c-04bd4560035c"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5753-024c-04bd4560035d", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5753-024c-04bd4560035d"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-b57d-479d-b07a-99003c971e17", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:15:00.5383962+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17"}, "CallConnected": {"id": "4b53ca42-62c2-4811-a761-f1c5d8d0ba7c", "source": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-b57d-479d-b07a-99003c971e17", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:15:00.6488632+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17"}, "PlayStarted": {"id": "0f891ec6-8ee2-4a7e-b4ce-bb19b1c2f0cb", "source": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-b57d-479d-b07a-99003c971e17", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:15:03.1697132+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17"}, "PlayCompleted": {"id": "4beb7822-3f5b-4f58-8337-3d7cded3a70d", "source": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-b57d-479d-b07a-99003c971e17", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:15:15.9742317+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17"}, "CallDisconnected": {"id": "6b30007c-5e0d-414f-a494-bf6ebaafebcd", "source": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-b57d-479d-b07a-99003c971e17", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:15:17.0195182+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json index 94016235108b..1a0e9469803f 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e941-2c8a-0848220052e6", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e941-2c8a-0848220052e6"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e90a-2c8a-0848220052e5", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e90a-2c8a-0848220052e5"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5"}, "ParticipantsUpdated": {"id": "8cd37279-5331-498d-9c8e-cd833bd9e67d", "source": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e941-2c8a-0848220052e6", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e941-2c8a-0848220052e6"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e90a-2c8a-0848220052e5", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-e90a-2c8a-0848220052e5"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-283c-43ca-80df-48f46ffe1697", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:53:48.9085116+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697"}, "CallConnected": {"id": "e289eeb9-1295-4ad8-bd1f-c92e15d115a0", "source": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-283c-43ca-80df-48f46ffe1697", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:53:32.0993611+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697"}, "PlayStarted": {"id": "0ee44644-7ada-4dbb-92ea-83dc5eace734", "source": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-283c-43ca-80df-48f46ffe1697", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:53:36.0549545+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697"}, "PlayCompleted": {"id": "394cff4f-3203-441d-bb42-15a7b4ffdb19", "source": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-283c-43ca-80df-48f46ffe1697", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:53:48.8766415+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697"}, "CallDisconnected": {"id": "b8b9b1a8-8b49-48d9-9adb-ff30eaee5ed1", "source": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-283c-43ca-80df-48f46ffe1697", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96M083Z2wwRVBFdTBJRnhGbldLS3R3P2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "1fc554ef-fb1f-4e16-90f1-d9a8e4ca11f5", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:53:49.8760233+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-283c-43ca-80df-48f46ffe1697"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e57d-024c-04bd4560035b", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e57d-024c-04bd4560035b"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e528-024c-04bd4560035a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e528-024c-04bd4560035a"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3"}, "ParticipantsUpdated": {"id": "245baa7e-00fb-4045-84e4-a28704a7a739", "source": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e57d-024c-04bd4560035b", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e57d-024c-04bd4560035b"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e528-024c-04bd4560035a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e528-024c-04bd4560035a"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-ab7e-4a63-935f-3b88388a8735", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:14:48.1992306+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735"}, "CallConnected": {"id": "a77c9815-df0d-4d51-aa22-8d7678a8c5eb", "source": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-ab7e-4a63-935f-3b88388a8735", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:14:31.8844736+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735"}, "PlayStarted": {"id": "d2df0517-52c6-43a4-a880-4a316472942f", "source": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-ab7e-4a63-935f-3b88388a8735", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:14:35.3704226+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735"}, "PlayCompleted": {"id": "e32ebb17-de6e-4f9d-9bc4-f194057cd505", "source": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-ab7e-4a63-935f-3b88388a8735", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:14:48.1673072+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735"}, "CallDisconnected": {"id": "26984f77-d6d9-456d-98b6-6a1996b4e749", "source": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-ab7e-4a63-935f-3b88388a8735", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:14:49.2571535+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json index 7708a39e29f2..f16c282e1e46 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8673-2c8a-0848220052e2", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8673-2c8a-0848220052e2"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8611-2c8a-0848220052e1", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8611-2c8a-0848220052e1"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94"}, "ParticipantsUpdated": {"id": "7762acf4-11d6-41a9-9196-ea935de8336d", "source": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8673-2c8a-0848220052e2", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8673-2c8a-0848220052e2"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8611-2c8a-0848220052e1", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-8611-2c8a-0848220052e1"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-2809-438d-b15e-f7315c098247", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:53:06.8015868+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247"}, "CallConnected": {"id": "668ddcd5-c168-411c-b8fc-c1013b2824d9", "source": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-2809-438d-b15e-f7315c098247", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:53:07.0697136+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247"}, "PlayStarted": {"id": "a50f1683-1243-4b2e-addf-33f2f4c56694", "source": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-2809-438d-b15e-f7315c098247", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:53:09.6516388+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247"}, "PlayCompleted": {"id": "208ea802-ac4f-445b-bec9-85550e46abd2", "source": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-2809-438d-b15e-f7315c098247", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:53:22.4390395+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247"}, "CallDisconnected": {"id": "8f1a228f-9ebb-426c-9721-944465b142a1", "source": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-2809-438d-b15e-f7315c098247", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9qdHBJQ1ZUX3VrcUdQTGtxY0FHSG9RP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "f4b5b6f4-751c-4fa0-ad5d-c678b875cb94", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:53:23.189907+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-2809-438d-b15e-f7315c098247"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7b03-024c-04bd45600357", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7b03-024c-04bd45600357"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7ab6-024c-04bd45600356", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7ab6-024c-04bd45600356"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b"}, "ParticipantsUpdated": {"id": "c5a9bc12-988c-482f-859f-fd49df81aa9d", "source": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7b03-024c-04bd45600357", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7b03-024c-04bd45600357"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7ab6-024c-04bd45600356", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7ab6-024c-04bd45600356"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-fdea-4c30-99eb-3c72bfaa358f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:14:04.5905595+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f"}, "CallConnected": {"id": "dd6f5d9e-599f-44c5-bbeb-4915104824f8", "source": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-fdea-4c30-99eb-3c72bfaa358f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:14:04.7065034+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f"}, "PlayStarted": {"id": "fef2e661-b3be-42c6-9249-ba7ee868a83b", "source": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-fdea-4c30-99eb-3c72bfaa358f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:14:07.4872003+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f"}, "PlayCompleted": {"id": "09d9a674-35eb-49d2-93a5-2fe649a699c3", "source": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-fdea-4c30-99eb-3c72bfaa358f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:14:20.2831006+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f"}, "CallDisconnected": {"id": "f7cf1a66-9a89-487c-a42b-9a76da20b351", "source": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-fdea-4c30-99eb-3c72bfaa358f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:14:21.0899735+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json index 9d7b681ff9f5..a61bab1f3f99 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-255a-284a-04bd4560531e", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-255a-284a-04bd4560531e"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-2519-284a-04bd4560531d", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-2519-284a-04bd4560531d"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2"}, "ParticipantsUpdated": {"id": "4e4749a0-33bf-4467-bd46-dda4847d54e7", "source": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-255a-284a-04bd4560531e", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-255a-284a-04bd4560531e"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-2519-284a-04bd4560531d", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-2519-284a-04bd4560531d"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "27006880-ab25-4c0b-9f69-fca066dfdd49", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:55:04.3449927+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49"}, "CallConnected": {"id": "3dcc8c32-5338-44c2-9689-0d7636d62dbf", "source": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "27006880-ab25-4c0b-9f69-fca066dfdd49", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:54:53.3226867+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49"}, "PlayStarted": {"id": "9c529c3d-edf6-4b89-803f-89a14b608b26", "source": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "27006880-ab25-4c0b-9f69-fca066dfdd49", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:54:57.6805747+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49"}, "PlayCompleted": {"id": "b29d66d4-7276-41ac-89e4-96196770da3e", "source": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "27006880-ab25-4c0b-9f69-fca066dfdd49", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:55:04.3223361+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49"}, "CallDisconnected": {"id": "0ca8fa50-88f7-414e-94a5-2b467b7dc3a6", "source": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "27006880-ab25-4c0b-9f69-fca066dfdd49", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9LTFE5cm1uX3UwcTl0OUFXbHhpemFBP2k9MTAtNjAtMTAxLTE0OSZlPTYzODgzNDUzNTEzODcyNzM4Mg==", "correlationId": "e680c0c3-32c3-480f-806c-57a2443433f2", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:55:05.0085797+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/27006880-ab25-4c0b-9f69-fca066dfdd49"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-3632-024c-04bd45600364", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-3632-024c-04bd45600364"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-35f3-024c-04bd45600363", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-35f3-024c-04bd45600363"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30"}, "ParticipantsUpdated": {"id": "b7711d16-b6f1-4730-9aa4-2abc2e3782ab", "source": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-35f3-024c-04bd45600363", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-35f3-024c-04bd45600363"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-3632-024c-04bd45600364", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-3632-024c-04bd45600364"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-cba9-4ab8-a386-15ed38e3f4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:16:09.9295905+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3"}, "CallConnected": {"id": "edde4ea8-19bc-42cf-b242-6e08f0709dc8", "source": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-cba9-4ab8-a386-15ed38e3f4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:15:57.9401351+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3"}, "PlayStarted": {"id": "fc58baf3-4004-41d1-a589-614e66151d34", "source": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-cba9-4ab8-a386-15ed38e3f4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:16:03.2228025+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3"}, "PlayCompleted": {"id": "49f8ac06-cd05-4441-be1f-f8fc915ba61c", "source": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-cba9-4ab8-a386-15ed38e3f4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:16:09.9040564+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3"}, "CallDisconnected": {"id": "0173d82d-5040-464f-bcc9-51f3c73da7a6", "source": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-cba9-4ab8-a386-15ed38e3f4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:16:10.1238066+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json index ee8c73732049..9d1c6592ffdf 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7ac4-284a-04bd4560532b", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7ac4-284a-04bd4560532b"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7a74-284a-04bd4560532a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7a74-284a-04bd4560532a"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844"}, "ParticipantsUpdated": {"id": "9861cac8-6abc-433f-a962-d712df528551", "source": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7a74-284a-04bd4560532a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7a74-284a-04bd4560532a"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7ac4-284a-04bd4560532b", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b9-7ac4-284a-04bd4560532b"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-6495-4427-ad91-828b87c06f67", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:55:14.7635024+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67"}, "CallConnected": {"id": "5ea527d0-f8ae-4112-bb6a-8eccca3b7e1a", "source": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-6495-4427-ad91-828b87c06f67", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:55:14.8847347+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67"}, "PlayStarted": {"id": "03b9d489-1aef-4130-9384-d0c4a17cbfab", "source": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-6495-4427-ad91-828b87c06f67", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:55:17.4408079+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67"}, "PlayCompleted": {"id": "c76730e6-e376-4063-8692-9a9242c33260", "source": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-6495-4427-ad91-828b87c06f67", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-21T21:55:24.0110484+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67"}, "CallDisconnected": {"id": "c72e7b0e-8356-43a1-ba6b-e249879b2fa5", "source": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-6495-4427-ad91-828b87c06f67", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oYjRSZjhIdElrSzN5VHVIZkZGcS1nP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "9651a1a5-82a3-4249-8292-782d377c7844", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:55:25.1931939+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-6495-4427-ad91-828b87c06f67"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-9683-024c-04bd45600367", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-9683-024c-04bd45600367"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-962f-024c-04bd45600366", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-962f-024c-04bd45600366"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222"}, "ParticipantsUpdated": {"id": "26725989-8874-49be-86f5-2684c23f3dc4", "source": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-962f-024c-04bd45600366", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-962f-024c-04bd45600366"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-9683-024c-04bd45600367", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-9683-024c-04bd45600367"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-5851-4ad4-979c-8fae97e4d2e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:16:23.141692+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5"}, "CallConnected": {"id": "90028e5b-4007-4971-a258-d77a1b5b6287", "source": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-5851-4ad4-979c-8fae97e4d2e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:16:23.2706233+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5"}, "PlayStarted": {"id": "c0befa06-8349-4d0c-a9ff-d254dc04f0cc", "source": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-5851-4ad4-979c-8fae97e4d2e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:16:26.0977123+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5"}, "PlayCompleted": {"id": "76a21b6d-0509-41a9-a6bf-9a1bfa2cd588", "source": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-5851-4ad4-979c-8fae97e4d2e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:16:32.666055+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5"}, "CallDisconnected": {"id": "2106b674-6da0-4b7c-af7b-3f7bdccf4055", "source": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-5851-4ad4-979c-8fae97e4d2e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:16:33.744575+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json index 960f992a225a..3ffa9e27d304 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-1976-284a-04bd45605355", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-1976-284a-04bd45605355"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-18bd-284a-04bd45605354", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-18bd-284a-04bd45605354"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb"}, "ParticipantsUpdated": {"id": "74998ec9-7b62-4897-b39b-fd1c826aa4eb", "source": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-18bd-284a-04bd45605354", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-18bd-284a-04bd45605354"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-1976-284a-04bd45605355", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94bb-1976-284a-04bd45605355"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-907f-40f2-8a7f-43d214db64cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:57:10.6550845+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb"}, "CallConnected": {"id": "7f8757ed-e514-4f75-b15d-f1eb9806beff", "source": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-907f-40f2-8a7f-43d214db64cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:57:02.2539208+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb"}, "PlayStarted": {"id": "02636404-a1b4-4344-befd-3cc2a33188be", "source": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-907f-40f2-8a7f-43d214db64cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:57:06.3225448+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb"}, "PlayFailed": {"id": "fd3bd900-a088-445b-89ed-160c4e852c30", "source": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "32006680-907f-40f2-8a7f-43d214db64cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-21T21:57:10.6260487+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb"}, "CallDisconnected": {"id": "ad6731e2-7f86-4b61-bc78-21ae5c768958", "source": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-907f-40f2-8a7f-43d214db64cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CRXc5SUE4MGIwbVUwWUtqOE0zR3lRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "8141bd5d-fe31-4a94-89a5-b46cbe9484fb", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:57:11.1453862+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-907f-40f2-8a7f-43d214db64cb"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-218c-e541-09bd4560791f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-218c-e541-09bd4560791f"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-2148-e541-09bd4560791e", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-2148-e541-09bd4560791e"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e"}, "ParticipantsUpdated": {"id": "4ce49d8b-09cb-4ad5-bc8b-b2b8b5435e6f", "source": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-2148-e541-09bd4560791e", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-2148-e541-09bd4560791e"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-218c-e541-09bd4560791f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-218c-e541-09bd4560791f"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "17006980-c1e1-4737-a37f-7b82998be4ed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:19:23.3083535+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed"}, "CallConnected": {"id": "e1c9e3d6-a61e-4d24-b846-96f2a42328d1", "source": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "17006980-c1e1-4737-a37f-7b82998be4ed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:19:13.7345991+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed"}, "PlayStarted": {"id": "c30b90e6-907d-41d6-9848-0ee4248588cd", "source": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "17006980-c1e1-4737-a37f-7b82998be4ed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:19:18.9653301+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed"}, "PlayFailed": {"id": "6ca8b59e-d8c8-4b46-972f-1d18163e4f74", "source": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "17006980-c1e1-4737-a37f-7b82998be4ed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-28T18:19:23.2926753+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed"}, "CallDisconnected": {"id": "f995f213-82b3-48b5-9127-52de7b1a0d54", "source": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "17006980-c1e1-4737-a37f-7b82998be4ed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:19:23.7339638+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json index 009f3fec0f05..3d23728bbe41 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d64-284a-04bd4560534a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d64-284a-04bd4560534a"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d27-284a-04bd45605349", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d27-284a-04bd45605349"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d"}, "ParticipantsUpdated": {"id": "d73594ca-0949-4971-a2c1-ad5226f26ad3", "source": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d64-284a-04bd4560534a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d64-284a-04bd4560534a"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d27-284a-04bd45605349", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-8d27-284a-04bd45605349"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-e64d-4e04-91fd-82e573c3ae0b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:56:25.7361222+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b"}, "CallConnected": {"id": "67dde893-c556-4791-8d1f-e0b81ee8d0b3", "source": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-e64d-4e04-91fd-82e573c3ae0b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:56:25.8467881+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b"}, "PlayStarted": {"id": "1d3a6d9f-4cdd-4b6d-8f0e-9375ae953995", "source": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "32006680-e64d-4e04-91fd-82e573c3ae0b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-21T21:56:29.2036607+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b"}, "PlayFailed": {"id": "3f974918-e9f2-40c4-8a37-a201bcbf7c95", "source": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "32006680-e64d-4e04-91fd-82e573c3ae0b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-21T21:56:33.4351562+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b"}, "CallDisconnected": {"id": "f2eb7c98-8e9f-4b6b-a13a-493364f2c697", "source": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-e64d-4e04-91fd-82e573c3ae0b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nejZEcnd0Uy1FbXlsZDlzdlV3M0RnP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "d85199f8-2c6d-47ff-9b88-bbc28c972d5d", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:56:34.1669448+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-e64d-4e04-91fd-82e573c3ae0b"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-603e-e541-09bd45607913", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-603e-e541-09bd45607913"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-5fe9-e541-09bd45607912", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-5fe9-e541-09bd45607912"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446"}, "ParticipantsUpdated": {"id": "438388d6-f14c-48a5-86f6-30d9c9b62b06", "source": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-603e-e541-09bd45607913", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-603e-e541-09bd45607913"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-5fe9-e541-09bd45607912", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-5fe9-e541-09bd45607912"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "17006980-f539-4bd7-87bb-922b42fe67cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:18:29.3744803+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd"}, "CallConnected": {"id": "19257177-3a57-42b6-bc2c-b5532086dd36", "source": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "17006980-f539-4bd7-87bb-922b42fe67cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:18:29.5747287+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd"}, "PlayStarted": {"id": "8520bfc1-b1ff-4811-9ac3-d4c81b439106", "source": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "17006980-f539-4bd7-87bb-922b42fe67cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:18:32.6833357+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd"}, "PlayFailed": {"id": "d9d12e91-47c8-4cea-af33-14a3381f175b", "source": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "17006980-f539-4bd7-87bb-922b42fe67cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-28T18:18:36.9234309+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd"}, "CallDisconnected": {"id": "eee0b428-f8df-4861-865c-bbd83b6532e1", "source": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "17006980-f539-4bd7-87bb-922b42fe67cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:18:37.4558217+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json index fb5b37a680f0..dc6b56673da8 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d414-284a-04bd45605350", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d414-284a-04bd45605350"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d3d6-284a-04bd4560534f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d3d6-284a-04bd4560534f"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9ualc0cGc1RG5FT0VTUm9XMGtQMjRBP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "794fe5e3-d22e-4b67-acf9-70cec6b6bf87"}, "ParticipantsUpdated": {"id": "c00a25ee-dddb-4b39-89ba-e9ecf4e7f952", "source": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d414-284a-04bd45605350", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d414-284a-04bd45605350"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d3d6-284a-04bd4560534f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-d3d6-284a-04bd4560534f"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-d09d-4405-95d3-75a5fcbe5fdb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9ualc0cGc1RG5FT0VTUm9XMGtQMjRBP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "794fe5e3-d22e-4b67-acf9-70cec6b6bf87", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:56:49.1620788+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb"}, "CallConnected": {"id": "2d59c507-96cd-4590-851f-60eff2a42745", "source": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-d09d-4405-95d3-75a5fcbe5fdb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9ualc0cGc1RG5FT0VTUm9XMGtQMjRBP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "794fe5e3-d22e-4b67-acf9-70cec6b6bf87", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:56:44.6896984+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb"}, "PlayFailed": {"id": "2cf44b5c-175b-4a6e-bec8-5b734f7a5aa5", "source": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "32006680-d09d-4405-95d3-75a5fcbe5fdb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9ualc0cGc1RG5FT0VTUm9XMGtQMjRBP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "794fe5e3-d22e-4b67-acf9-70cec6b6bf87", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-21T21:56:49.1273409+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb"}, "CallDisconnected": {"id": "619b044a-9169-465c-bc87-eeae1d0452a4", "source": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-d09d-4405-95d3-75a5fcbe5fdb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9ualc0cGc1RG5FT0VTUm9XMGtQMjRBP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "794fe5e3-d22e-4b67-acf9-70cec6b6bf87", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:56:50.7381645+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-d09d-4405-95d3-75a5fcbe5fdb"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d0ae-e541-09bd4560791b", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d0ae-e541-09bd4560791b"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d06b-e541-09bd4560791a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d06b-e541-09bd4560791a"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8zeUFYNmFYdkIwLTBXckxZVm5BeWRBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "522222b0-77e9-482d-aaf3-de74afb6375d"}, "ParticipantsUpdated": {"id": "b39b448c-3ce7-42e6-b56f-93a0c82e6440", "source": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d0ae-e541-09bd4560791b", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d0ae-e541-09bd4560791b"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d06b-e541-09bd4560791a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d06b-e541-09bd4560791a"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "17006980-c1a4-42e7-9908-33e1e4239903", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8zeUFYNmFYdkIwLTBXckxZVm5BeWRBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "522222b0-77e9-482d-aaf3-de74afb6375d", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:18:55.6661772+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903"}, "CallConnected": {"id": "03fcdacd-5d9c-4613-bc36-9896aa451d10", "source": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "17006980-c1a4-42e7-9908-33e1e4239903", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8zeUFYNmFYdkIwLTBXckxZVm5BeWRBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "522222b0-77e9-482d-aaf3-de74afb6375d", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:18:51.1247588+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903"}, "PlayFailed": {"id": "81947e21-34b0-48f3-9f13-f1314742dfcf", "source": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "17006980-c1a4-42e7-9908-33e1e4239903", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8zeUFYNmFYdkIwLTBXckxZVm5BeWRBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "522222b0-77e9-482d-aaf3-de74afb6375d", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-28T18:18:55.6420363+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903"}, "CallDisconnected": {"id": "b98e00f3-525e-4e85-a6fd-37b7cb988535", "source": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "17006980-c1a4-42e7-9908-33e1e4239903", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8zeUFYNmFYdkIwLTBXckxZVm5BeWRBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "522222b0-77e9-482d-aaf3-de74afb6375d", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:18:57.3005368+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json index a7c832ff71b5..e5b968547005 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5db0-284a-04bd45605345", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5db0-284a-04bd45605345"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5d63-284a-04bd45605344", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5d63-284a-04bd45605344"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9YcU9FT1FyeGtVQ1Zod2tPb1UyNjFRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "4e67bcfe-e405-4fb1-a769-6dd047dff431"}, "CallConnected": {"id": "8c939eb4-fb8d-4a00-bc99-ce0e071ddde6", "source": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "32006680-9dee-4246-8734-269c7198e40b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9YcU9FT1FyeGtVQ1Zod2tPb1UyNjFRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "4e67bcfe-e405-4fb1-a769-6dd047dff431", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:56:13.2068633+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b"}, "ParticipantsUpdated": {"id": "aa1313fc-816a-46f4-bf2a-3d2dabd4b325", "source": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5d63-284a-04bd45605344", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5d63-284a-04bd45605344"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5db0-284a-04bd45605345", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94ba-5db0-284a-04bd45605345"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "32006680-9dee-4246-8734-269c7198e40b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9YcU9FT1FyeGtVQ1Zod2tPb1UyNjFRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "4e67bcfe-e405-4fb1-a769-6dd047dff431", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:56:13.1748075+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b"}, "PlayFailed": {"id": "953c1135-c419-454d-89b3-e5645777bb82", "source": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "32006680-9dee-4246-8734-269c7198e40b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9YcU9FT1FyeGtVQ1Zod2tPb1UyNjFRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "4e67bcfe-e405-4fb1-a769-6dd047dff431", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-21T21:56:15.6260259+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b"}, "CallDisconnected": {"id": "f858ba40-dd91-4b2f-8c95-480bb857c359", "source": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "32006680-9dee-4246-8734-269c7198e40b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9YcU9FT1FyeGtVQ1Zod2tPb1UyNjFRP2k9MTAtMTI4LTEzOC0xNyZlPTYzODgzNDA5OTg1ODEyNzYzOQ==", "correlationId": "4e67bcfe-e405-4fb1-a769-6dd047dff431", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:56:16.409471+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/32006680-9dee-4246-8734-269c7198e40b"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f694-e541-09bd4560790f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f694-e541-09bd4560790f"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f63a-e541-09bd4560790e", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f63a-e541-09bd4560790e"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QOXhPa2ZMVmdFeXo3VHNxbVVIbVp3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f791d5eb-7834-4fe4-93c6-525f740cc73b"}, "ParticipantsUpdated": {"id": "cebcf070-36b7-4be2-83af-f45c5746e0e4", "source": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f63a-e541-09bd4560790e", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f63a-e541-09bd4560790e"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f694-e541-09bd4560790f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f694-e541-09bd4560790f"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "17006980-5f82-4ee7-a045-84067f57f145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QOXhPa2ZMVmdFeXo3VHNxbVVIbVp3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "f791d5eb-7834-4fe4-93c6-525f740cc73b", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:18:02.530636+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145"}, "CallConnected": {"id": "9fb65d13-7413-450a-ab42-038581974780", "source": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "17006980-5f82-4ee7-a045-84067f57f145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QOXhPa2ZMVmdFeXo3VHNxbVVIbVp3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "f791d5eb-7834-4fe4-93c6-525f740cc73b", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:18:02.7036473+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145"}, "PlayFailed": {"id": "57365e62-fbe0-4781-b5b0-d7cfd86bcbad", "source": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "17006980-5f82-4ee7-a045-84067f57f145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QOXhPa2ZMVmdFeXo3VHNxbVVIbVp3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "f791d5eb-7834-4fe4-93c6-525f740cc73b", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-28T18:18:06.084366+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145"}, "CallDisconnected": {"id": "9b4402cc-dbbd-4064-8c5d-773ffeed7ae2", "source": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "17006980-5f82-4ee7-a045-84067f57f145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QOXhPa2ZMVmdFeXo3VHNxbVVIbVp3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "f791d5eb-7834-4fe4-93c6-525f740cc73b", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:18:06.8592141+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json index 68c62c335017..d8ffcce0dd69 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ec2c-2c8a-0848220052da", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ec2c-2c8a-0848220052da"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ebd0-2c8a-0848220052d9", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ebd0-2c8a-0848220052d9"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f"}, "ParticipantsUpdated": {"id": "367b42a9-148f-4731-8f7f-da2d4ce44c2a", "source": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ec2c-2c8a-0848220052da", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ec2c-2c8a-0848220052da"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ebd0-2c8a-0848220052d9", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b6-ebd0-2c8a-0848220052d9"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-c372-4e7f-b3b4-a706fdfae6a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:52:27.4771446+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7"}, "CallConnected": {"id": "6d9ebf3e-9bab-4ff1-a068-3906e8af1c3c", "source": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-c372-4e7f-b3b4-a706fdfae6a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:52:27.6436421+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7"}, "MediaStreamingStarted": {"id": "88ceab77-02f6-4a20-aaae-81db13989433", "source": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7", "type": "Microsoft.Communication.MediaStreamingStarted", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStarted", "mediaStreamingStatusDetails": "subscriptionStarted"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-c372-4e7f-b3b4-a706fdfae6a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f", "publicEventType": "Microsoft.Communication.MediaStreamingStarted"}, "time": "2025-05-21T21:52:29.8864984+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7"}, "MediaStreamingStopped": {"id": "44c17ef4-243c-4119-9b85-7dee8315c38c", "source": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7", "type": "Microsoft.Communication.MediaStreamingStopped", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStopped", "mediaStreamingStatusDetails": "subscriptionStopped"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-c372-4e7f-b3b4-a706fdfae6a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f", "publicEventType": "Microsoft.Communication.MediaStreamingStopped"}, "time": "2025-05-21T21:52:34.097691+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7"}, "CallDisconnected": {"id": "3ceb0ffe-38d7-43f0-8194-9c7398045cfa", "source": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-c372-4e7f-b3b4-a706fdfae6a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8yTm5ITGRQU3AwZXdWQzk0NXN6Y2JBP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "b87dc46e-0513-425c-a834-ece5dbe9998f", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:52:35.2129027+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-c372-4e7f-b3b4-a706fdfae6a7"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d2b4-024c-04bd45600351", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d2b4-024c-04bd45600351"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d26f-024c-04bd45600350", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d26f-024c-04bd45600350"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748"}, "ParticipantsUpdated": {"id": "8387ab99-06b8-4718-aeb6-7a6adc840971", "source": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d26f-024c-04bd45600350", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d26f-024c-04bd45600350"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d2b4-024c-04bd45600351", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d2b4-024c-04bd45600351"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-45df-4af9-8520-623e28300fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:13:21.2998847+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7"}, "CallConnected": {"id": "d445608e-d193-42e6-8275-dca74fe2b19a", "source": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-45df-4af9-8520-623e28300fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:13:21.4559648+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7"}, "MediaStreamingStarted": {"id": "66b1d36e-79e2-4d51-acbc-4ee3882d51cf", "source": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7", "type": "Microsoft.Communication.MediaStreamingStarted", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStarted", "mediaStreamingStatusDetails": "subscriptionStarted"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-45df-4af9-8520-623e28300fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748", "publicEventType": "Microsoft.Communication.MediaStreamingStarted"}, "time": "2025-05-28T18:13:23.8563398+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7"}, "MediaStreamingStopped": {"id": "008e78c7-47de-48d0-9689-9c28fe52fa34", "source": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7", "type": "Microsoft.Communication.MediaStreamingStopped", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStopped", "mediaStreamingStatusDetails": "subscriptionStopped"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-45df-4af9-8520-623e28300fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748", "publicEventType": "Microsoft.Communication.MediaStreamingStopped"}, "time": "2025-05-28T18:13:28.0879727+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7"}, "CallDisconnected": {"id": "f3203c00-b854-4cb6-9a59-7cfb5e47a6b2", "source": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-45df-4af9-8520-623e28300fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:13:29.2487248+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json index 2292747370a9..b02c0b49da35 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2db7-2c8a-0848220052de", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2db7-2c8a-0848220052de"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2d65-2c8a-0848220052dd", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2d65-2c8a-0848220052dd"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d"}, "ParticipantsUpdated": {"id": "93d94fad-7bc2-45dd-9468-949cc50e2e74", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2db7-2c8a-0848220052de", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2db7-2c8a-0848220052de"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2d65-2c8a-0848220052dd", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-94b7-2d65-2c8a-0848220052dd"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-21T21:52:44.0775693+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}, "CallConnected": {"id": "8cf61c9a-9829-4973-a90e-080533a313ff", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-21T21:52:44.2879541+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}, "TranscriptionStarted": {"id": "82793b30-cfdb-4faf-a44f-4150ef9fe39b", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.TranscriptionStarted", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStarted", "transcriptionStatusDetails": "subscriptionStarted"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.TranscriptionStarted"}, "time": "2025-05-21T21:52:46.5870024+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}, "TranscriptionUpdated": {"id": "d4e6a60a-b896-4593-bf61-1548450d17d4", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.TranscriptionUpdated", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionUpdated", "transcriptionStatusDetails": "transcriptionLocaleUpdated"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.TranscriptionUpdated"}, "time": "2025-05-21T21:52:50.6302858+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}, "TranscriptionStopped": {"id": "b365a87e-2dc9-4ab0-b094-cb353dd468ca", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.TranscriptionStopped", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStopped", "transcriptionStatusDetails": "subscriptionStopped"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.TranscriptionStopped"}, "time": "2025-05-21T21:52:56.7807446+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}, "CallDisconnected": {"id": "171e6a99-fa2e-4917-9298-a815b0b3c0ea", "source": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-a6ec-4300-9ddf-c80a39e4d4d9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JcVNwazQzdzBFdW9TamdDdG1fR0lnP2k9MTAtNjAtMTI0LTE1NSZlPTYzODgzMjgxMjU3NzI1MzEwNQ==", "correlationId": "c45788b5-4ab2-4e2c-ac88-374cf4403f1d", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-21T21:52:57.8754329+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-a6ec-4300-9ddf-c80a39e4d4d9"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1b1e-024c-04bd45600354", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1b1e-024c-04bd45600354"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1adb-024c-04bd45600353", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1adb-024c-04bd45600353"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189"}, "ParticipantsUpdated": {"id": "ccf56956-7cf8-40f0-a89e-55172efe08da", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1adb-024c-04bd45600353", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1adb-024c-04bd45600353"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1b1e-024c-04bd45600354", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1b1e-024c-04bd45600354"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:13:39.8523893+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}, "CallConnected": {"id": "77c5f192-6963-4e02-84f1-351b9bbda2f0", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:13:39.9939853+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}, "TranscriptionStarted": {"id": "b31dca4d-9b6f-4663-acc3-580f35824da9", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.TranscriptionStarted", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStarted", "transcriptionStatusDetails": "subscriptionStarted"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.TranscriptionStarted"}, "time": "2025-05-28T18:13:42.4057631+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}, "TranscriptionUpdated": {"id": "b1fa9ae6-2340-4500-ad03-d83ae886b4cf", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.TranscriptionUpdated", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionUpdated", "transcriptionStatusDetails": "transcriptionLocaleUpdated"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.TranscriptionUpdated"}, "time": "2025-05-28T18:13:46.5571326+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}, "TranscriptionStopped": {"id": "3d89894b-8514-48df-8c85-fc6af053156d", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.TranscriptionStopped", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStopped", "transcriptionStatusDetails": "subscriptionStopped"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.TranscriptionStopped"}, "time": "2025-05-28T18:13:52.6607191+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}, "CallDisconnected": {"id": "5d8f678f-4f18-4bc1-b589-bca2e5ce0d72", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:13:53.8324182+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}} \ No newline at end of file From 4a2ccee6d3a9ee8a3735ab03d4f2ed6046ce149a Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 28 May 2025 11:45:41 -0700 Subject: [PATCH 12/23] fixing the pipeline error --- .../CHANGELOG.md | 15 +++++++-------- .../communication/callautomation/__init__.py | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/CHANGELOG.md b/sdk/communication/azure-communication-callautomation/CHANGELOG.md index 48a68ab0cf62..e984f89b1480 100644 --- a/sdk/communication/azure-communication-callautomation/CHANGELOG.md +++ b/sdk/communication/azure-communication-callautomation/CHANGELOG.md @@ -1,14 +1,13 @@ # Release History -## 1.5.0b1 (Unreleased) - +## 1.4.0 (2025-06-02) + ### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes + +- Real-time transcription support +- Audio and DTMF streaming capabilities +- Integration of ConnectAPI for seamless streaming and transcription +- Improved media streaming with bidirectional functionality, allowing audio formats in both directions, currently supporting sample rates of 24kHz and 16kHz ## 1.4.0b1 (2024-11-22) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py index 27c239188895..02b1fca415d4 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py @@ -153,4 +153,4 @@ def __getattr__(name): from ._shared.models import _MicrosoftBotIdentifier return _MicrosoftBotIdentifier - raise AttributeError(f"module 'azure.communication.callautomation' has no attribute {name}") + raise AttributeError(f"module 'azure.communication.callautomation' has no attribute {name}") \ No newline at end of file From a12d039273d0e93dd7bcc824aaed2fbf47b2d9ae Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Wed, 28 May 2025 11:51:39 -0700 Subject: [PATCH 13/23] fixing lint error --- .../azure/communication/callautomation/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py index 02b1fca415d4..27c239188895 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py @@ -153,4 +153,4 @@ def __getattr__(name): from ._shared.models import _MicrosoftBotIdentifier return _MicrosoftBotIdentifier - raise AttributeError(f"module 'azure.communication.callautomation' has no attribute {name}") \ No newline at end of file + raise AttributeError(f"module 'azure.communication.callautomation' has no attribute {name}") From cfbad8fcfa93b06bbf7f1709cdfe7ccbb8a26734 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Fri, 30 May 2025 12:59:23 -0700 Subject: [PATCH 14/23] fixing the recording issue --- .../callautomation/aio/_call_automation_client_async.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py index 99b3b00610ad..0d26dd994299 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py @@ -705,11 +705,11 @@ async def start_recording( channel_affinity: List["ChannelAffinity"] = kwargs.pop("channel_affinity", None) or [] channel_affinity_internal = [c._to_generated() for c in channel_affinity] call_locator = build_call_locator( - args, kwargs.pop("call_locator", None), kwargs.pop("server_call_id", None), kwargs.pop("group_call_id", None), - kwargs.pop("room_id", None) + kwargs.pop("room_id", None), + args ) external_storage = build_external_storage(kwargs.pop("recording_storage", None)) start_recording_request = StartCallRecordingRequest( From 8907dc22076f114c4916f244a080db5da34c15d6 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Fri, 30 May 2025 16:52:39 -0700 Subject: [PATCH 15/23] fixing doc error --- .../communication/callautomation/_call_connection_client.py | 2 +- .../callautomation/aio/_call_connection_client_async.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py index c23aa375f03f..cc3960f86627 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_connection_client.py @@ -1052,7 +1052,7 @@ def unhold( :keyword operation_context: Value that can be used to track this call and its associated events. :paramtype operation_context: str or None :keyword operation_callback_url: Set a callback URL that overrides the default callback URL set - by CreateCall/AnswerCall for this operation. + by CreateCall/AnswerCall for this operation. This setup is per-action. If this is not set, the default callback URL set by CreateCall/AnswerCall will be used. :paramtype operation_callback_url: str or None diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py index b4debb8a6a21..c3937f130929 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_connection_client_async.py @@ -1076,9 +1076,9 @@ async def unhold( :keyword operation_context: Value that can be used to track this call and its associated events. :paramtype operation_context: str or None :keyword operation_callback_url: Set a callback URL that overrides the default callback URL set - by CreateCall/AnswerCall for this operation. - This setup is per-action. If this is not set, the default callback URL set by - CreateCall/AnswerCall will be used. + by CreateCall/AnswerCall for this operation. + This setup is per-action. If this is not set, the default callback URL set by + CreateCall/AnswerCall will be used. :paramtype operation_callback_url: str or None :return: None :rtype: None From a05414bf98b9a0f059a2bd1daa9880f2467c8016 Mon Sep 17 00:00:00 2001 From: v-saasomani Date: Wed, 4 Jun 2025 00:45:51 -0700 Subject: [PATCH 16/23] Created feature branch off of callautomation/release/ga5. Updated to ga6 apispec and made necessary changes. --- .../callautomation/_call_automation_client.py | 13 +- .../callautomation/_generated/_client.py | 2 +- .../_generated/_configuration.py | 4 +- .../callautomation/_generated/aio/_client.py | 2 +- .../_generated/aio/_configuration.py | 4 +- .../_generated/aio/operations/_operations.py | 2 +- .../_generated/models/__init__.py | 4 + .../_generated/models/_enums.py | 1 + .../_generated/models/_models.py | 208 ++++++++++++++++-- .../_generated/operations/_operations.py | 68 +++--- .../aio/_call_automation_client_async.py | 10 + .../swagger/SWAGGER.md | 4 +- 12 files changed, 260 insertions(+), 62 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py index 951306e5d018..39eebf62f77c 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py @@ -38,6 +38,7 @@ serialize_phone_identifier, serialize_identifier, serialize_communication_user_identifier, + serialize_msft_teams_app_identifier, build_call_locator, process_repeatability_first_sent, ) @@ -58,6 +59,7 @@ CommunicationIdentifier, CommunicationUserIdentifier, PhoneNumberIdentifier, + MicrosoftTeamsAppIdentifier ) from ._generated.models._enums import ( CallRejectReason, @@ -303,6 +305,7 @@ def create_call( cognitive_services_endpoint: Optional[str] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, + teams_app_source: Optional["MicrosoftTeamsAppIdentifier"] = None, **kwargs ) -> CallConnectionProperties: """Create a call connection request to a target identity. @@ -329,6 +332,8 @@ def create_call( :keyword transcription: Configuration of live transcription. :paramtype transcription: ~azure.communication.callautomation.TranscriptionOptions or None + :keyword teams_app_source: The Microsoft Teams App Identifier. + :paramtype teams_app_source: ~azure.communication.callautomation.MicrosoftTeamsAppIdentifier :return: CallConnectionProperties :rtype: ~azure.communication.callautomation.CallConnectionProperties :raises ~azure.core.exceptions.HttpResponseError: @@ -362,7 +367,8 @@ def create_call( operation_context=operation_context, call_intelligence_options=call_intelligence_options, media_streaming_options=media_config, - transcription_options=transcription_config + transcription_options=transcription_config, + teams_app_source=serialize_msft_teams_app_identifier(teams_app_source), ) process_repeatability_first_sent(kwargs) result = self._client.create_call(create_call_request=create_call_request, **kwargs) @@ -378,6 +384,7 @@ def create_group_call( source_display_name: Optional[str] = None, operation_context: Optional[str] = None, cognitive_services_endpoint: Optional[str] = None, + teams_app_source: Optional["MicrosoftTeamsAppIdentifier"] = None, **kwargs, ) -> CallConnectionProperties: """Create a call connection request to a list of multiple target identities. @@ -398,6 +405,8 @@ def create_group_call( :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str + :keyword teams_app_source: The Microsoft Teams App Identifier. + :paramtype teams_app_source: ~azure.communication.callautomation.MicrosoftTeamsAppIdentifier :return: CallConnectionProperties :rtype: ~azure.communication.callautomation.CallConnectionProperties :raises ~azure.core.exceptions.HttpResponseError: @@ -413,6 +422,7 @@ def create_group_call( source_display_name=source_display_name, operation_context=operation_context, cognitive_services_endpoint=cognitive_services_endpoint, + teams_app_source=teams_app_source, **kwargs, ) @@ -699,6 +709,7 @@ def start_recording( external_storage = build_external_storage(kwargs.pop("recording_storage", None)) start_recording_request = StartCallRecordingRequest( call_locator=call_locator if call_locator else None, + call_connection_id=kwargs.pop("call_connection_id", None), recording_state_callback_uri=kwargs.pop("recording_state_callback_url", None), recording_content_type=kwargs.pop("recording_content_type", None), recording_channel_type=kwargs.pop("recording_channel_type", None), diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_client.py index cd625700f9a8..642e9ea022e3 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_client.py @@ -40,7 +40,7 @@ class AzureCommunicationCallAutomationService(AzureCommunicationCallAutomationSe :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. Default value is "2025-05-15". Note that overriding this + :keyword api_version: Api Version. Default value is "2025-06-15". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_configuration.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_configuration.py index b5998820f8c3..b693a68750bc 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_configuration.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_configuration.py @@ -25,13 +25,13 @@ class AzureCommunicationCallAutomationServiceConfiguration: # pylint: disable=t :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. Default value is "2025-05-15". Note that overriding this + :keyword api_version: Api Version. Default value is "2025-06-15". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, endpoint: str, credential: AzureKeyCredential, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2025-05-15") + api_version: str = kwargs.pop("api_version", "2025-06-15") if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_client.py index b853ba06ac5b..032350695618 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_client.py @@ -41,7 +41,7 @@ class AzureCommunicationCallAutomationService(AzureCommunicationCallAutomationSe :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. Default value is "2025-05-15". Note that overriding this + :keyword api_version: Api Version. Default value is "2025-06-15". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_configuration.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_configuration.py index 4f0f1501d894..de3ff7009e0d 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_configuration.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_configuration.py @@ -25,13 +25,13 @@ class AzureCommunicationCallAutomationServiceConfiguration: # pylint: disable=t :type endpoint: str :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.AzureKeyCredential - :keyword api_version: Api Version. Default value is "2025-05-15". Note that overriding this + :keyword api_version: Api Version. Default value is "2025-06-15". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, endpoint: str, credential: AzureKeyCredential, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2025-05-15") + api_version: str = kwargs.pop("api_version", "2025-06-15") if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py index 3c8a7d24e678..903bc3523ae2 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py @@ -3212,7 +3212,7 @@ async def start_recording( response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/__init__.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/__init__.py index 17fa40f506af..8102d9796c5f 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/__init__.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/__init__.py @@ -96,9 +96,11 @@ SsmlSource, StartCallRecordingRequest, StartMediaStreamingRequest, + StartRecordingFailed, StartTranscriptionRequest, StopMediaStreamingRequest, StopTranscriptionRequest, + TeamsExtensionUserIdentifierModel, TextSource, TranscriptionFailed, TranscriptionOptions, @@ -231,9 +233,11 @@ "SsmlSource", "StartCallRecordingRequest", "StartMediaStreamingRequest", + "StartRecordingFailed", "StartTranscriptionRequest", "StopMediaStreamingRequest", "StopTranscriptionRequest", + "TeamsExtensionUserIdentifierModel", "TextSource", "TranscriptionFailed", "TranscriptionOptions", diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_enums.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_enums.py index b794677d64d7..1f0914fb266d 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_enums.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_enums.py @@ -63,6 +63,7 @@ class CommunicationIdentifierModelKind(str, Enum, metaclass=CaseInsensitiveEnumM PHONE_NUMBER = "phoneNumber" MICROSOFT_TEAMS_USER = "microsoftTeamsUser" MICROSOFT_TEAMS_APP = "microsoftTeamsApp" + TEAMS_EXTENSION_USER = "teamsExtensionUser" class DtmfTone(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_models.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_models.py index a62347feeef7..423dc4762d97 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_models.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_models.py @@ -1326,7 +1326,8 @@ class CommunicationIdentifierModel(_serialization.Model): rawId, at most one further property may be set which must match the kind enum value. :ivar kind: The identifier kind. Only required in responses. Known values are: "unknown", - "communicationUser", "phoneNumber", "microsoftTeamsUser", and "microsoftTeamsApp". + "communicationUser", "phoneNumber", "microsoftTeamsUser", "microsoftTeamsApp", and + "teamsExtensionUser". :vartype kind: str or ~azure.communication.callautomation.models.CommunicationIdentifierModelKind :ivar raw_id: Raw Id of the identifier. Optional in requests, required in responses. @@ -1342,6 +1343,9 @@ class CommunicationIdentifierModel(_serialization.Model): :ivar microsoft_teams_app: The Microsoft Teams application. :vartype microsoft_teams_app: ~azure.communication.callautomation.models.MicrosoftTeamsAppIdentifierModel + :ivar teams_extension_user: The Microsoft Teams Extension user. + :vartype teams_extension_user: + ~azure.communication.callautomation.models.TeamsExtensionUserIdentifierModel """ _attribute_map = { @@ -1351,6 +1355,7 @@ class CommunicationIdentifierModel(_serialization.Model): "phone_number": {"key": "phoneNumber", "type": "PhoneNumberIdentifierModel"}, "microsoft_teams_user": {"key": "microsoftTeamsUser", "type": "MicrosoftTeamsUserIdentifierModel"}, "microsoft_teams_app": {"key": "microsoftTeamsApp", "type": "MicrosoftTeamsAppIdentifierModel"}, + "teams_extension_user": {"key": "teamsExtensionUser", "type": "TeamsExtensionUserIdentifierModel"}, } def __init__( @@ -1362,11 +1367,13 @@ def __init__( phone_number: Optional["_models.PhoneNumberIdentifierModel"] = None, microsoft_teams_user: Optional["_models.MicrosoftTeamsUserIdentifierModel"] = None, microsoft_teams_app: Optional["_models.MicrosoftTeamsAppIdentifierModel"] = None, + teams_extension_user: Optional["_models.TeamsExtensionUserIdentifierModel"] = None, **kwargs: Any ) -> None: """ :keyword kind: The identifier kind. Only required in responses. Known values are: "unknown", - "communicationUser", "phoneNumber", "microsoftTeamsUser", and "microsoftTeamsApp". + "communicationUser", "phoneNumber", "microsoftTeamsUser", "microsoftTeamsApp", and + "teamsExtensionUser". :paramtype kind: str or ~azure.communication.callautomation.models.CommunicationIdentifierModelKind :keyword raw_id: Raw Id of the identifier. Optional in requests, required in responses. @@ -1382,6 +1389,9 @@ def __init__( :keyword microsoft_teams_app: The Microsoft Teams application. :paramtype microsoft_teams_app: ~azure.communication.callautomation.models.MicrosoftTeamsAppIdentifierModel + :keyword teams_extension_user: The Microsoft Teams Extension user. + :paramtype teams_extension_user: + ~azure.communication.callautomation.models.TeamsExtensionUserIdentifierModel """ super().__init__(**kwargs) self.kind = kind @@ -1390,6 +1400,7 @@ def __init__( self.phone_number = phone_number self.microsoft_teams_user = microsoft_teams_user self.microsoft_teams_app = microsoft_teams_app + self.teams_extension_user = teams_extension_user class CommunicationUserIdentifierModel(_serialization.Model): @@ -1876,6 +1887,10 @@ class CreateCallRequest(_serialization.Model): ~azure.communication.callautomation.models.MediaStreamingOptions :ivar transcription_options: Transcription Options. :vartype transcription_options: ~azure.communication.callautomation.models.TranscriptionOptions + :ivar teams_app_source: The identifier of the source for creating call with Teams resource + account ID. + :vartype teams_app_source: + ~azure.communication.callautomation.models.MicrosoftTeamsAppIdentifierModel """ _validation = { @@ -1893,6 +1908,7 @@ class CreateCallRequest(_serialization.Model): "call_intelligence_options": {"key": "callIntelligenceOptions", "type": "CallIntelligenceOptions"}, "media_streaming_options": {"key": "mediaStreamingOptions", "type": "MediaStreamingOptions"}, "transcription_options": {"key": "transcriptionOptions", "type": "TranscriptionOptions"}, + "teams_app_source": {"key": "teamsAppSource", "type": "MicrosoftTeamsAppIdentifierModel"}, } def __init__( @@ -1907,6 +1923,7 @@ def __init__( call_intelligence_options: Optional["_models.CallIntelligenceOptions"] = None, media_streaming_options: Optional["_models.MediaStreamingOptions"] = None, transcription_options: Optional["_models.TranscriptionOptions"] = None, + teams_app_source: Optional["_models.MicrosoftTeamsAppIdentifierModel"] = None, **kwargs: Any ) -> None: """ @@ -1935,6 +1952,10 @@ def __init__( :keyword transcription_options: Transcription Options. :paramtype transcription_options: ~azure.communication.callautomation.models.TranscriptionOptions + :keyword teams_app_source: The identifier of the source for creating call with Teams resource + account ID. + :paramtype teams_app_source: + ~azure.communication.callautomation.models.MicrosoftTeamsAppIdentifierModel """ super().__init__(**kwargs) self.targets = targets @@ -1946,6 +1967,7 @@ def __init__( self.call_intelligence_options = call_intelligence_options self.media_streaming_options = media_streaming_options self.transcription_options = transcription_options + self.teams_app_source = teams_app_source class CustomCallingContext(_serialization.Model): @@ -2664,8 +2686,8 @@ class MicrosoftTeamsUserIdentifierModel(_serialization.Model): All required parameters must be populated in order to send to server. - :ivar user_id: The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id - of the user. Required. + :ivar user_id: The Id of the Microsoft Teams user. If not anonymous, this is the Entra ID + object Id of the user. Required. :vartype user_id: str :ivar is_anonymous: True if the Microsoft Teams user is anonymous. By default false if missing. :vartype is_anonymous: bool @@ -2694,8 +2716,8 @@ def __init__( **kwargs: Any ) -> None: """ - :keyword user_id: The Id of the Microsoft Teams user. If not anonymous, this is the AAD object - Id of the user. Required. + :keyword user_id: The Id of the Microsoft Teams user. If not anonymous, this is the Entra ID + object Id of the user. Required. :paramtype user_id: str :keyword is_anonymous: True if the Microsoft Teams user is anonymous. By default false if missing. @@ -2842,8 +2864,14 @@ class PhoneNumberIdentifierModel(_serialization.Model): All required parameters must be populated in order to send to server. - :ivar value: The phone number in E.164 format. Required. + :ivar value: The phone number, usually in E.164 format. Required. :vartype value: str + :ivar is_anonymous: True if the phone number is anonymous. By default false if missing. If the + phone number is anonymous, the value will be the string 'anonymous'. + :vartype is_anonymous: bool + :ivar asserted_id: The asserted Id of the phone number. An asserted Id gets generated when the + same phone number joins the same call more than once. + :vartype asserted_id: str """ _validation = { @@ -2852,15 +2880,27 @@ class PhoneNumberIdentifierModel(_serialization.Model): _attribute_map = { "value": {"key": "value", "type": "str"}, + "is_anonymous": {"key": "isAnonymous", "type": "bool"}, + "asserted_id": {"key": "assertedId", "type": "str"}, } - def __init__(self, *, value: str, **kwargs: Any) -> None: + def __init__( + self, *, value: str, is_anonymous: Optional[bool] = None, asserted_id: Optional[str] = None, **kwargs: Any + ) -> None: """ - :keyword value: The phone number in E.164 format. Required. + :keyword value: The phone number, usually in E.164 format. Required. :paramtype value: str + :keyword is_anonymous: True if the phone number is anonymous. By default false if missing. If + the phone number is anonymous, the value will be the string 'anonymous'. + :paramtype is_anonymous: bool + :keyword asserted_id: The asserted Id of the phone number. An asserted Id gets generated when + the same phone number joins the same call more than once. + :paramtype asserted_id: str """ super().__init__(**kwargs) self.value = value + self.is_anonymous = is_anonymous + self.asserted_id = asserted_id class PlayCanceled(_serialization.Model): @@ -4368,10 +4408,11 @@ def __init__(self, *, ssml_text: str, custom_voice_endpoint_id: Optional[str] = class StartCallRecordingRequest(_serialization.Model): """The request payload start for call recording operation with call locator. - All required parameters must be populated in order to send to server. - - :ivar call_locator: The call locator. Required. + :ivar call_locator: The call locator. (Only one of callLocator or callConnectionId to be used). :vartype call_locator: ~azure.communication.callautomation.models.CallLocator + :ivar call_connection_id: The call connection Id. (Only one of callLocator or callConnectionId + to be used). + :vartype call_connection_id: str :ivar recording_state_callback_uri: The uri to send notifications to. :vartype recording_state_callback_uri: str :ivar recording_content_type: The content type of call recording. Known values are: "audio" and @@ -4409,12 +4450,9 @@ class StartCallRecordingRequest(_serialization.Model): :vartype external_storage: ~azure.communication.callautomation.models.ExternalStorage """ - _validation = { - "call_locator": {"required": True}, - } - _attribute_map = { "call_locator": {"key": "callLocator", "type": "CallLocator"}, + "call_connection_id": {"key": "callConnectionId", "type": "str"}, "recording_state_callback_uri": {"key": "recordingStateCallbackUri", "type": "str"}, "recording_content_type": {"key": "recordingContentType", "type": "str"}, "recording_channel_type": {"key": "recordingChannelType", "type": "str"}, @@ -4431,7 +4469,8 @@ class StartCallRecordingRequest(_serialization.Model): def __init__( self, *, - call_locator: "_models.CallLocator", + call_locator: Optional["_models.CallLocator"] = None, + call_connection_id: Optional[str] = None, recording_state_callback_uri: Optional[str] = None, recording_content_type: Optional[Union[str, "_models.RecordingContent"]] = None, recording_channel_type: Optional[Union[str, "_models.RecordingChannel"]] = None, @@ -4443,8 +4482,12 @@ def __init__( **kwargs: Any ) -> None: """ - :keyword call_locator: The call locator. Required. + :keyword call_locator: The call locator. (Only one of callLocator or callConnectionId to be + used). :paramtype call_locator: ~azure.communication.callautomation.models.CallLocator + :keyword call_connection_id: The call connection Id. (Only one of callLocator or + callConnectionId to be used). + :paramtype call_connection_id: str :keyword recording_state_callback_uri: The uri to send notifications to. :paramtype recording_state_callback_uri: str :keyword recording_content_type: The content type of call recording. Known values are: "audio" @@ -4484,6 +4527,7 @@ def __init__( """ super().__init__(**kwargs) self.call_locator = call_locator + self.call_connection_id = call_connection_id self.recording_state_callback_uri = recording_state_callback_uri self.recording_content_type = recording_content_type self.recording_channel_type = recording_channel_type @@ -4528,6 +4572,73 @@ def __init__( self.operation_context = operation_context +class StartRecordingFailed(_serialization.Model): + """StartRecordingFailed. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar recording_id: The call recording Id. + :vartype recording_id: str + :ivar call_connection_id: Call connection ID. + :vartype call_connection_id: str + :ivar server_call_id: Server call ID. + :vartype server_call_id: str + :ivar correlation_id: Correlation ID for event to call correlation. Also called ChainId for + skype chain ID. + :vartype correlation_id: str + :ivar operation_context: Used by customers when calling mid-call actions to correlate the + request to the response event. + :vartype operation_context: str + :ivar result_information: Contains the resulting SIP code, sub-code and message. + :vartype result_information: ~azure.communication.callautomation.models.ResultInformation + """ + + _validation = { + "recording_id": {"readonly": True}, + } + + _attribute_map = { + "recording_id": {"key": "recordingId", "type": "str"}, + "call_connection_id": {"key": "callConnectionId", "type": "str"}, + "server_call_id": {"key": "serverCallId", "type": "str"}, + "correlation_id": {"key": "correlationId", "type": "str"}, + "operation_context": {"key": "operationContext", "type": "str"}, + "result_information": {"key": "resultInformation", "type": "ResultInformation"}, + } + + def __init__( + self, + *, + call_connection_id: Optional[str] = None, + server_call_id: Optional[str] = None, + correlation_id: Optional[str] = None, + operation_context: Optional[str] = None, + result_information: Optional["_models.ResultInformation"] = None, + **kwargs: Any + ) -> None: + """ + :keyword call_connection_id: Call connection ID. + :paramtype call_connection_id: str + :keyword server_call_id: Server call ID. + :paramtype server_call_id: str + :keyword correlation_id: Correlation ID for event to call correlation. Also called ChainId for + skype chain ID. + :paramtype correlation_id: str + :keyword operation_context: Used by customers when calling mid-call actions to correlate the + request to the response event. + :paramtype operation_context: str + :keyword result_information: Contains the resulting SIP code, sub-code and message. + :paramtype result_information: ~azure.communication.callautomation.models.ResultInformation + """ + super().__init__(**kwargs) + self.recording_id: Optional[str] = None + self.call_connection_id = call_connection_id + self.server_call_id = server_call_id + self.correlation_id = correlation_id + self.operation_context = operation_context + self.result_information = result_information + + class StartTranscriptionRequest(_serialization.Model): """StartTranscriptionRequest. @@ -4650,6 +4761,67 @@ def __init__( self.operation_callback_uri = operation_callback_uri +class TeamsExtensionUserIdentifierModel(_serialization.Model): + """A Microsoft Teams Phone user who is using a Communication Services resource to extend their + Teams Phone set up. + + All required parameters must be populated in order to send to server. + + :ivar user_id: The Id of the Microsoft Teams Extension user, i.e. the Entra ID object Id of the + user. Required. + :vartype user_id: str + :ivar tenant_id: The tenant Id of the Microsoft Teams Extension user. Required. + :vartype tenant_id: str + :ivar resource_id: The Communication Services resource Id. Required. + :vartype resource_id: str + :ivar cloud: The cloud that the Microsoft Teams Extension user belongs to. By default 'public' + if missing. Known values are: "public", "dod", and "gcch". + :vartype cloud: str or + ~azure.communication.callautomation.models.CommunicationCloudEnvironmentModel + """ + + _validation = { + "user_id": {"required": True}, + "tenant_id": {"required": True}, + "resource_id": {"required": True}, + } + + _attribute_map = { + "user_id": {"key": "userId", "type": "str"}, + "tenant_id": {"key": "tenantId", "type": "str"}, + "resource_id": {"key": "resourceId", "type": "str"}, + "cloud": {"key": "cloud", "type": "str"}, + } + + def __init__( + self, + *, + user_id: str, + tenant_id: str, + resource_id: str, + cloud: Optional[Union[str, "_models.CommunicationCloudEnvironmentModel"]] = None, + **kwargs: Any + ) -> None: + """ + :keyword user_id: The Id of the Microsoft Teams Extension user, i.e. the Entra ID object Id of + the user. Required. + :paramtype user_id: str + :keyword tenant_id: The tenant Id of the Microsoft Teams Extension user. Required. + :paramtype tenant_id: str + :keyword resource_id: The Communication Services resource Id. Required. + :paramtype resource_id: str + :keyword cloud: The cloud that the Microsoft Teams Extension user belongs to. By default + 'public' if missing. Known values are: "public", "dod", and "gcch". + :paramtype cloud: str or + ~azure.communication.callautomation.models.CommunicationCloudEnvironmentModel + """ + super().__init__(**kwargs) + self.user_id = user_id + self.tenant_id = tenant_id + self.resource_id = resource_id + self.cloud = cloud + + class TextSource(_serialization.Model): """TextSource. diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py index 755e92eaddc2..72f7955f7c61 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py @@ -47,7 +47,7 @@ def build_azure_communication_call_automation_service_create_call_request( # py _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -77,7 +77,7 @@ def build_azure_communication_call_automation_service_answer_call_request( # py _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -107,7 +107,7 @@ def build_azure_communication_call_automation_service_redirect_call_request( # _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -137,7 +137,7 @@ def build_azure_communication_call_automation_service_reject_call_request( # py _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -167,7 +167,7 @@ def build_azure_communication_call_automation_service_connect_request( # pylint _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -194,7 +194,7 @@ def build_call_connection_get_call_request(call_connection_id: str, **kwargs: An _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -220,7 +220,7 @@ def build_call_connection_hangup_call_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -246,7 +246,7 @@ def build_call_connection_terminate_call_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -279,7 +279,7 @@ def build_call_connection_transfer_to_participant_request( # pylint: disable=na _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -313,7 +313,7 @@ def build_call_connection_get_participants_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -340,7 +340,7 @@ def build_call_connection_add_participant_request( # pylint: disable=name-too-l _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -375,7 +375,7 @@ def build_call_connection_remove_participant_request( # pylint: disable=name-to _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -408,7 +408,7 @@ def build_call_connection_mute_request(call_connection_id: str, **kwargs: Any) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -443,7 +443,7 @@ def build_call_connection_cancel_add_participant_request( # pylint: disable=nam _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -477,7 +477,7 @@ def build_call_connection_get_participant_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -503,7 +503,7 @@ def build_call_media_play_request(call_connection_id: str, **kwargs: Any) -> Htt _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -532,7 +532,7 @@ def build_call_media_start_transcription_request( # pylint: disable=name-too-lo _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -561,7 +561,7 @@ def build_call_media_stop_transcription_request( # pylint: disable=name-too-lon _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -590,7 +590,7 @@ def build_call_media_update_transcription_request( # pylint: disable=name-too-l _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -618,7 +618,7 @@ def build_call_media_cancel_all_media_operations_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -643,7 +643,7 @@ def build_call_media_recognize_request(call_connection_id: str, **kwargs: Any) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -672,7 +672,7 @@ def build_call_media_start_continuous_dtmf_recognition_request( # pylint: disab _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -701,7 +701,7 @@ def build_call_media_stop_continuous_dtmf_recognition_request( # pylint: disabl _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -728,7 +728,7 @@ def build_call_media_send_dtmf_tones_request(call_connection_id: str, **kwargs: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -761,7 +761,7 @@ def build_call_media_hold_request(call_connection_id: str, **kwargs: Any) -> Htt _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -788,7 +788,7 @@ def build_call_media_unhold_request(call_connection_id: str, **kwargs: Any) -> H _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -817,7 +817,7 @@ def build_call_media_start_media_streaming_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -846,7 +846,7 @@ def build_call_media_stop_media_streaming_request( # pylint: disable=name-too-l _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -873,7 +873,7 @@ def build_call_recording_start_recording_request(**kwargs: Any) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -902,7 +902,7 @@ def build_call_recording_get_recording_properties_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -928,7 +928,7 @@ def build_call_recording_stop_recording_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -954,7 +954,7 @@ def build_call_recording_pause_recording_request( # pylint: disable=name-too-lo _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -980,7 +980,7 @@ def build_call_recording_resume_recording_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-15")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-15")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -4145,7 +4145,7 @@ def start_recording( response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py index 0d26dd994299..7dd07893be1e 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py @@ -38,6 +38,7 @@ serialize_phone_identifier, serialize_identifier, serialize_communication_user_identifier, + serialize_msft_teams_app_identifier, build_call_locator, process_repeatability_first_sent, ) @@ -317,6 +318,7 @@ async def create_call( cognitive_services_endpoint: Optional[str] = None, media_streaming: Optional['MediaStreamingOptions'] = None, transcription: Optional['TranscriptionOptions'] = None, + teams_app_source: Optional["MicrosoftTeamsAppIdentifier"] = None, **kwargs ) -> CallConnectionProperties: """Create a call connection request to a target identity. @@ -343,6 +345,8 @@ async def create_call( :keyword transcription: Configuration of live transcription. :paramtype transcription: ~azure.communication.callautomation.TranscriptionOptions or None + :keyword teams_app_source: The Microsoft Teams App Identifier. + :paramtype teams_app_source: ~azure.communication.callautomation.MicrosoftTeamsAppIdentifier :return: CallConnectionProperties :rtype: ~azure.communication.callautomation.CallConnectionProperties :raises ~azure.core.exceptions.HttpResponseError: @@ -377,6 +381,7 @@ async def create_call( media_streaming_options=media_config, transcription_options=transcription_config, call_intelligence_options=call_intelligence_options, + teams_app_source=serialize_msft_teams_app_identifier(teams_app_source), ) process_repeatability_first_sent(kwargs) result = await self._client.create_call(create_call_request=create_call_request, **kwargs) @@ -392,6 +397,7 @@ async def create_group_call( source_display_name: Optional[str] = None, operation_context: Optional[str] = None, cognitive_services_endpoint: Optional[str] = None, + teams_app_source: Optional["MicrosoftTeamsAppIdentifier"] = None, **kwargs, ) -> CallConnectionProperties: """Create a call connection request to a list of multiple target identities. @@ -412,6 +418,8 @@ async def create_group_call( :keyword cognitive_services_endpoint: The identifier of the Cognitive Service resource assigned to this call. :paramtype cognitive_services_endpoint: str + :keyword teams_app_source: The Microsoft Teams App Identifier. + :paramtype teams_app_source: ~azure.communication.callautomation.MicrosoftTeamsAppIdentifier :return: CallConnectionProperties :rtype: ~azure.communication.callautomation.CallConnectionProperties :raises ~azure.core.exceptions.HttpResponseError: @@ -427,6 +435,7 @@ async def create_group_call( source_display_name=source_display_name, operation_context=operation_context, cognitive_services_endpoint=cognitive_services_endpoint, + teams_app_source=teams_app_source, **kwargs, ) @@ -714,6 +723,7 @@ async def start_recording( external_storage = build_external_storage(kwargs.pop("recording_storage", None)) start_recording_request = StartCallRecordingRequest( call_locator=call_locator if call_locator else None, + call_connection_id=kwargs.pop("call_connection_id", None), recording_state_callback_uri=kwargs.pop("recording_state_callback_url", None), recording_content_type=kwargs.pop("recording_content_type", None), recording_channel_type=kwargs.pop("recording_channel_type", None), diff --git a/sdk/communication/azure-communication-callautomation/swagger/SWAGGER.md b/sdk/communication/azure-communication-callautomation/swagger/SWAGGER.md index 99c904b19b92..45b0bf99eafb 100644 --- a/sdk/communication/azure-communication-callautomation/swagger/SWAGGER.md +++ b/sdk/communication/azure-communication-callautomation/swagger/SWAGGER.md @@ -16,8 +16,8 @@ autorest SWAGGER.md ### Settings ```yaml -tag: package-2025-05-15 -require: https://github.com/Azure/azure-rest-api-specs/blob/8bf7f264d186b52eccb579accd3f584788511049/specification/communication/data-plane/CallAutomation/readme.md +tag: package-2025-06-15 +require: https://github.com/Azure/azure-rest-api-specs/blob/6d7d3fc4315bbb2c446a9add65f8d47f20a85426/specification/communication/data-plane/CallAutomation/readme.md output-folder: ../azure/communication/callautomation/_generated models-mode: msrest namespace: azure.communication.callautomation From c257e6405bd9af9e5c57b4144439667a441a5e4b Mon Sep 17 00:00:00 2001 From: v-saasomani Date: Wed, 4 Jun 2025 11:54:29 -0700 Subject: [PATCH 17/23] Made changes to start recording to effectively handle call_connection_id to locate call rather than using call locator. --- .../callautomation/_call_automation_client.py | 57 ++++++++++++++++++- .../aio/_call_automation_client_async.py | 57 ++++++++++++++++++- .../tests/test_call_recording_client.py | 1 + .../tests/test_e2e_callautomation_client.py | 38 +++++++++++++ 4 files changed, 151 insertions(+), 2 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py index 39eebf62f77c..e53057863ada 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_call_automation_client.py @@ -537,6 +537,57 @@ def reject_call( process_repeatability_first_sent(kwargs) self._client.reject_call(reject_call_request=reject_call_request, **kwargs) + @overload + def start_recording( + self, + *, + call_connection_id: str, + recording_state_callback_url: Optional[str] = None, + recording_content_type: Optional[Union[str, 'RecordingContent']] = None, + recording_channel_type: Optional[Union[str, 'RecordingChannel']] = None, + recording_format_type: Optional[Union[str, 'RecordingFormat']] = None, + audio_channel_participant_ordering: Optional[List['CommunicationIdentifier']] = None, + channel_affinity: Optional[List['ChannelAffinity']] = None, + recording_storage: Optional[Union['AzureCommunicationsRecordingStorage', + 'AzureBlobContainerRecordingStorage']] = None, + pause_on_start: Optional[bool] = None, + **kwargs, + ) -> RecordingProperties: + """Start recording for a ongoing call. Locate the call with call connection id. + + :keyword str call_connection_id: The call connection ID to locate ongoing call. + :keyword recording_state_callback_url: The url to send notifications to. + :paramtype recording_state_callback_url: str or None + :keyword recording_content_type: The content type of call recording. + :paramtype recording_content_type: str or ~azure.communication.callautomation.RecordingContent or None + :keyword recording_channel_type: The channel type of call recording. + :paramtype recording_channel_type: str or ~azure.communication.callautomation.RecordingChannel or None + :keyword recording_format_type: The format type of call recording. + :paramtype recording_format_type: str or ~azure.communication.callautomation.RecordingFormat or None + :keyword audio_channel_participant_ordering: + The sequential order in which audio channels are assigned to participants in the unmixed recording. + When 'recordingChannelType' is set to 'unmixed' and `audioChannelParticipantOrdering is not specified, + the audio channel to participant mapping will be automatically assigned based on the order in + which participant first audio was detected. + Channel to participant mapping details can be found in the metadata of the recording. + :paramtype audio_channel_participant_ordering: + list[~azure.communication.callautomation.CommunicationIdentifier] or None + :keyword channel_affinity: The channel affinity of call recording + When 'recordingChannelType' is set to 'unmixed', if channelAffinity is not specified, + 'channel' will be automatically assigned. + Channel-Participant mapping details can be found in the metadata of the recording. + :paramtype channel_affinity: list[~azure.communication.callautomation.ChannelAffinity] or None + :keyword recording_storage: Defines the kind of external storage. Known values are: + ``AzureCommunicationsRecordingStorage`` and ``AzureBlobContainerRecordingStorage``. + If no storage option is provided, the default is Azure Communications recording storage. + :paramtype recording_storage: AzureCommunicationsRecordingStorage or AzureBlobContainerRecordingStorage or None + :keyword pause_on_start: The state of the pause on start option. + :paramtype pause_on_start: bool or None + :return: RecordingProperties + :rtype: ~azure.communication.callautomation.RecordingProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + @overload def start_recording( self, @@ -706,10 +757,14 @@ def start_recording( kwargs.pop("room_id", None), args ) + call_connection_id = kwargs.pop("call_connection_id", None) + if not call_locator and not call_connection_id: + raise ValueError("Either a call locator or a call_connection_id must be provided to start recording.") + external_storage = build_external_storage(kwargs.pop("recording_storage", None)) start_recording_request = StartCallRecordingRequest( call_locator=call_locator if call_locator else None, - call_connection_id=kwargs.pop("call_connection_id", None), + call_connection_id=call_connection_id if call_connection_id else None, recording_state_callback_uri=kwargs.pop("recording_state_callback_url", None), recording_content_type=kwargs.pop("recording_content_type", None), recording_channel_type=kwargs.pop("recording_channel_type", None), diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py index 7dd07893be1e..8f106e3cbfb6 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py @@ -551,6 +551,57 @@ async def reject_call( process_repeatability_first_sent(kwargs) await self._client.reject_call(reject_call_request=reject_call_request, **kwargs) + @overload + def start_recording( + self, + *, + call_connection_id: str, + recording_state_callback_url: Optional[str] = None, + recording_content_type: Optional[Union[str, 'RecordingContent']] = None, + recording_channel_type: Optional[Union[str, 'RecordingChannel']] = None, + recording_format_type: Optional[Union[str, 'RecordingFormat']] = None, + audio_channel_participant_ordering: Optional[List['CommunicationIdentifier']] = None, + channel_affinity: Optional[List['ChannelAffinity']] = None, + recording_storage: Optional[Union['AzureCommunicationsRecordingStorage', + 'AzureBlobContainerRecordingStorage']] = None, + pause_on_start: Optional[bool] = None, + **kwargs, + ) -> RecordingProperties: + """Start recording for a ongoing call. Locate the call with call connection id. + + :keyword str call_connection_id: The call connection ID to locate ongoing call. + :keyword recording_state_callback_url: The url to send notifications to. + :paramtype recording_state_callback_url: str or None + :keyword recording_content_type: The content type of call recording. + :paramtype recording_content_type: str or ~azure.communication.callautomation.RecordingContent or None + :keyword recording_channel_type: The channel type of call recording. + :paramtype recording_channel_type: str or ~azure.communication.callautomation.RecordingChannel or None + :keyword recording_format_type: The format type of call recording. + :paramtype recording_format_type: str or ~azure.communication.callautomation.RecordingFormat or None + :keyword audio_channel_participant_ordering: + The sequential order in which audio channels are assigned to participants in the unmixed recording. + When 'recordingChannelType' is set to 'unmixed' and `audioChannelParticipantOrdering is not specified, + the audio channel to participant mapping will be automatically assigned based on the order in + which participant first audio was detected. + Channel to participant mapping details can be found in the metadata of the recording. + :paramtype audio_channel_participant_ordering: + list[~azure.communication.callautomation.CommunicationIdentifier] or None + :keyword channel_affinity: The channel affinity of call recording + When 'recordingChannelType' is set to 'unmixed', if channelAffinity is not specified, + 'channel' will be automatically assigned. + Channel-Participant mapping details can be found in the metadata of the recording. + :paramtype channel_affinity: list[~azure.communication.callautomation.ChannelAffinity] or None + :keyword recording_storage: Defines the kind of external storage. Known values are: + ``AzureCommunicationsRecordingStorage`` and ``AzureBlobContainerRecordingStorage``. + If no storage option is provided, the default is Azure Communications recording storage. + :paramtype recording_storage: AzureCommunicationsRecordingStorage or AzureBlobContainerRecordingStorage or None + :keyword pause_on_start: The state of the pause on start option. + :paramtype pause_on_start: bool or None + :return: RecordingProperties + :rtype: ~azure.communication.callautomation.RecordingProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + @overload async def start_recording( self, @@ -720,10 +771,14 @@ async def start_recording( kwargs.pop("room_id", None), args ) + call_connection_id = kwargs.pop("call_connection_id", None) + if not call_locator and not call_connection_id: + raise ValueError("Either a call locator or a call_connection_id must be provided to start recording.") + external_storage = build_external_storage(kwargs.pop("recording_storage", None)) start_recording_request = StartCallRecordingRequest( call_locator=call_locator if call_locator else None, - call_connection_id=kwargs.pop("call_connection_id", None), + call_connection_id=call_connection_id if call_connection_id else None, recording_state_callback_uri=kwargs.pop("recording_state_callback_url", None), recording_content_type=kwargs.pop("recording_content_type", None), recording_channel_type=kwargs.pop("recording_channel_type", None), diff --git a/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py b/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py index b7f9a96f61c9..96e609c8eb76 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py @@ -40,6 +40,7 @@ def mock_send(_, **kwargs): callautomation_client.start_recording(call_locator, channel_affinity=[channel_affinity]) callautomation_client.start_recording(group_call_id="locatorId", channel_affinity=[channel_affinity]) callautomation_client.start_recording(server_call_id="locatorId", channel_affinity=[channel_affinity]) + callautomation_client.start_recording(call_connection_id=call_connection_id, channel_affinity=[channel_affinity]) with pytest.raises(ValueError): call_locator = ServerCallLocator(server_call_id="locatorId") diff --git a/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py b/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py index 0a835dd201dd..b6b136bdc6a0 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py @@ -151,3 +151,41 @@ def test_start_recording_with_server_call_id(self): self.terminate_call(unique_id) return + + @recorded_by_proxy + def test_start_recording_with_call_connection_id(self): + # try to establish the call + caller = self.identity_client.create_user() + target = self.identity_client.create_user() + unique_id, call_connection, _, call_automation_client, callback_url = self.establish_callconnection_voip_connect_call(caller, target) + + # check returned events + connected_event = self.check_for_event('CallConnected', call_connection._call_connection_id, timedelta(seconds=15)) + participant_updated_event = self.check_for_event('ParticipantsUpdated', call_connection._call_connection_id, timedelta(seconds=15)) + + if connected_event is None: + raise ValueError("Caller CallConnected event is None") + if participant_updated_event is None: + raise ValueError("Caller ParticipantsUpdated event is None") + + call_connection_properties = call_connection.get_call_properties() + call_connection_id = call_connection_properties.call_connection_id + target_participant = CommunicationUserIdentifier("testId") + channel_affinity = ChannelAffinity(target_participant=target_participant, channel=0) + + # start recording request with call connection id. + start_recording = call_automation_client.start_recording(call_connection_id=call_connection_id, recording_state_callback_url=callback_url, channel_affinity=[channel_affinity] + ) + time.sleep(5) + + # check for RecordingStateChanged event + recording_state_changed_event = self.check_for_event('RecordingStateChanged', call_connection_id, timedelta(seconds=30)) + if recording_state_changed_event is None: + raise ValueError("RecordingStateChanged event is None") + + # stop recording request. + call_automation_client.stop_recording(recording_id=start_recording.recording_id) + time.sleep(3) + + self.terminate_call(unique_id) + return From 0cb5a87c89185c614a994485438d5deb579f087c Mon Sep 17 00:00:00 2001 From: v-saasomani Date: Fri, 13 Jun 2025 12:22:14 -0700 Subject: [PATCH 18/23] Recorded live tests for ga6. --- .../azure-communication-callautomation/assets.json | 2 +- .../callautomation/aio/_call_automation_client_async.py | 2 +- ...dLiveTesttest_add_participant_then_cancel_request.event.json | 2 +- ...eTesttest_create_VOIP_call_and_answer_then_hangup.event.json | 2 +- ...eTesttest_start_recording_with_call_connection_id.event.json | 2 +- ...dLiveTesttest_start_recording_with_server_call_id.event.json | 2 +- ...esttest_add_and_hold_unhold_participant_in_a_call.event.json | 2 +- ...edLiveTesttest_add_and_mute_participant_in_a_call.event.json | 2 +- ...ay_combined_file_and_text_sources_with_play_media.event.json | 2 +- ...ombined_file_and_text_sources_with_play_media_all.event.json | 2 +- ...stMediaAutomatedLiveTesttest_play_media_in_a_call.event.json | 2 +- ...sources_with_operationcallbackurl_with_play_media.event.json | 2 +- ...ces_with_operationcallbackurl_with_play_media_all.event.json | 2 +- ...sttest_play_multiple_file_sources_with_play_media.event.json | 2 +- ...st_play_multiple_file_sources_with_play_media_all.event.json | 2 +- ...sttest_play_multiple_text_sources_with_play_media.event.json | 2 +- ...st_play_multiple_text_sources_with_play_media_all.event.json | 2 +- ...th_invalid_and_valid_file_sources_with_play_media.event.json | 2 +- ...nvalid_and_valid_file_sources_with_play_media_all.event.json | 2 +- ...st_play_with_invalid_file_sources_with_play_media.event.json | 2 +- ...lay_with_invalid_file_sources_with_play_media_all.event.json | 2 +- ...LiveTesttest_start_stop_media_streaming_in_a_call.event.json | 2 +- ...atedLiveTesttest_start_stop_transcription_in_call.event.json | 2 +- .../tests/test_call_recording_client.py | 2 +- .../tests/test_e2e_callautomation_client.py | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/sdk/communication/azure-communication-callautomation/assets.json b/sdk/communication/azure-communication-callautomation/assets.json index ccff8c99833c..0a0a412fcee4 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": "python", "TagPrefix": "python/communication/azure-communication-callautomation", - "Tag": "python/communication/azure-communication-callautomation_873c9c1c4a" + "Tag": "python/communication/azure-communication-callautomation_2e2c2d8b13" } diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py index 8f106e3cbfb6..6a8dc3df4f1f 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/aio/_call_automation_client_async.py @@ -552,7 +552,7 @@ async def reject_call( await self._client.reject_call(reject_call_request=reject_call_request, **kwargs) @overload - def start_recording( + async def start_recording( self, *, call_connection_id: str, diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json index 6c56afb448c1..a0022451c2e3 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_add_participant_then_cancel_request.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e777-984c-04bd456001f9", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e777-984c-04bd456001f9"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e739-984c-04bd456001f8", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e739-984c-04bd456001f8"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JYkZ0SURUS2wwdUJYbVhqLXpsWnpRP2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f462f0b7-df6d-4b22-ad0d-ba7ca67688f5"}, "ParticipantsUpdated": {"id": "97709a95-7f80-4ea7-8318-7c04f295170a", "source": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e777-984c-04bd456001f9", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e777-984c-04bd456001f9"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e739-984c-04bd456001f8", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e739-984c-04bd456001f8"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 3, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-4947-47f0-bfee-c61ebd7011e1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JYkZ0SURUS2wwdUJYbVhqLXpsWnpRP2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "f462f0b7-df6d-4b22-ad0d-ba7ca67688f5", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T17:53:52.5463063+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1"}, "CallConnected": {"id": "8f955b13-9563-45f1-85e1-9308cacb7f43", "source": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-4947-47f0-bfee-c61ebd7011e1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JYkZ0SURUS2wwdUJYbVhqLXpsWnpRP2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "f462f0b7-df6d-4b22-ad0d-ba7ca67688f5", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T17:53:47.8264531+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1"}, "CancelAddParticipantSucceeded": {"id": "f8452665-14ab-418b-829b-4b640d59bff3", "source": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1", "type": "Microsoft.Communication.CancelAddParticipantSucceeded", "data": {"invitationId": "8b4a7079-85be-49ae-b503-de5a17538783", "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 5300, "message": "addParticipants failed for participant 8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-e7d1-984c-04bd456001fa. Underlying reason: The conversation has ended. DiagCode: 0#5300.@"}, "callConnectionId": "08006680-4947-47f0-bfee-c61ebd7011e1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JYkZ0SURUS2wwdUJYbVhqLXpsWnpRP2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "f462f0b7-df6d-4b22-ad0d-ba7ca67688f5", "publicEventType": "Microsoft.Communication.CancelAddParticipantSucceeded"}, "time": "2025-05-28T17:53:54.2872002+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1"}, "CallDisconnected": {"id": "0965595d-0da4-4716-a0d9-5348f2d81b44", "source": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-4947-47f0-bfee-c61ebd7011e1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JYkZ0SURUS2wwdUJYbVhqLXpsWnpRP2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "f462f0b7-df6d-4b22-ad0d-ba7ca67688f5", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T17:53:55.3667219+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-4947-47f0-bfee-c61ebd7011e1"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-f142-93f0-3a3a0d004e5a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-f142-93f0-3a3a0d004e5a"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-f00d-93f0-3a3a0d004e59", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-f00d-93f0-3a3a0d004e59"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95UlpnVjlrT2ZFT1FqamJFQ1puSzVnP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "8451d134-c450-420e-a348-9744c7940ceb"}, "ParticipantsUpdated": {"id": "73b43970-bfe4-4746-a42b-3f2301645d64", "source": "calling/callConnections/00006680-b6d2-4562-a312-5ed8fdab823f", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-f00d-93f0-3a3a0d004e59", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-f00d-93f0-3a3a0d004e59"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-f142-93f0-3a3a0d004e5a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-f142-93f0-3a3a0d004e5a"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 3, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-b6d2-4562-a312-5ed8fdab823f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95UlpnVjlrT2ZFT1FqamJFQ1puSzVnP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "8451d134-c450-420e-a348-9744c7940ceb", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:02:58.6258608+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-b6d2-4562-a312-5ed8fdab823f"}, "CallConnected": {"id": "940ddd11-4122-4f88-9543-6289448b0eeb", "source": "calling/callConnections/00006680-b6d2-4562-a312-5ed8fdab823f", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "00006680-b6d2-4562-a312-5ed8fdab823f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95UlpnVjlrT2ZFT1FqamJFQ1puSzVnP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "8451d134-c450-420e-a348-9744c7940ceb", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:02:54.9709411+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-b6d2-4562-a312-5ed8fdab823f"}, "CancelAddParticipantSucceeded": {"id": "9438792f-a31b-4adf-88d4-a19786a1d671", "source": "calling/callConnections/00006680-b6d2-4562-a312-5ed8fdab823f", "type": "Microsoft.Communication.CancelAddParticipantSucceeded", "data": {"invitationId": "34369f73-a83f-478c-81ce-11c32dbe7a81", "version": "2025-05-15", "resultInformation": {"code": 487, "subCode": 5234, "message": "addParticipants failed for participant 8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-f193-93f0-3a3a0d004e5b. Underlying reason: The Call Has Been Cancelled. DiagCode: 487#5234.@"}, "callConnectionId": "00006680-b6d2-4562-a312-5ed8fdab823f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95UlpnVjlrT2ZFT1FqamJFQ1puSzVnP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "8451d134-c450-420e-a348-9744c7940ceb", "publicEventType": "Microsoft.Communication.CancelAddParticipantSucceeded"}, "time": "2025-06-13T19:03:00.3980933+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-b6d2-4562-a312-5ed8fdab823f"}, "CallDisconnected": {"id": "c23bdf6e-41ed-4992-a01e-8b1df8e92d9a", "source": "calling/callConnections/00006680-b6d2-4562-a312-5ed8fdab823f", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "00006680-b6d2-4562-a312-5ed8fdab823f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95UlpnVjlrT2ZFT1FqamJFQ1puSzVnP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "8451d134-c450-420e-a348-9744c7940ceb", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:03:01.4478409+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-b6d2-4562-a312-5ed8fdab823f"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json index 0e701663181b..d1d66d4175eb 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_create_VOIP_call_and_answer_then_hangup.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-9024-984c-04bd456001f7", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-9024-984c-04bd456001f7"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-8fcf-984c-04bd456001f6", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-8fcf-984c-04bd456001f6"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fNnBGdFlrUnQwV0ZuYmlacGVCcFF3P2k9MTAtMTI4LTE0Mi0xODQmZT02Mzg4MzY0MDg1NDI0MDQwNDA=", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "bdc8300f-0ecf-4e29-806d-a787b0b41b7c"}, "ParticipantsUpdated": {"id": "4ea66ab3-33ab-427a-9d00-ed6545685727", "source": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-8fcf-984c-04bd456001f6", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-8fcf-984c-04bd456001f6"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-9024-984c-04bd456001f7", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e8-9024-984c-04bd456001f7"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "24006580-91de-482c-9c14-5f9d75eb74f9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fNnBGdFlrUnQwV0ZuYmlacGVCcFF3P2k9MTAtMTI4LTE0Mi0xODQmZT02Mzg4MzY0MDg1NDI0MDQwNDA=", "correlationId": "bdc8300f-0ecf-4e29-806d-a787b0b41b7c", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T17:53:33.511774+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9"}, "CallConnected": {"id": "933c31ce-8c06-43f2-83c9-a7e5b4956672", "source": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "24006580-91de-482c-9c14-5f9d75eb74f9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fNnBGdFlrUnQwV0ZuYmlacGVCcFF3P2k9MTAtMTI4LTE0Mi0xODQmZT02Mzg4MzY0MDg1NDI0MDQwNDA=", "correlationId": "bdc8300f-0ecf-4e29-806d-a787b0b41b7c", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T17:53:33.6290594+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9"}, "CallDisconnected": {"id": "bc20ba92-c085-485a-865f-432a98f8c056", "source": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "24006580-91de-482c-9c14-5f9d75eb74f9", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fNnBGdFlrUnQwV0ZuYmlacGVCcFF3P2k9MTAtMTI4LTE0Mi0xODQmZT02Mzg4MzY0MDg1NDI0MDQwNDA=", "correlationId": "bdc8300f-0ecf-4e29-806d-a787b0b41b7c", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T17:53:35.9347346+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/24006580-91de-482c-9c14-5f9d75eb74f9"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-aca6-4afc-3a3a0d005045", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-aca6-4afc-3a3a0d005045"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-ac4b-4afc-3a3a0d005044", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-ac4b-4afc-3a3a0d005044"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oWkFFNjZ4R3MwZUVtSER5LUtleVl3P2k9MTAtNjAtMTAyLTc4JmU9NjM4ODUyNjg3MDE4NDk1OTA0", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "be4943e8-6d13-484b-ad2b-232419f88645"}, "ParticipantsUpdated": {"id": "8a1557c9-6f99-4ab4-a71c-be2a9e477a90", "source": "calling/callConnections/26006780-3cd6-4275-aa1e-acfe0fe286bb", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-ac4b-4afc-3a3a0d005044", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-ac4b-4afc-3a3a0d005044"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-aca6-4afc-3a3a0d005045", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8d-aca6-4afc-3a3a0d005045"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "26006780-3cd6-4275-aa1e-acfe0fe286bb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oWkFFNjZ4R3MwZUVtSER5LUtleVl3P2k9MTAtNjAtMTAyLTc4JmU9NjM4ODUyNjg3MDE4NDk1OTA0", "correlationId": "be4943e8-6d13-484b-ad2b-232419f88645", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:02:40.8956795+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/26006780-3cd6-4275-aa1e-acfe0fe286bb"}, "CallConnected": {"id": "8f8f3f6b-6a64-409d-afde-ade889118572", "source": "calling/callConnections/26006780-3cd6-4275-aa1e-acfe0fe286bb", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "26006780-3cd6-4275-aa1e-acfe0fe286bb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oWkFFNjZ4R3MwZUVtSER5LUtleVl3P2k9MTAtNjAtMTAyLTc4JmU9NjM4ODUyNjg3MDE4NDk1OTA0", "correlationId": "be4943e8-6d13-484b-ad2b-232419f88645", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:02:41.0291885+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/26006780-3cd6-4275-aa1e-acfe0fe286bb"}, "CallDisconnected": {"id": "c9f5b255-f24b-4f96-9638-820c384e063c", "source": "calling/callConnections/26006780-3cd6-4275-aa1e-acfe0fe286bb", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "26006780-3cd6-4275-aa1e-acfe0fe286bb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oWkFFNjZ4R3MwZUVtSER5LUtleVl3P2k9MTAtNjAtMTAyLTc4JmU9NjM4ODUyNjg3MDE4NDk1OTA0", "correlationId": "be4943e8-6d13-484b-ad2b-232419f88645", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:02:43.24389+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/26006780-3cd6-4275-aa1e-acfe0fe286bb"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_call_connection_id.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_call_connection_id.event.json index 987e1a7c5201..5a9c665c17b5 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_call_connection_id.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_call_connection_id.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-784a-22da-363a0d0035f2", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-784a-22da-363a0d0035f2"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-774c-22da-363a0d0035f1", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-774c-22da-363a0d0035f1"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DTm04LUFTNHJVaTV2Z3U1MnNWZ1B3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "a9bd7542-5dc0-44a2-82ad-c508e3ba9de3"}, "ParticipantsUpdated": {"id": "d2634317-fefe-46c9-bb82-534259f48432", "source": "calling/callConnections/08002380-e2e1-485c-9f4b-56aaed8b6963", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-784a-22da-363a0d0035f2", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-784a-22da-363a0d0035f2"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-774c-22da-363a0d0035f1", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000026-451a-774c-22da-363a0d0035f1"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 16, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-e2e1-485c-9f4b-56aaed8b6963", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DTm04LUFTNHJVaTV2Z3U1MnNWZ1B3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "a9bd7542-5dc0-44a2-82ad-c508e3ba9de3", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-03-17T17:48:58.7381921+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-e2e1-485c-9f4b-56aaed8b6963"}, "CallConnected": {"id": "6958c424-0a84-4ef5-80d4-cea5ec8eb9ee", "source": "calling/callConnections/08002380-e2e1-485c-9f4b-56aaed8b6963", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08002380-e2e1-485c-9f4b-56aaed8b6963", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DTm04LUFTNHJVaTV2Z3U1MnNWZ1B3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "a9bd7542-5dc0-44a2-82ad-c508e3ba9de3", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-03-17T17:48:49.0375441+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-e2e1-485c-9f4b-56aaed8b6963"}, "RecordingStateChanged": {"id": "a07426f3-dca3-4163-84bf-bde7db842cef", "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DTm04LUFTNHJVaTV2Z3U1MnNWZ1B3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwMjM4MC1lMmUxLTQ4NWMtOWY0Yi01NmFhZWQ4YjY5NjMiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiIxOGZiNDQzNC1mOTMwLTQyNGItYmI3NS00NDViMzIwN2YzNmMifQ/RecordingStateChanged", "type": "Microsoft.Communication.RecordingStateChanged", "data": {"eventSource": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DTm04LUFTNHJVaTV2Z3U1MnNWZ1B3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwMjM4MC1lMmUxLTQ4NWMtOWY0Yi01NmFhZWQ4YjY5NjMiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiIxOGZiNDQzNC1mOTMwLTQyNGItYmI3NS00NDViMzIwN2YzNmMifQ/RecordingStateChanged", "recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwMjM4MC1lMmUxLTQ4NWMtOWY0Yi01NmFhZWQ4YjY5NjMiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiIxOGZiNDQzNC1mOTMwLTQyNGItYmI3NS00NDViMzIwN2YzNmMifQ", "state": "active", "startDateTime": "2025-03-17T17:48:54.3719814+00:00", "recordingKind": "azureCommunicationServices", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2024-09-01-preview", "callConnectionId": "08002380-e2e1-485c-9f4b-56aaed8b6963", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DTm04LUFTNHJVaTV2Z3U1MnNWZ1B3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "a9bd7542-5dc0-44a2-82ad-c508e3ba9de3", "publicEventType": "Microsoft.Communication.RecordingStateChanged"}, "time": "2025-03-17T17:48:54.6643387+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DTm04LUFTNHJVaTV2Z3U1MnNWZ1B3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwMjM4MC1lMmUxLTQ4NWMtOWY0Yi01NmFhZWQ4YjY5NjMiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiIxOGZiNDQzNC1mOTMwLTQyNGItYmI3NS00NDViMzIwN2YzNmMifQ/RecordingStateChanged"}, "CallDisconnected": {"id": "8e26db5f-5073-4686-a491-765cbb347ce3", "source": "calling/callConnections/08002380-e2e1-485c-9f4b-56aaed8b6963", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2024-09-01-preview", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08002380-e2e1-485c-9f4b-56aaed8b6963", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWpwZWEtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DTm04LUFTNHJVaTV2Z3U1MnNWZ1B3P2k9MTAtNjAtMS04MyZlPTYzODc3NDA3OTU5ODEyODcxOQ==", "correlationId": "a9bd7542-5dc0-44a2-82ad-c508e3ba9de3", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-03-17T17:48:59.8892286+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08002380-e2e1-485c-9f4b-56aaed8b6963"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-a143-93f0-3a3a0d004e67", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-a143-93f0-3a3a0d004e67"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-a10d-93f0-3a3a0d004e66", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-a10d-93f0-3a3a0d004e66"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DczNRb1NYM1NFMktXUGdSZzk5U1hRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "ee1eee42-671a-46c2-92b6-0845012c98d4"}, "ParticipantsUpdated": {"id": "daa94bbe-9c4d-4a6c-bf6a-175e49f894f3", "source": "calling/callConnections/00006680-1ce6-4229-a807-a929655f47d1", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-a143-93f0-3a3a0d004e67", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-a143-93f0-3a3a0d004e67"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-a10d-93f0-3a3a0d004e66", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-a10d-93f0-3a3a0d004e66"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 11, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-1ce6-4229-a807-a929655f47d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DczNRb1NYM1NFMktXUGdSZzk5U1hRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "ee1eee42-671a-46c2-92b6-0845012c98d4", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:03:47.7476392+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-1ce6-4229-a807-a929655f47d1"}, "CallConnected": {"id": "f566eb2d-6c7f-4161-a183-9cee33979a84", "source": "calling/callConnections/00006680-1ce6-4229-a807-a929655f47d1", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "00006680-1ce6-4229-a807-a929655f47d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DczNRb1NYM1NFMktXUGdSZzk5U1hRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "ee1eee42-671a-46c2-92b6-0845012c98d4", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:03:39.9772908+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-1ce6-4229-a807-a929655f47d1"}, "RecordingStateChanged": {"id": "f3d79f85-a255-4be7-af2a-e70365944a9e", "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DczNRb1NYM1NFMktXUGdSZzk5U1hRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwMDAwNjY4MC0xY2U2LTQyMjktYTgwNy1hOTI5NjU1ZjQ3ZDEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiIyMzI0NmE0My1jMmJiLTRkN2MtOGU4Yi03YzZhMjMzNTg2N2IifQ/RecordingStateChanged", "type": "Microsoft.Communication.RecordingStateChanged", "data": {"recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwMDAwNjY4MC0xY2U2LTQyMjktYTgwNy1hOTI5NjU1ZjQ3ZDEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiIyMzI0NmE0My1jMmJiLTRkN2MtOGU4Yi03YzZhMjMzNTg2N2IifQ", "state": "active", "startDateTime": "2025-06-13T19:03:44.7270964+00:00", "recordingKind": "azureCommunicationServices", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-1ce6-4229-a807-a929655f47d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DczNRb1NYM1NFMktXUGdSZzk5U1hRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "ee1eee42-671a-46c2-92b6-0845012c98d4", "publicEventType": "Microsoft.Communication.RecordingStateChanged"}, "time": "2025-06-13T19:03:45.2226929+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DczNRb1NYM1NFMktXUGdSZzk5U1hRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwMDAwNjY4MC0xY2U2LTQyMjktYTgwNy1hOTI5NjU1ZjQ3ZDEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiIyMzI0NmE0My1jMmJiLTRkN2MtOGU4Yi03YzZhMjMzNTg2N2IifQ/RecordingStateChanged"}, "CallDisconnected": {"id": "261635ed-2e6a-45c6-84b3-74d9232fe7ea", "source": "calling/callConnections/00006680-1ce6-4229-a807-a929655f47d1", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "00006680-1ce6-4229-a807-a929655f47d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DczNRb1NYM1NFMktXUGdSZzk5U1hRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "ee1eee42-671a-46c2-92b6-0845012c98d4", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:03:50.8175925+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-1ce6-4229-a807-a929655f47d1"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json index 9c98bf805159..7e61ad08c21d 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_callautomation_client.pyTestCallAutomationClientAutomatedLiveTesttest_start_recording_with_server_call_id.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-333d-984c-04bd456001fc", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-333d-984c-04bd456001fc"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-32f5-984c-04bd456001fb", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-32f5-984c-04bd456001fb"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e1e9e609-32f9-42e8-93f1-a0221e49540e"}, "ParticipantsUpdated": {"id": "a9209bc3-e707-47d4-8236-0829d9f86bf6", "source": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-333d-984c-04bd456001fc", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-333d-984c-04bd456001fc"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-32f5-984c-04bd456001fb", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7e9-32f5-984c-04bd456001fb"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 10, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-af55-44ae-8bcd-155dd5d6e4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "e1e9e609-32f9-42e8-93f1-a0221e49540e", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T17:54:18.742348+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3"}, "CallConnected": {"id": "05eadceb-30c8-46bf-b69c-0c844808622d", "source": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "08006680-af55-44ae-8bcd-155dd5d6e4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "e1e9e609-32f9-42e8-93f1-a0221e49540e", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T17:54:07.7031066+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3"}, "RecordingStateChanged": {"id": "4af75f58-f160-4382-9893-e6de4d0b98f0", "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC1kYmUxLTQ5YTYtYTZiYi05MTRhODE0NmViNTkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2MTIzMjk3YS00MDIxLTQxZmQtYjRlMi1lMDU3YTMzMjI3OGMifQ/RecordingStateChanged", "type": "Microsoft.Communication.RecordingStateChanged", "data": {"recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC1kYmUxLTQ5YTYtYTZiYi05MTRhODE0NmViNTkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2MTIzMjk3YS00MDIxLTQxZmQtYjRlMi1lMDU3YTMzMjI3OGMifQ", "state": "inactive", "startDateTime": "0001-01-01T00:00:00+00:00", "recordingKind": "azureCommunicationServices", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "08006680-dbe1-49a6-a6bb-914a8146eb59", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "e1e9e609-32f9-42e8-93f1-a0221e49540e", "publicEventType": "Microsoft.Communication.RecordingStateChanged"}, "time": "2025-05-28T17:54:13.6015841+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwODAwNjY4MC1kYmUxLTQ5YTYtYTZiYi05MTRhODE0NmViNTkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2MTIzMjk3YS00MDIxLTQxZmQtYjRlMi1lMDU3YTMzMjI3OGMifQ/RecordingStateChanged"}, "CallDisconnected": {"id": "4f0565eb-b031-43ea-afba-fe792826c879", "source": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "08006680-af55-44ae-8bcd-155dd5d6e4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NY0ZIWm44Vk4wQ2VoSXFmTmIyOTZ3P2k9MTAtMTI4LTAtMTI1JmU9NjM4ODM2MjYxNDk1OTU0NzQy", "correlationId": "e1e9e609-32f9-42e8-93f1-a0221e49540e", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T17:54:21.7997014+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/08006680-af55-44ae-8bcd-155dd5d6e4c3"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-3567-93f0-3a3a0d004e60", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-3567-93f0-3a3a0d004e60"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-350d-93f0-3a3a0d004e5f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-350d-93f0-3a3a0d004e5f"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9aU1BKZDJwanRrcXljdHJIU21fTTV3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "dba00566-c94d-4912-8087-3f54101e0aa4"}, "ParticipantsUpdated": {"id": "6f5163f5-60b1-47bc-a180-71542864becd", "source": "calling/callConnections/00006680-abfc-452c-a900-b8073a5d72ab", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-3567-93f0-3a3a0d004e60", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-3567-93f0-3a3a0d004e60"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-350d-93f0-3a3a0d004e5f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8e-350d-93f0-3a3a0d004e5f"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 10, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-abfc-452c-a900-b8073a5d72ab", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9aU1BKZDJwanRrcXljdHJIU21fTTV3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "dba00566-c94d-4912-8087-3f54101e0aa4", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:03:22.8424042+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-abfc-452c-a900-b8073a5d72ab"}, "CallConnected": {"id": "59309fd3-7789-47b0-a749-9c2e5bf42a85", "source": "calling/callConnections/00006680-abfc-452c-a900-b8073a5d72ab", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "00006680-abfc-452c-a900-b8073a5d72ab", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9aU1BKZDJwanRrcXljdHJIU21fTTV3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "dba00566-c94d-4912-8087-3f54101e0aa4", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:03:12.6141314+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-abfc-452c-a900-b8073a5d72ab"}, "RecordingStateChanged": {"id": "a8f5f015-1db8-410e-b50c-8f37a55f5350", "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9aU1BKZDJwanRrcXljdHJIU21fTTV3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwMDAwNjY4MC03NDYwLTRlNmMtYTVjNS1hOGYyM2E2Y2EyY2YiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI1YTY4MTBiNi1kZjExLTRhYjItYWM4NS1jZTk0NjRkZDBlMTcifQ/RecordingStateChanged", "type": "Microsoft.Communication.RecordingStateChanged", "data": {"recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwMDAwNjY4MC03NDYwLTRlNmMtYTVjNS1hOGYyM2E2Y2EyY2YiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI1YTY4MTBiNi1kZjExLTRhYjItYWM4NS1jZTk0NjRkZDBlMTcifQ", "state": "active", "startDateTime": "2025-06-13T19:03:17.3413759+00:00", "recordingKind": "azureCommunicationServices", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-7460-4e6c-a5c5-a8f23a6ca2cf", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9aU1BKZDJwanRrcXljdHJIU21fTTV3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "dba00566-c94d-4912-8087-3f54101e0aa4", "publicEventType": "Microsoft.Communication.RecordingStateChanged"}, "time": "2025-06-13T19:03:17.8132826+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9aU1BKZDJwanRrcXljdHJIU21fTTV3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIwMDAwNjY4MC03NDYwLTRlNmMtYTVjNS1hOGYyM2E2Y2EyY2YiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI1YTY4MTBiNi1kZjExLTRhYjItYWM4NS1jZTk0NjRkZDBlMTcifQ/RecordingStateChanged"}, "CallDisconnected": {"id": "be548503-dfac-4b8b-b915-2baf602564bc", "source": "calling/callConnections/00006680-abfc-452c-a900-b8073a5d72ab", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "00006680-abfc-452c-a900-b8073a5d72ab", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9aU1BKZDJwanRrcXljdHJIU21fTTV3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "dba00566-c94d-4912-8087-3f54101e0aa4", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:03:25.9893967+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-abfc-452c-a900-b8073a5d72ab"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json index ac1383abcc14..cbcef67b7a7a 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_hold_unhold_participant_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f58-024c-04bd4560034e", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f58-024c-04bd4560034e"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f17-024c-04bd4560034d", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f17-024c-04bd4560034d"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hQnNlenE0TDQwbWFxQzdTNXM2Y1VBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e8b4718e-7630-424d-a03e-dce3ab7d0358"}, "ParticipantsUpdated": {"id": "6a8c3a52-c2a5-4eff-b2bc-065d543e30f5", "source": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f58-024c-04bd4560034e", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f58-024c-04bd4560034e"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f17-024c-04bd4560034d", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-7f17-024c-04bd4560034d"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 6, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-9528-4a4f-bd55-9a2448bd17d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hQnNlenE0TDQwbWFxQzdTNXM2Y1VBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "e8b4718e-7630-424d-a03e-dce3ab7d0358", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:13:08.4791546+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3"}, "CallConnected": {"id": "3a35046c-3930-4c7f-b0b0-eb8a95b180ae", "source": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-9528-4a4f-bd55-9a2448bd17d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hQnNlenE0TDQwbWFxQzdTNXM2Y1VBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "e8b4718e-7630-424d-a03e-dce3ab7d0358", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:13:00.2373884+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3"}, "CallDisconnected": {"id": "3fd6ed74-3340-482a-a9ce-fb126c86d8e5", "source": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-9528-4a4f-bd55-9a2448bd17d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9hQnNlenE0TDQwbWFxQzdTNXM2Y1VBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "e8b4718e-7630-424d-a03e-dce3ab7d0358", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:13:10.663352+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-9528-4a4f-bd55-9a2448bd17d3"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-a372-f6c7-593a0d004dbd", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-a372-f6c7-593a0d004dbd"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-a33d-f6c7-593a0d004dbc", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-a33d-f6c7-593a0d004dbc"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nVHJGQjNKbTMwQ0hIaXplWm9XZXhBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e351dcd4-ab5a-46cf-b995-3e4a6cdef646"}, "ParticipantsUpdated": {"id": "f2d34aa1-34ce-4c5f-b519-88bf59f27db2", "source": "calling/callConnections/00006680-a245-4cb6-a784-1d2f17f18fa7", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-a33d-f6c7-593a0d004dbc", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-a33d-f6c7-593a0d004dbc"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-a372-f6c7-593a0d004dbd", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-a372-f6c7-593a0d004dbd"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 6, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-a245-4cb6-a784-1d2f17f18fa7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nVHJGQjNKbTMwQ0hIaXplWm9XZXhBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "e351dcd4-ab5a-46cf-b995-3e4a6cdef646", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:04:55.2299673+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-a245-4cb6-a784-1d2f17f18fa7"}, "CallConnected": {"id": "1420fee1-7bbf-4f99-9f43-8e1f25e3c8b6", "source": "calling/callConnections/00006680-a245-4cb6-a784-1d2f17f18fa7", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "00006680-a245-4cb6-a784-1d2f17f18fa7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nVHJGQjNKbTMwQ0hIaXplWm9XZXhBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "e351dcd4-ab5a-46cf-b995-3e4a6cdef646", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:04:47.2145609+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-a245-4cb6-a784-1d2f17f18fa7"}, "CallDisconnected": {"id": "c18a0262-2e9b-4585-aeef-b03bb01e941d", "source": "calling/callConnections/00006680-a245-4cb6-a784-1d2f17f18fa7", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "00006680-a245-4cb6-a784-1d2f17f18fa7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nVHJGQjNKbTMwQ0hIaXplWm9XZXhBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "e351dcd4-ab5a-46cf-b995-3e4a6cdef646", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:04:57.3968075+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-a245-4cb6-a784-1d2f17f18fa7"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json index 5c32cf320d89..6f1525b0b191 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_add_and_mute_participant_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-38b7-024c-04bd45600349", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-38b7-024c-04bd45600349"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-3871-024c-04bd45600348", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-3871-024c-04bd45600348"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90VC15YlJSQ0JVT0xqNVd3elM0MTR3P2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "42f6e501-3071-441d-91c6-cfbc22131456"}, "ParticipantsUpdated": {"id": "f81849cc-196f-4ad0-bcaa-f8ab19718484", "source": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-3871-024c-04bd45600348", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-3871-024c-04bd45600348"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-38b7-024c-04bd45600349", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-38b7-024c-04bd45600349"}}, "isMuted": true, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-ed12-4b4a-84de-195342fc26b5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90VC15YlJSQ0JVT0xqNVd3elM0MTR3P2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "42f6e501-3071-441d-91c6-cfbc22131456", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:12:47.3835083+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5"}, "CallConnected": {"id": "f6994e75-9b90-40ee-85f3-9e5a40fd2e92", "source": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-ed12-4b4a-84de-195342fc26b5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90VC15YlJSQ0JVT0xqNVd3elM0MTR3P2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "42f6e501-3071-441d-91c6-cfbc22131456", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:12:41.8733173+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5"}, "CallDisconnected": {"id": "c95f7382-4012-46d5-950e-3e9da228d0ee", "source": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-ed12-4b4a-84de-195342fc26b5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi90VC15YlJSQ0JVT0xqNVd3elM0MTR3P2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "42f6e501-3071-441d-91c6-cfbc22131456", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:12:49.3377552+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ed12-4b4a-84de-195342fc26b5"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-59fc-f6c7-593a0d004db4", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-59fc-f6c7-593a0d004db4"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-59ad-93f0-3a3a0d004e7d", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-59ad-93f0-3a3a0d004e7d"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tUEJra1o3WGZrLUlSTlZQb1pNRFlRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "0776eed0-d1df-4f88-be45-dd21d9fe5f92"}, "ParticipantsUpdated": {"id": "81405604-4e4e-4732-84a8-14f0dfa99268", "source": "calling/callConnections/00006680-3197-4e1d-af58-eda435366a55", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-59fc-f6c7-593a0d004db4", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-59fc-f6c7-593a0d004db4"}}, "isMuted": true, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-59ad-93f0-3a3a0d004e7d", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-59ad-93f0-3a3a0d004e7d"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 4, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-3197-4e1d-af58-eda435366a55", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tUEJra1o3WGZrLUlSTlZQb1pNRFlRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "0776eed0-d1df-4f88-be45-dd21d9fe5f92", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:04:33.3468914+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-3197-4e1d-af58-eda435366a55"}, "CallConnected": {"id": "15ebe495-ca10-4f37-a9cf-547d4fbe990f", "source": "calling/callConnections/00006680-3197-4e1d-af58-eda435366a55", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "00006680-3197-4e1d-af58-eda435366a55", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tUEJra1o3WGZrLUlSTlZQb1pNRFlRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "0776eed0-d1df-4f88-be45-dd21d9fe5f92", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:04:27.6749362+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-3197-4e1d-af58-eda435366a55"}, "CallDisconnected": {"id": "57f87ab6-0d67-4156-801d-a563245cb406", "source": "calling/callConnections/00006680-3197-4e1d-af58-eda435366a55", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "00006680-3197-4e1d-af58-eda435366a55", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tUEJra1o3WGZrLUlSTlZQb1pNRFlRP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "0776eed0-d1df-4f88-be45-dd21d9fe5f92", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:04:35.1102872+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-3197-4e1d-af58-eda435366a55"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json index ad46c49b2eed..f79fe4ca173e 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ed3b-e541-09bd45607901", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ed3b-e541-09bd45607901"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ecf9-e541-09bd45607900", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ecf9-e541-09bd45607900"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c"}, "ParticipantsUpdated": {"id": "f0bfd995-8201-48b8-862a-76ee52695dab", "source": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ed3b-e541-09bd45607901", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ed3b-e541-09bd45607901"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ecf9-e541-09bd45607900", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-ecf9-e541-09bd45607900"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "17006980-1230-4b0a-89f2-4a0ad34f33d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:16:55.9102942+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1"}, "CallConnected": {"id": "a5ca4e49-a430-431e-821c-eb73b1df94e5", "source": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "17006980-1230-4b0a-89f2-4a0ad34f33d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:16:45.1989074+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1"}, "PlayStarted": {"id": "f418f7f7-acf7-4a4c-a20f-3527a8db442d", "source": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "17006980-1230-4b0a-89f2-4a0ad34f33d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:16:49.5309875+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1"}, "PlayCompleted": {"id": "56f7d1be-c452-44a4-820a-cbba97bd658e", "source": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "17006980-1230-4b0a-89f2-4a0ad34f33d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:16:55.8868069+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1"}, "CallDisconnected": {"id": "c6a20819-645e-47bc-841d-ac47c6ceaad5", "source": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "17006980-1230-4b0a-89f2-4a0ad34f33d1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9KOUd2aDdQYkxVbTFBaEhJRTJIRWV3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "e8d49bac-d4a1-4e65-88c7-1d615293c67c", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:16:56.3974495+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-1230-4b0a-89f2-4a0ad34f33d1"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-16ce-ac46-04bd4560518b", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-16ce-ac46-04bd4560518b"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-1699-ac46-04bd4560518a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-1699-ac46-04bd4560518a"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi85UlhxemdIdGNFS1A1ZkhRNHdnbENRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f1d5f17c-a02c-41f6-9475-3dfac3768c8d"}, "ParticipantsUpdated": {"id": "f1028473-4fa7-49da-b35e-eb04bf1f3b21", "source": "calling/callConnections/2c006980-821c-463c-a03b-4b6f8bb5f3ff", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-16ce-ac46-04bd4560518b", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-16ce-ac46-04bd4560518b"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-1699-ac46-04bd4560518a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-1699-ac46-04bd4560518a"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "2c006980-821c-463c-a03b-4b6f8bb5f3ff", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi85UlhxemdIdGNFS1A1ZkhRNHdnbENRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "f1d5f17c-a02c-41f6-9475-3dfac3768c8d", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:08:42.0285393+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-821c-463c-a03b-4b6f8bb5f3ff"}, "CallConnected": {"id": "9553c5b6-32f9-4ae2-aebb-701efb10200b", "source": "calling/callConnections/2c006980-821c-463c-a03b-4b6f8bb5f3ff", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "2c006980-821c-463c-a03b-4b6f8bb5f3ff", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi85UlhxemdIdGNFS1A1ZkhRNHdnbENRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "f1d5f17c-a02c-41f6-9475-3dfac3768c8d", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:08:31.853237+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-821c-463c-a03b-4b6f8bb5f3ff"}, "PlayStarted": {"id": "6e0e2c2c-4d1b-4528-94f9-cd24519bba6c", "source": "calling/callConnections/2c006980-821c-463c-a03b-4b6f8bb5f3ff", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-821c-463c-a03b-4b6f8bb5f3ff", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi85UlhxemdIdGNFS1A1ZkhRNHdnbENRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "f1d5f17c-a02c-41f6-9475-3dfac3768c8d", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:08:35.6268426+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-821c-463c-a03b-4b6f8bb5f3ff"}, "PlayCompleted": {"id": "5f888ad5-4c5b-4b83-8d08-5d6e908e33af", "source": "calling/callConnections/2c006980-821c-463c-a03b-4b6f8bb5f3ff", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-821c-463c-a03b-4b6f8bb5f3ff", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi85UlhxemdIdGNFS1A1ZkhRNHdnbENRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "f1d5f17c-a02c-41f6-9475-3dfac3768c8d", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-06-13T19:08:42.0060669+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-821c-463c-a03b-4b6f8bb5f3ff"}, "CallDisconnected": {"id": "951b5367-2efb-49b8-a759-0e5feee166dd", "source": "calling/callConnections/2c006980-821c-463c-a03b-4b6f8bb5f3ff", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "2c006980-821c-463c-a03b-4b6f8bb5f3ff", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi85UlhxemdIdGNFS1A1ZkhRNHdnbENRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "f1d5f17c-a02c-41f6-9475-3dfac3768c8d", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:08:42.5852123+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-821c-463c-a03b-4b6f8bb5f3ff"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json index 02e792fd4271..03684ef730b6 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_combined_file_and_text_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d178-a842-04bd45600298", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d178-a842-04bd45600298"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d115-a842-04bd45600297", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d115-a842-04bd45600297"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6"}, "ParticipantsUpdated": {"id": "77edd7dc-7fd6-422a-b771-c8c8ed29d2b7", "source": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d178-a842-04bd45600298", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d178-a842-04bd45600298"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d115-a842-04bd45600297", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b802-d115-a842-04bd45600297"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "1b006680-bf6a-4961-8028-6baabea395c5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:22:06.0377646+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5"}, "CallConnected": {"id": "a6896ee6-4fab-4ff0-90b7-49363b4d35e5", "source": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "1b006680-bf6a-4961-8028-6baabea395c5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:22:06.0533919+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5"}, "PlayStarted": {"id": "0957ee2c-9f6b-4cb2-b868-f2c3fdd3468b", "source": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "1b006680-bf6a-4961-8028-6baabea395c5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:22:08.8453223+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5"}, "PlayCompleted": {"id": "041be74b-d2b5-4acb-8b6a-1c1ea2e62efe", "source": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "1b006680-bf6a-4961-8028-6baabea395c5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:22:15.1160394+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5"}, "CallDisconnected": {"id": "9e089c62-b1a3-43b9-be96-3ab73ea5458c", "source": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "1b006680-bf6a-4961-8028-6baabea395c5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tYnBucEcydEgwZW5UV0MyZWkzRkVnP2k9MTAtNjAtMTAtMTA4JmU9NjM4ODM1NDI2NzIwMTE3MTM0", "correlationId": "846641f0-6e11-450f-8fed-57b00fb33bf6", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:22:15.482516+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/1b006680-bf6a-4961-8028-6baabea395c5"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-6d18-ac46-04bd45605191", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-6d18-ac46-04bd45605191"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-6cde-ac46-04bd45605190", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-6cde-ac46-04bd45605190"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Ick9pQmtEamJFZUotcWR3N1c2el9BP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "4f27fc51-3036-43d4-9f9c-08b7c1aff024"}, "ParticipantsUpdated": {"id": "2c994ef6-fd64-412f-93ab-4e8cdc3fe491", "source": "calling/callConnections/2c006980-ccda-49b4-9754-631ceaddd19b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-6d18-ac46-04bd45605191", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-6d18-ac46-04bd45605191"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-6cde-ac46-04bd45605190", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-6cde-ac46-04bd45605190"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "2c006980-ccda-49b4-9754-631ceaddd19b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Ick9pQmtEamJFZUotcWR3N1c2el9BP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "4f27fc51-3036-43d4-9f9c-08b7c1aff024", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:08:53.6831446+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-ccda-49b4-9754-631ceaddd19b"}, "CallConnected": {"id": "1e21408f-24ed-4d63-b352-7b0b35cfcd53", "source": "calling/callConnections/2c006980-ccda-49b4-9754-631ceaddd19b", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "2c006980-ccda-49b4-9754-631ceaddd19b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Ick9pQmtEamJFZUotcWR3N1c2el9BP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "4f27fc51-3036-43d4-9f9c-08b7c1aff024", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:08:53.809209+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-ccda-49b4-9754-631ceaddd19b"}, "PlayStarted": {"id": "279a17d9-6c53-48b4-b5db-9bf307cbc867", "source": "calling/callConnections/2c006980-ccda-49b4-9754-631ceaddd19b", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-ccda-49b4-9754-631ceaddd19b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Ick9pQmtEamJFZUotcWR3N1c2el9BP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "4f27fc51-3036-43d4-9f9c-08b7c1aff024", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:08:56.1522348+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-ccda-49b4-9754-631ceaddd19b"}, "PlayCompleted": {"id": "c9c75b77-8d0a-4c42-8e2b-c58416689bbb", "source": "calling/callConnections/2c006980-ccda-49b4-9754-631ceaddd19b", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-ccda-49b4-9754-631ceaddd19b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Ick9pQmtEamJFZUotcWR3N1c2el9BP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "4f27fc51-3036-43d4-9f9c-08b7c1aff024", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-06-13T19:09:02.4242918+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-ccda-49b4-9754-631ceaddd19b"}, "CallDisconnected": {"id": "24c29255-8107-4d00-a3f4-233fbf33b26c", "source": "calling/callConnections/2c006980-ccda-49b4-9754-631ceaddd19b", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "2c006980-ccda-49b4-9754-631ceaddd19b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9Ick9pQmtEamJFZUotcWR3N1c2el9BP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "4f27fc51-3036-43d4-9f9c-08b7c1aff024", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:09:03.1419821+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-ccda-49b4-9754-631ceaddd19b"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json index 4eacee067e84..d94f749a2db7 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_media_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-ef64-024c-04bd45600347", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-ef64-024c-04bd45600347"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-eeb8-0e04-343a0d007396", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-eeb8-0e04-343a0d007396"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6"}, "ParticipantsUpdated": {"id": "edb4853d-b20d-45b8-97de-6a7708573e55", "source": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-ef64-024c-04bd45600347", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-ef64-024c-04bd45600347"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-eeb8-0e04-343a0d007396", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7f9-eeb8-0e04-343a0d007396"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "22006780-b1cf-49a1-ada8-f83894ceb4db", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:12:23.5062029+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db"}, "CallConnected": {"id": "265a6cb3-77c4-4ddb-9bde-a39852ebe4cb", "source": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "22006780-b1cf-49a1-ada8-f83894ceb4db", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:12:23.6206097+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db"}, "PlayStarted": {"id": "036630a1-4765-40b6-9a2d-64c7181eef03", "source": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "22006780-b1cf-49a1-ada8-f83894ceb4db", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:12:26.3880954+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db"}, "PlayCompleted": {"id": "714bf527-9834-4110-b14d-c444e7ee9528", "source": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "22006780-b1cf-49a1-ada8-f83894ceb4db", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:12:30.6313941+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db"}, "CallDisconnected": {"id": "6cc24549-5a7b-4e8c-8d3c-637e137845db", "source": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "22006780-b1cf-49a1-ada8-f83894ceb4db", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDUtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9FWDRpVGZEVG9rLXdyVnJvVTB4OENnP2k9MTAtMTI4LTcwLTIyNiZlPTYzODgzNjQwNTM3ODExNjY5OQ==", "correlationId": "1729984e-18eb-4c25-9665-a2f2f0db9bc6", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:12:31.1803395+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/22006780-b1cf-49a1-ada8-f83894ceb4db"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-1174-93f0-3a3a0d004e72", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-1174-93f0-3a3a0d004e72"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-1113-93f0-3a3a0d004e71", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-1113-93f0-3a3a0d004e71"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DU04xQTlXOUIwbWM5SEtmekEzNF9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "a86319e5-40bd-4659-b6a6-81f7e20b0a80"}, "ParticipantsUpdated": {"id": "505b2364-9c7d-47a6-9074-e359b8bf099e", "source": "calling/callConnections/00006680-6638-49e3-b66e-df39cb1c128b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-1113-93f0-3a3a0d004e71", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-1113-93f0-3a3a0d004e71"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-1174-93f0-3a3a0d004e72", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-1174-93f0-3a3a0d004e72"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-6638-49e3-b66e-df39cb1c128b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DU04xQTlXOUIwbWM5SEtmekEzNF9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "a86319e5-40bd-4659-b6a6-81f7e20b0a80", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:04:08.7063179+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-6638-49e3-b66e-df39cb1c128b"}, "CallConnected": {"id": "077857c1-ff5c-4200-9ec2-53423fac04cc", "source": "calling/callConnections/00006680-6638-49e3-b66e-df39cb1c128b", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "00006680-6638-49e3-b66e-df39cb1c128b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DU04xQTlXOUIwbWM5SEtmekEzNF9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "a86319e5-40bd-4659-b6a6-81f7e20b0a80", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:04:08.8313851+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-6638-49e3-b66e-df39cb1c128b"}, "PlayStarted": {"id": "1a146456-4957-46a1-9f2c-6820a50e2b36", "source": "calling/callConnections/00006680-6638-49e3-b66e-df39cb1c128b", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-6638-49e3-b66e-df39cb1c128b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DU04xQTlXOUIwbWM5SEtmekEzNF9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "a86319e5-40bd-4659-b6a6-81f7e20b0a80", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:04:11.8735748+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-6638-49e3-b66e-df39cb1c128b"}, "PlayCompleted": {"id": "da159838-030f-47f0-930f-565e453b84f1", "source": "calling/callConnections/00006680-6638-49e3-b66e-df39cb1c128b", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-6638-49e3-b66e-df39cb1c128b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DU04xQTlXOUIwbWM5SEtmekEzNF9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "a86319e5-40bd-4659-b6a6-81f7e20b0a80", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-06-13T19:04:16.0846799+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-6638-49e3-b66e-df39cb1c128b"}, "CallDisconnected": {"id": "4380a8d9-f960-48f3-adac-226f355f4733", "source": "calling/callConnections/00006680-6638-49e3-b66e-df39cb1c128b", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "00006680-6638-49e3-b66e-df39cb1c128b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DU04xQTlXOUIwbWM5SEtmekEzNF9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "a86319e5-40bd-4659-b6a6-81f7e20b0a80", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:04:16.4638433+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-6638-49e3-b66e-df39cb1c128b"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json index 49f9b453421c..a19dff36c5e7 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bfdd-024c-04bd45600360", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bfdd-024c-04bd45600360"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bf99-024c-04bd4560035f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bf99-024c-04bd4560035f"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a"}, "ParticipantsUpdated": {"id": "2557834a-bad6-4860-bdb8-9c78cfd77df9", "source": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bf99-024c-04bd4560035f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bf99-024c-04bd4560035f"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bfdd-024c-04bd45600360", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-bfdd-024c-04bd45600360"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-d377-4cba-9bac-42253e6ec353", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:15:44.5216274+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353"}, "CallConnected": {"id": "75209c06-f65e-4d3f-a85c-b5e493ab6b89", "source": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-d377-4cba-9bac-42253e6ec353", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:15:27.4044744+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353"}, "PlayStarted": {"id": "8729ce02-8af2-4b02-99c8-f9fe6888b698", "source": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-d377-4cba-9bac-42253e6ec353", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:15:31.6095655+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353"}, "PlayCompleted": {"id": "c1726e2c-c435-404e-bda0-52ca78ff98c2", "source": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-d377-4cba-9bac-42253e6ec353", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:15:44.5079158+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353"}, "CallDisconnected": {"id": "9a0d6bdf-15b3-488c-9c44-edafc16a9882", "source": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-d377-4cba-9bac-42253e6ec353", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9OX1ZEbzdOUjRrV20xeTgwV2RsaFJnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "8771e35e-0141-4647-84b4-a8004dd2595a", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:15:45.3419493+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-d377-4cba-9bac-42253e6ec353"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-f851-ac46-04bd45605172", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-f851-ac46-04bd45605172"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-f81c-ac46-04bd45605171", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-f81c-ac46-04bd45605171"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tMGxwX3pBZkpFV2NLMC1YYlM4MGRnP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "13f36af2-1635-4c84-a634-2f4d36c8a14c"}, "ParticipantsUpdated": {"id": "2a44b534-3688-4df9-a065-850ab484e360", "source": "calling/callConnections/2c006980-a359-410d-be45-993257ccfe69", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-f851-ac46-04bd45605172", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-f851-ac46-04bd45605172"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-f81c-ac46-04bd45605171", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-f81c-ac46-04bd45605171"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "2c006980-a359-410d-be45-993257ccfe69", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tMGxwX3pBZkpFV2NLMC1YYlM4MGRnP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "13f36af2-1635-4c84-a634-2f4d36c8a14c", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:07:35.5249222+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-a359-410d-be45-993257ccfe69"}, "CallConnected": {"id": "2c1b1d3b-1720-4c4d-b452-0f1a0418ba8a", "source": "calling/callConnections/2c006980-a359-410d-be45-993257ccfe69", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "2c006980-a359-410d-be45-993257ccfe69", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tMGxwX3pBZkpFV2NLMC1YYlM4MGRnP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "13f36af2-1635-4c84-a634-2f4d36c8a14c", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:07:18.6718305+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-a359-410d-be45-993257ccfe69"}, "PlayStarted": {"id": "a0e953f1-f417-4faf-a2b7-e882d7fa5af1", "source": "calling/callConnections/2c006980-a359-410d-be45-993257ccfe69", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-a359-410d-be45-993257ccfe69", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tMGxwX3pBZkpFV2NLMC1YYlM4MGRnP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "13f36af2-1635-4c84-a634-2f4d36c8a14c", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:07:22.6368659+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-a359-410d-be45-993257ccfe69"}, "PlayCompleted": {"id": "caa039c5-1fdc-4a03-b61f-82ff21400f2e", "source": "calling/callConnections/2c006980-a359-410d-be45-993257ccfe69", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-a359-410d-be45-993257ccfe69", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tMGxwX3pBZkpFV2NLMC1YYlM4MGRnP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "13f36af2-1635-4c84-a634-2f4d36c8a14c", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-06-13T19:07:35.5014789+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-a359-410d-be45-993257ccfe69"}, "CallDisconnected": {"id": "7b12543a-6828-4fc9-aa06-f307b26dbe2d", "source": "calling/callConnections/2c006980-a359-410d-be45-993257ccfe69", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "2c006980-a359-410d-be45-993257ccfe69", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tMGxwX3pBZkpFV2NLMC1YYlM4MGRnP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "13f36af2-1635-4c84-a634-2f4d36c8a14c", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:07:37.3759223+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-a359-410d-be45-993257ccfe69"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json index bcf64c52b7c4..80a7f123c1f4 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_operationcallbackurl_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5753-024c-04bd4560035d", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5753-024c-04bd4560035d"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5707-024c-04bd4560035c", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5707-024c-04bd4560035c"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5"}, "ParticipantsUpdated": {"id": "6b149976-9a2e-4d9d-b44b-0780475f4b2d", "source": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5707-024c-04bd4560035c", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5707-024c-04bd4560035c"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5753-024c-04bd4560035d", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fc-5753-024c-04bd4560035d"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-b57d-479d-b07a-99003c971e17", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:15:00.5383962+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17"}, "CallConnected": {"id": "4b53ca42-62c2-4811-a761-f1c5d8d0ba7c", "source": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-b57d-479d-b07a-99003c971e17", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:15:00.6488632+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17"}, "PlayStarted": {"id": "0f891ec6-8ee2-4a7e-b4ce-bb19b1c2f0cb", "source": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-b57d-479d-b07a-99003c971e17", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:15:03.1697132+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17"}, "PlayCompleted": {"id": "4beb7822-3f5b-4f58-8337-3d7cded3a70d", "source": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-b57d-479d-b07a-99003c971e17", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:15:15.9742317+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17"}, "CallDisconnected": {"id": "6b30007c-5e0d-414f-a494-bf6ebaafebcd", "source": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-b57d-479d-b07a-99003c971e17", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8tY0I0c3NtZVdrS2wyQlJRX3JDLXRRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bfea0df1-d80e-4b92-a4d7-2206df635cd5", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:15:17.0195182+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-b57d-479d-b07a-99003c971e17"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-9158-ac46-04bd4560516c", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-9158-ac46-04bd4560516c"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-8e4c-f6c7-593a0d004de6", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-8e4c-f6c7-593a0d004de6"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9td3BaaW0tUU4wdWNtckZycTdyT1VBP2k9MTAtMTI4LTk3LTE1MCZlPTYzODg1MzU0MTQ1Njg0MTI3OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "326f5bb2-5d09-4c66-b717-82818a4a02f4"}, "ParticipantsUpdated": {"id": "5bcf0084-701f-423d-9285-2ff20b506152", "source": "calling/callConnections/54006880-92d6-4337-844c-ae6ef72e29c1", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-8e4c-f6c7-593a0d004de6", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-8e4c-f6c7-593a0d004de6"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-9158-ac46-04bd4560516c", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-9158-ac46-04bd4560516c"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "54006880-92d6-4337-844c-ae6ef72e29c1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9td3BaaW0tUU4wdWNtckZycTdyT1VBP2k9MTAtMTI4LTk3LTE1MCZlPTYzODg1MzU0MTQ1Njg0MTI3OA==", "correlationId": "326f5bb2-5d09-4c66-b717-82818a4a02f4", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:06:52.694108+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/54006880-92d6-4337-844c-ae6ef72e29c1"}, "CallConnected": {"id": "5e073023-832a-4b64-9d67-f90cf7ef4e5d", "source": "calling/callConnections/54006880-92d6-4337-844c-ae6ef72e29c1", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "54006880-92d6-4337-844c-ae6ef72e29c1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9td3BaaW0tUU4wdWNtckZycTdyT1VBP2k9MTAtMTI4LTk3LTE1MCZlPTYzODg1MzU0MTQ1Njg0MTI3OA==", "correlationId": "326f5bb2-5d09-4c66-b717-82818a4a02f4", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:06:52.7412001+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/54006880-92d6-4337-844c-ae6ef72e29c1"}, "PlayStarted": {"id": "86b0ef35-619c-4223-b812-7d3648e237fd", "source": "calling/callConnections/54006880-92d6-4337-844c-ae6ef72e29c1", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "54006880-92d6-4337-844c-ae6ef72e29c1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9td3BaaW0tUU4wdWNtckZycTdyT1VBP2k9MTAtMTI4LTk3LTE1MCZlPTYzODg1MzU0MTQ1Njg0MTI3OA==", "correlationId": "326f5bb2-5d09-4c66-b717-82818a4a02f4", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:06:55.1315444+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/54006880-92d6-4337-844c-ae6ef72e29c1"}, "PlayCompleted": {"id": "ac199581-29fd-4174-bf65-f9977c51ad19", "source": "calling/callConnections/54006880-92d6-4337-844c-ae6ef72e29c1", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "54006880-92d6-4337-844c-ae6ef72e29c1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9td3BaaW0tUU4wdWNtckZycTdyT1VBP2k9MTAtMTI4LTk3LTE1MCZlPTYzODg1MzU0MTQ1Njg0MTI3OA==", "correlationId": "326f5bb2-5d09-4c66-b717-82818a4a02f4", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-06-13T19:07:07.9111119+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/54006880-92d6-4337-844c-ae6ef72e29c1"}, "CallDisconnected": {"id": "3d80a3c7-8c5a-48a6-a7bb-eebb76be02ea", "source": "calling/callConnections/54006880-92d6-4337-844c-ae6ef72e29c1", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "54006880-92d6-4337-844c-ae6ef72e29c1", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9td3BaaW0tUU4wdWNtckZycTdyT1VBP2k9MTAtMTI4LTk3LTE1MCZlPTYzODg1MzU0MTQ1Njg0MTI3OA==", "correlationId": "326f5bb2-5d09-4c66-b717-82818a4a02f4", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:07:08.1166398+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/54006880-92d6-4337-844c-ae6ef72e29c1"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json index 1a0e9469803f..810d362c44ca 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e57d-024c-04bd4560035b", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e57d-024c-04bd4560035b"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e528-024c-04bd4560035a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e528-024c-04bd4560035a"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3"}, "ParticipantsUpdated": {"id": "245baa7e-00fb-4045-84e4-a28704a7a739", "source": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e57d-024c-04bd4560035b", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e57d-024c-04bd4560035b"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e528-024c-04bd4560035a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-e528-024c-04bd4560035a"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-ab7e-4a63-935f-3b88388a8735", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:14:48.1992306+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735"}, "CallConnected": {"id": "a77c9815-df0d-4d51-aa22-8d7678a8c5eb", "source": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-ab7e-4a63-935f-3b88388a8735", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:14:31.8844736+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735"}, "PlayStarted": {"id": "d2df0517-52c6-43a4-a880-4a316472942f", "source": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-ab7e-4a63-935f-3b88388a8735", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:14:35.3704226+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735"}, "PlayCompleted": {"id": "e32ebb17-de6e-4f9d-9bc4-f194057cd505", "source": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-ab7e-4a63-935f-3b88388a8735", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:14:48.1673072+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735"}, "CallDisconnected": {"id": "26984f77-d6d9-456d-98b6-6a1996b4e749", "source": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-ab7e-4a63-935f-3b88388a8735", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9NZkRCbVpyZHAwYWtDV3BGVGRDZnhRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "608a6e58-c3cc-4dc3-8d91-d7d71de445a3", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:14:49.2571535+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-ab7e-4a63-935f-3b88388a8735"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-19c2-f6c7-593a0d004de0", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-19c2-f6c7-593a0d004de0"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-198d-f6c7-593a0d004ddf", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-198d-f6c7-593a0d004ddf"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CZVpHQU9IUm4wdWd5bU53WWpVTHRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "38f257d0-4bb9-44a0-b9f5-8c225d89d9f1"}, "ParticipantsUpdated": {"id": "57c07463-de5a-4352-a7b2-adec81553779", "source": "calling/callConnections/00006680-c61d-41cc-955f-e053b41fb1a7", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-198d-f6c7-593a0d004ddf", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-198d-f6c7-593a0d004ddf"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-19c2-f6c7-593a0d004de0", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a91-19c2-f6c7-593a0d004de0"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-c61d-41cc-955f-e053b41fb1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CZVpHQU9IUm4wdWd5bU53WWpVTHRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "38f257d0-4bb9-44a0-b9f5-8c225d89d9f1", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:06:39.1346946+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-c61d-41cc-955f-e053b41fb1a7"}, "CallConnected": {"id": "c905b08a-a248-42aa-b9d0-ced327267a91", "source": "calling/callConnections/00006680-c61d-41cc-955f-e053b41fb1a7", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "00006680-c61d-41cc-955f-e053b41fb1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CZVpHQU9IUm4wdWd5bU53WWpVTHRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "38f257d0-4bb9-44a0-b9f5-8c225d89d9f1", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:06:22.2650047+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-c61d-41cc-955f-e053b41fb1a7"}, "PlayStarted": {"id": "34944134-6f3e-4b58-8c1a-3c24777ac12d", "source": "calling/callConnections/00006680-c61d-41cc-955f-e053b41fb1a7", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-c61d-41cc-955f-e053b41fb1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CZVpHQU9IUm4wdWd5bU53WWpVTHRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "38f257d0-4bb9-44a0-b9f5-8c225d89d9f1", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:06:26.2297449+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-c61d-41cc-955f-e053b41fb1a7"}, "PlayCompleted": {"id": "9bd408f7-b4dc-4f0b-89bc-cafa41680d2b", "source": "calling/callConnections/00006680-c61d-41cc-955f-e053b41fb1a7", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-c61d-41cc-955f-e053b41fb1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CZVpHQU9IUm4wdWd5bU53WWpVTHRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "38f257d0-4bb9-44a0-b9f5-8c225d89d9f1", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-06-13T19:06:39.0975322+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-c61d-41cc-955f-e053b41fb1a7"}, "CallDisconnected": {"id": "265fe871-845b-46eb-8e25-c379f2b656c8", "source": "calling/callConnections/00006680-c61d-41cc-955f-e053b41fb1a7", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "00006680-c61d-41cc-955f-e053b41fb1a7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9CZVpHQU9IUm4wdWd5bU53WWpVTHRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "38f257d0-4bb9-44a0-b9f5-8c225d89d9f1", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:06:40.0005096+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-c61d-41cc-955f-e053b41fb1a7"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json index f16c282e1e46..9353c8092a7f 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_file_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7b03-024c-04bd45600357", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7b03-024c-04bd45600357"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7ab6-024c-04bd45600356", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7ab6-024c-04bd45600356"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b"}, "ParticipantsUpdated": {"id": "c5a9bc12-988c-482f-859f-fd49df81aa9d", "source": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7b03-024c-04bd45600357", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7b03-024c-04bd45600357"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7ab6-024c-04bd45600356", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-7ab6-024c-04bd45600356"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-fdea-4c30-99eb-3c72bfaa358f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:14:04.5905595+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f"}, "CallConnected": {"id": "dd6f5d9e-599f-44c5-bbeb-4915104824f8", "source": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-fdea-4c30-99eb-3c72bfaa358f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:14:04.7065034+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f"}, "PlayStarted": {"id": "fef2e661-b3be-42c6-9249-ba7ee868a83b", "source": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-fdea-4c30-99eb-3c72bfaa358f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:14:07.4872003+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f"}, "PlayCompleted": {"id": "09d9a674-35eb-49d2-93a5-2fe649a699c3", "source": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-fdea-4c30-99eb-3c72bfaa358f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:14:20.2831006+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f"}, "CallDisconnected": {"id": "f7cf1a66-9a89-487c-a42b-9a76da20b351", "source": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-fdea-4c30-99eb-3c72bfaa358f", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EVktPUmNkdVJVSzMxRmo4QVp2SUpnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "60f8e1a4-17a3-425d-b051-a580242b273b", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:14:21.0899735+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-fdea-4c30-99eb-3c72bfaa358f"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-a91c-f6c7-593a0d004dda", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-a91c-f6c7-593a0d004dda"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-a8d8-f6c7-593a0d004dd9", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-a8d8-f6c7-593a0d004dd9"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi84OUh6Z0tfalQwQ21Gc2dHU0JkRlRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "97dce412-a565-465f-bb95-8ba28e44d016"}, "ParticipantsUpdated": {"id": "23800ec3-2360-4e57-81a4-1e2d8d434a3e", "source": "calling/callConnections/00006680-fd1e-4d5c-bfda-83136fa68491", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-a91c-f6c7-593a0d004dda", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-a91c-f6c7-593a0d004dda"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-a8d8-f6c7-593a0d004dd9", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-a8d8-f6c7-593a0d004dd9"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-fd1e-4d5c-bfda-83136fa68491", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi84OUh6Z0tfalQwQ21Gc2dHU0JkRlRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "97dce412-a565-465f-bb95-8ba28e44d016", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:05:54.6583464+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-fd1e-4d5c-bfda-83136fa68491"}, "CallConnected": {"id": "9fcbb570-b250-430e-bfd8-83f055ee888f", "source": "calling/callConnections/00006680-fd1e-4d5c-bfda-83136fa68491", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "00006680-fd1e-4d5c-bfda-83136fa68491", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi84OUh6Z0tfalQwQ21Gc2dHU0JkRlRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "97dce412-a565-465f-bb95-8ba28e44d016", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:05:54.7939859+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-fd1e-4d5c-bfda-83136fa68491"}, "PlayStarted": {"id": "bd697e59-88a2-4e37-9d50-731acd235453", "source": "calling/callConnections/00006680-fd1e-4d5c-bfda-83136fa68491", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-fd1e-4d5c-bfda-83136fa68491", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi84OUh6Z0tfalQwQ21Gc2dHU0JkRlRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "97dce412-a565-465f-bb95-8ba28e44d016", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:05:57.310941+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-fd1e-4d5c-bfda-83136fa68491"}, "PlayCompleted": {"id": "808d6bdb-1a1e-4d16-a770-815c4d555ab3", "source": "calling/callConnections/00006680-fd1e-4d5c-bfda-83136fa68491", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-fd1e-4d5c-bfda-83136fa68491", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi84OUh6Z0tfalQwQ21Gc2dHU0JkRlRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "97dce412-a565-465f-bb95-8ba28e44d016", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-06-13T19:06:10.0951769+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-fd1e-4d5c-bfda-83136fa68491"}, "CallDisconnected": {"id": "345ee4df-c350-4417-9682-4a8fdfec8e48", "source": "calling/callConnections/00006680-fd1e-4d5c-bfda-83136fa68491", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "00006680-fd1e-4d5c-bfda-83136fa68491", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi84OUh6Z0tfalQwQ21Gc2dHU0JkRlRBP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "97dce412-a565-465f-bb95-8ba28e44d016", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:06:11.1792816+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-fd1e-4d5c-bfda-83136fa68491"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json index a61bab1f3f99..bbde1f454287 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-3632-024c-04bd45600364", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-3632-024c-04bd45600364"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-35f3-024c-04bd45600363", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-35f3-024c-04bd45600363"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30"}, "ParticipantsUpdated": {"id": "b7711d16-b6f1-4730-9aa4-2abc2e3782ab", "source": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-35f3-024c-04bd45600363", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-35f3-024c-04bd45600363"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-3632-024c-04bd45600364", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-3632-024c-04bd45600364"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-cba9-4ab8-a386-15ed38e3f4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:16:09.9295905+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3"}, "CallConnected": {"id": "edde4ea8-19bc-42cf-b242-6e08f0709dc8", "source": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-cba9-4ab8-a386-15ed38e3f4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:15:57.9401351+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3"}, "PlayStarted": {"id": "fc58baf3-4004-41d1-a589-614e66151d34", "source": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-cba9-4ab8-a386-15ed38e3f4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:16:03.2228025+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3"}, "PlayCompleted": {"id": "49f8ac06-cd05-4441-be1f-f8fc915ba61c", "source": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-cba9-4ab8-a386-15ed38e3f4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:16:09.9040564+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3"}, "CallDisconnected": {"id": "0173d82d-5040-464f-bcc9-51f3c73da7a6", "source": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-cba9-4ab8-a386-15ed38e3f4c3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9IcGNBaHB2RzVVbV9XZml1a0ZpVTNRP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "c5051892-0bb3-4ad7-acca-fcc9246b7a30", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:16:10.1238066+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-cba9-4ab8-a386-15ed38e3f4c3"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-6b77-ac46-04bd4560517d", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-6b77-ac46-04bd4560517d"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-6b3a-ac46-04bd4560517c", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-6b3a-ac46-04bd4560517c"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XaTU2TzFFN1NrZTN0N2V2UUw1WGhnP2k9MTAtNjAtMTUtMTg5JmU9NjM4ODUyNjkxOTcyNjcxMDcy", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "aebf37f3-0e8f-4845-99fc-8f3216837702"}, "ParticipantsUpdated": {"id": "4581de5a-c695-441e-a7c7-9a3bbdb65239", "source": "calling/callConnections/2c006980-bd4f-496a-a1dd-2c9dfe55e719", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-6b77-ac46-04bd4560517d", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-6b77-ac46-04bd4560517d"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-6b3a-ac46-04bd4560517c", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-6b3a-ac46-04bd4560517c"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "2c006980-bd4f-496a-a1dd-2c9dfe55e719", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XaTU2TzFFN1NrZTN0N2V2UUw1WGhnP2k9MTAtNjAtMTUtMTg5JmU9NjM4ODUyNjkxOTcyNjcxMDcy", "correlationId": "aebf37f3-0e8f-4845-99fc-8f3216837702", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:07:58.9777168+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-bd4f-496a-a1dd-2c9dfe55e719"}, "CallConnected": {"id": "4ae68a39-fc2b-4b5e-a693-b0e52b9be22f", "source": "calling/callConnections/2c006980-bd4f-496a-a1dd-2c9dfe55e719", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "2c006980-bd4f-496a-a1dd-2c9dfe55e719", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XaTU2TzFFN1NrZTN0N2V2UUw1WGhnP2k9MTAtNjAtMTUtMTg5JmU9NjM4ODUyNjkxOTcyNjcxMDcy", "correlationId": "aebf37f3-0e8f-4845-99fc-8f3216837702", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:07:48.0273321+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-bd4f-496a-a1dd-2c9dfe55e719"}, "PlayStarted": {"id": "1b49d359-71e0-4178-adfc-af2ee815cd63", "source": "calling/callConnections/2c006980-bd4f-496a-a1dd-2c9dfe55e719", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-bd4f-496a-a1dd-2c9dfe55e719", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XaTU2TzFFN1NrZTN0N2V2UUw1WGhnP2k9MTAtNjAtMTUtMTg5JmU9NjM4ODUyNjkxOTcyNjcxMDcy", "correlationId": "aebf37f3-0e8f-4845-99fc-8f3216837702", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:07:52.3163916+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-bd4f-496a-a1dd-2c9dfe55e719"}, "PlayCompleted": {"id": "c9fbcd28-dea6-423f-90d1-12e16267ba3c", "source": "calling/callConnections/2c006980-bd4f-496a-a1dd-2c9dfe55e719", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-bd4f-496a-a1dd-2c9dfe55e719", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XaTU2TzFFN1NrZTN0N2V2UUw1WGhnP2k9MTAtNjAtMTUtMTg5JmU9NjM4ODUyNjkxOTcyNjcxMDcy", "correlationId": "aebf37f3-0e8f-4845-99fc-8f3216837702", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-06-13T19:07:58.9464697+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-bd4f-496a-a1dd-2c9dfe55e719"}, "CallDisconnected": {"id": "a2874cf4-aa6c-4b12-853f-2591920ac634", "source": "calling/callConnections/2c006980-bd4f-496a-a1dd-2c9dfe55e719", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "2c006980-bd4f-496a-a1dd-2c9dfe55e719", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XaTU2TzFFN1NrZTN0N2V2UUw1WGhnP2k9MTAtNjAtMTUtMTg5JmU9NjM4ODUyNjkxOTcyNjcxMDcy", "correlationId": "aebf37f3-0e8f-4845-99fc-8f3216837702", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:07:59.8598226+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-bd4f-496a-a1dd-2c9dfe55e719"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json index 9d1c6592ffdf..e96589c60606 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_multiple_text_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-9683-024c-04bd45600367", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-9683-024c-04bd45600367"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-962f-024c-04bd45600366", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-962f-024c-04bd45600366"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222"}, "ParticipantsUpdated": {"id": "26725989-8874-49be-86f5-2684c23f3dc4", "source": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-962f-024c-04bd45600366", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-962f-024c-04bd45600366"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-9683-024c-04bd45600367", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fd-9683-024c-04bd45600367"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-5851-4ad4-979c-8fae97e4d2e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:16:23.141692+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5"}, "CallConnected": {"id": "90028e5b-4007-4971-a258-d77a1b5b6287", "source": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-5851-4ad4-979c-8fae97e4d2e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:16:23.2706233+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5"}, "PlayStarted": {"id": "c0befa06-8349-4d0c-a9ff-d254dc04f0cc", "source": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-5851-4ad4-979c-8fae97e4d2e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:16:26.0977123+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5"}, "PlayCompleted": {"id": "76a21b6d-0509-41a9-a6bf-9a1bfa2cd588", "source": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-5851-4ad4-979c-8fae97e4d2e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-05-28T18:16:32.666055+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5"}, "CallDisconnected": {"id": "2106b674-6da0-4b7c-af7b-3f7bdccf4055", "source": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-5851-4ad4-979c-8fae97e4d2e5", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi96VUdIZFJ3ekEwV2dVeGFMajFOZTFBP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "bede515f-654f-41f4-950e-9f6dc5b7c222", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:16:33.744575+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-5851-4ad4-979c-8fae97e4d2e5"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-c617-ac46-04bd45605183", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-c617-ac46-04bd45605183"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-c5e1-ac46-04bd45605182", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-c5e1-ac46-04bd45605182"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EOVo4TXJQY2UwcV83SDFNWEZhWktRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "24e7625e-eba4-4683-ac36-0b11a8d4dcf7"}, "ParticipantsUpdated": {"id": "a8c35614-76a0-47cf-a5ec-32c9ec1af7e9", "source": "calling/callConnections/2c006980-e818-4f91-bd34-88f70e4e5221", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-c617-ac46-04bd45605183", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-c617-ac46-04bd45605183"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-c5e1-ac46-04bd45605182", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a92-c5e1-ac46-04bd45605182"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "2c006980-e818-4f91-bd34-88f70e4e5221", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EOVo4TXJQY2UwcV83SDFNWEZhWktRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "24e7625e-eba4-4683-ac36-0b11a8d4dcf7", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:08:11.1336183+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-e818-4f91-bd34-88f70e4e5221"}, "CallConnected": {"id": "20ec6973-d4e3-4749-8447-c084a227bc0c", "source": "calling/callConnections/2c006980-e818-4f91-bd34-88f70e4e5221", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "2c006980-e818-4f91-bd34-88f70e4e5221", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EOVo4TXJQY2UwcV83SDFNWEZhWktRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "24e7625e-eba4-4683-ac36-0b11a8d4dcf7", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:08:11.2726832+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-e818-4f91-bd34-88f70e4e5221"}, "PlayStarted": {"id": "f44329b7-a922-4cd0-b221-d16be157280a", "source": "calling/callConnections/2c006980-e818-4f91-bd34-88f70e4e5221", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-e818-4f91-bd34-88f70e4e5221", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EOVo4TXJQY2UwcV83SDFNWEZhWktRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "24e7625e-eba4-4683-ac36-0b11a8d4dcf7", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:08:13.7639749+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-e818-4f91-bd34-88f70e4e5221"}, "PlayCompleted": {"id": "372a4c13-07f9-4d7a-b5bb-0b4cd8198872", "source": "calling/callConnections/2c006980-e818-4f91-bd34-88f70e4e5221", "type": "Microsoft.Communication.PlayCompleted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-e818-4f91-bd34-88f70e4e5221", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EOVo4TXJQY2UwcV83SDFNWEZhWktRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "24e7625e-eba4-4683-ac36-0b11a8d4dcf7", "publicEventType": "Microsoft.Communication.PlayCompleted"}, "time": "2025-06-13T19:08:20.317934+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-e818-4f91-bd34-88f70e4e5221"}, "CallDisconnected": {"id": "40f89fd4-f89c-4de0-821e-c046445945a3", "source": "calling/callConnections/2c006980-e818-4f91-bd34-88f70e4e5221", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "2c006980-e818-4f91-bd34-88f70e4e5221", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9EOVo4TXJQY2UwcV83SDFNWEZhWktRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "24e7625e-eba4-4683-ac36-0b11a8d4dcf7", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:08:21.5423295+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-e818-4f91-bd34-88f70e4e5221"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json index 3ffa9e27d304..3ba326f9807e 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-218c-e541-09bd4560791f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-218c-e541-09bd4560791f"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-2148-e541-09bd4560791e", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-2148-e541-09bd4560791e"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e"}, "ParticipantsUpdated": {"id": "4ce49d8b-09cb-4ad5-bc8b-b2b8b5435e6f", "source": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-2148-e541-09bd4560791e", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-2148-e541-09bd4560791e"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-218c-e541-09bd4560791f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b800-218c-e541-09bd4560791f"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "17006980-c1e1-4737-a37f-7b82998be4ed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:19:23.3083535+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed"}, "CallConnected": {"id": "e1c9e3d6-a61e-4d24-b846-96f2a42328d1", "source": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "17006980-c1e1-4737-a37f-7b82998be4ed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:19:13.7345991+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed"}, "PlayStarted": {"id": "c30b90e6-907d-41d6-9848-0ee4248588cd", "source": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "17006980-c1e1-4737-a37f-7b82998be4ed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:19:18.9653301+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed"}, "PlayFailed": {"id": "6ca8b59e-d8c8-4b46-972f-1d18163e4f74", "source": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "17006980-c1e1-4737-a37f-7b82998be4ed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-28T18:19:23.2926753+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed"}, "CallDisconnected": {"id": "f995f213-82b3-48b5-9127-52de7b1a0d54", "source": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "17006980-c1e1-4737-a37f-7b82998be4ed", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9DdFVseTNvcGtVbTFlN0o1azU5UHd3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b94674fa-8a13-4032-924d-33edf3e6650e", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:19:23.7339638+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1e1-4737-a37f-7b82998be4ed"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-7987-ac46-04bd456051a5", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-7987-ac46-04bd456051a5"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-794e-ac46-04bd456051a4", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-794e-ac46-04bd456051a4"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nQW4xWDFQSUlFNjU3WjBkbHVlMVRRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "5683b58d-bb85-4073-ae9a-c03488d4291d"}, "ParticipantsUpdated": {"id": "f60c8ba9-440f-48f6-8e28-1d803d96f2d5", "source": "calling/callConnections/2c006980-8ef1-46c2-84fa-357fefac0893", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-794e-ac46-04bd456051a4", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-794e-ac46-04bd456051a4"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-7987-ac46-04bd456051a5", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-7987-ac46-04bd456051a5"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "2c006980-8ef1-46c2-84fa-357fefac0893", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nQW4xWDFQSUlFNjU3WjBkbHVlMVRRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "5683b58d-bb85-4073-ae9a-c03488d4291d", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:10:11.5338153+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-8ef1-46c2-84fa-357fefac0893"}, "CallConnected": {"id": "df0d2355-f3b4-4194-8b07-4d732878d05e", "source": "calling/callConnections/2c006980-8ef1-46c2-84fa-357fefac0893", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "2c006980-8ef1-46c2-84fa-357fefac0893", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nQW4xWDFQSUlFNjU3WjBkbHVlMVRRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "5683b58d-bb85-4073-ae9a-c03488d4291d", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:10:03.0403181+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-8ef1-46c2-84fa-357fefac0893"}, "PlayStarted": {"id": "cb53e17f-ac2d-4238-978a-41e3271d4e11", "source": "calling/callConnections/2c006980-8ef1-46c2-84fa-357fefac0893", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-8ef1-46c2-84fa-357fefac0893", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nQW4xWDFQSUlFNjU3WjBkbHVlMVRRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "5683b58d-bb85-4073-ae9a-c03488d4291d", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:10:07.1802851+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-8ef1-46c2-84fa-357fefac0893"}, "PlayFailed": {"id": "2b4eb3b7-20da-4059-aa62-5181a7687ad1", "source": "calling/callConnections/2c006980-8ef1-46c2-84fa-357fefac0893", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "2c006980-8ef1-46c2-84fa-357fefac0893", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nQW4xWDFQSUlFNjU3WjBkbHVlMVRRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "5683b58d-bb85-4073-ae9a-c03488d4291d", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-06-13T19:10:11.5338153+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-8ef1-46c2-84fa-357fefac0893"}, "CallDisconnected": {"id": "a6576ec2-3ed6-40fa-8512-a64fea941f64", "source": "calling/callConnections/2c006980-8ef1-46c2-84fa-357fefac0893", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "2c006980-8ef1-46c2-84fa-357fefac0893", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9nQW4xWDFQSUlFNjU3WjBkbHVlMVRRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "5683b58d-bb85-4073-ae9a-c03488d4291d", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:10:12.924611+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-8ef1-46c2-84fa-357fefac0893"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json index 3d23728bbe41..8d385f771f4a 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_and_valid_file_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-603e-e541-09bd45607913", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-603e-e541-09bd45607913"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-5fe9-e541-09bd45607912", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-5fe9-e541-09bd45607912"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446"}, "ParticipantsUpdated": {"id": "438388d6-f14c-48a5-86f6-30d9c9b62b06", "source": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-603e-e541-09bd45607913", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-603e-e541-09bd45607913"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-5fe9-e541-09bd45607912", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-5fe9-e541-09bd45607912"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "17006980-f539-4bd7-87bb-922b42fe67cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:18:29.3744803+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd"}, "CallConnected": {"id": "19257177-3a57-42b6-bc2c-b5532086dd36", "source": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "17006980-f539-4bd7-87bb-922b42fe67cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:18:29.5747287+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd"}, "PlayStarted": {"id": "8520bfc1-b1ff-4811-9ac3-d4c81b439106", "source": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "17006980-f539-4bd7-87bb-922b42fe67cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-05-28T18:18:32.6833357+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd"}, "PlayFailed": {"id": "d9d12e91-47c8-4cea-af33-14a3381f175b", "source": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "17006980-f539-4bd7-87bb-922b42fe67cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-28T18:18:36.9234309+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd"}, "CallDisconnected": {"id": "eee0b428-f8df-4861-865c-bbd83b6532e1", "source": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "17006980-f539-4bd7-87bb-922b42fe67cd", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9XYzdsTDdJTVJFeWdQaUVVanRJUlBBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "b8703508-6bc6-4ed0-b67a-6e82c3c15446", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:18:37.4558217+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-f539-4bd7-87bb-922b42fe67cd"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-ee84-ac46-04bd45605199", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-ee84-ac46-04bd45605199"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-ee4e-ac46-04bd45605198", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-ee4e-ac46-04bd45605198"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95TGF5SFQxaEFVYVRTZ1dGU0Zpa2JRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "06a5972a-fe6e-4f68-bf52-80ece42cd4e5"}, "ParticipantsUpdated": {"id": "1ff7b15c-7380-4c69-baf8-bbd508fef728", "source": "calling/callConnections/2c006980-7b11-4f00-b7d7-097535df22cb", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-ee4e-ac46-04bd45605198", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-ee4e-ac46-04bd45605198"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-ee84-ac46-04bd45605199", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-ee84-ac46-04bd45605199"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "2c006980-7b11-4f00-b7d7-097535df22cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95TGF5SFQxaEFVYVRTZ1dGU0Zpa2JRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "06a5972a-fe6e-4f68-bf52-80ece42cd4e5", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:09:26.898989+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-7b11-4f00-b7d7-097535df22cb"}, "CallConnected": {"id": "6fe48426-da43-4348-8cd9-12dc8f44d7a9", "source": "calling/callConnections/2c006980-7b11-4f00-b7d7-097535df22cb", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "2c006980-7b11-4f00-b7d7-097535df22cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95TGF5SFQxaEFVYVRTZ1dGU0Zpa2JRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "06a5972a-fe6e-4f68-bf52-80ece42cd4e5", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:09:27.041297+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-7b11-4f00-b7d7-097535df22cb"}, "PlayStarted": {"id": "86c0d726-b987-4a9b-9403-52e3106f005a", "source": "calling/callConnections/2c006980-7b11-4f00-b7d7-097535df22cb", "type": "Microsoft.Communication.PlayStarted", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "2c006980-7b11-4f00-b7d7-097535df22cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95TGF5SFQxaEFVYVRTZ1dGU0Zpa2JRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "06a5972a-fe6e-4f68-bf52-80ece42cd4e5", "publicEventType": "Microsoft.Communication.PlayStarted"}, "time": "2025-06-13T19:09:29.637896+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-7b11-4f00-b7d7-097535df22cb"}, "PlayFailed": {"id": "ae1d0d68-6704-4db7-8f64-c102fa427611", "source": "calling/callConnections/2c006980-7b11-4f00-b7d7-097535df22cb", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 1, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "2c006980-7b11-4f00-b7d7-097535df22cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95TGF5SFQxaEFVYVRTZ1dGU0Zpa2JRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "06a5972a-fe6e-4f68-bf52-80ece42cd4e5", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-06-13T19:09:33.8653931+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-7b11-4f00-b7d7-097535df22cb"}, "CallDisconnected": {"id": "fd9d9420-0d0b-4caf-8038-cfc8cde9c866", "source": "calling/callConnections/2c006980-7b11-4f00-b7d7-097535df22cb", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "2c006980-7b11-4f00-b7d7-097535df22cb", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi95TGF5SFQxaEFVYVRTZ1dGU0Zpa2JRP2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "06a5972a-fe6e-4f68-bf52-80ece42cd4e5", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:09:34.2745564+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-7b11-4f00-b7d7-097535df22cb"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json index dc6b56673da8..5903c2d80434 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d0ae-e541-09bd4560791b", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d0ae-e541-09bd4560791b"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d06b-e541-09bd4560791a", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d06b-e541-09bd4560791a"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8zeUFYNmFYdkIwLTBXckxZVm5BeWRBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "522222b0-77e9-482d-aaf3-de74afb6375d"}, "ParticipantsUpdated": {"id": "b39b448c-3ce7-42e6-b56f-93a0c82e6440", "source": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d0ae-e541-09bd4560791b", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d0ae-e541-09bd4560791b"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d06b-e541-09bd4560791a", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7ff-d06b-e541-09bd4560791a"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "17006980-c1a4-42e7-9908-33e1e4239903", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8zeUFYNmFYdkIwLTBXckxZVm5BeWRBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "522222b0-77e9-482d-aaf3-de74afb6375d", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:18:55.6661772+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903"}, "CallConnected": {"id": "03fcdacd-5d9c-4613-bc36-9896aa451d10", "source": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "17006980-c1a4-42e7-9908-33e1e4239903", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8zeUFYNmFYdkIwLTBXckxZVm5BeWRBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "522222b0-77e9-482d-aaf3-de74afb6375d", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:18:51.1247588+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903"}, "PlayFailed": {"id": "81947e21-34b0-48f3-9f13-f1314742dfcf", "source": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "17006980-c1a4-42e7-9908-33e1e4239903", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8zeUFYNmFYdkIwLTBXckxZVm5BeWRBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "522222b0-77e9-482d-aaf3-de74afb6375d", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-28T18:18:55.6420363+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903"}, "CallDisconnected": {"id": "b98e00f3-525e-4e85-a6fd-37b7cb988535", "source": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "17006980-c1a4-42e7-9908-33e1e4239903", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi8zeUFYNmFYdkIwLTBXckxZVm5BeWRBP2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "522222b0-77e9-482d-aaf3-de74afb6375d", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:18:57.3005368+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-c1a4-42e7-9908-33e1e4239903"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-3307-ac46-04bd456051a0", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-3307-ac46-04bd456051a0"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-32d0-ac46-04bd4560519f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-32d0-ac46-04bd4560519f"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mZDZHSHJHZ05FeWJfRC1VekF4cE93P2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "de642c9f-9aa7-4135-9504-a1d0ce5b2a0a"}, "ParticipantsUpdated": {"id": "a035d107-b60a-4fbe-8536-7746ec67b7e7", "source": "calling/callConnections/2c006980-5a7d-4202-9efd-f09e957f5fb3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-3307-ac46-04bd456051a0", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-3307-ac46-04bd456051a0"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-32d0-ac46-04bd4560519f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a94-32d0-ac46-04bd4560519f"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 5, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "2c006980-5a7d-4202-9efd-f09e957f5fb3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mZDZHSHJHZ05FeWJfRC1VekF4cE93P2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "de642c9f-9aa7-4135-9504-a1d0ce5b2a0a", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:09:49.4486792+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-5a7d-4202-9efd-f09e957f5fb3"}, "CallConnected": {"id": "c87e569f-0d7d-4097-b948-64bc0364f2ff", "source": "calling/callConnections/2c006980-5a7d-4202-9efd-f09e957f5fb3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "2c006980-5a7d-4202-9efd-f09e957f5fb3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mZDZHSHJHZ05FeWJfRC1VekF4cE93P2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "de642c9f-9aa7-4135-9504-a1d0ce5b2a0a", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:09:44.6664275+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-5a7d-4202-9efd-f09e957f5fb3"}, "PlayFailed": {"id": "3b6b0057-affa-4fcf-96d6-eb33dcb8d493", "source": "calling/callConnections/2c006980-5a7d-4202-9efd-f09e957f5fb3", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "2c006980-5a7d-4202-9efd-f09e957f5fb3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mZDZHSHJHZ05FeWJfRC1VekF4cE93P2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "de642c9f-9aa7-4135-9504-a1d0ce5b2a0a", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-06-13T19:09:49.4274034+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-5a7d-4202-9efd-f09e957f5fb3"}, "CallDisconnected": {"id": "c7967b3c-19c8-4ec9-a1e0-704ce4d106b6", "source": "calling/callConnections/2c006980-5a7d-4202-9efd-f09e957f5fb3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "2c006980-5a7d-4202-9efd-f09e957f5fb3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9mZDZHSHJHZ05FeWJfRC1VekF4cE93P2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "de642c9f-9aa7-4135-9504-a1d0ce5b2a0a", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:09:51.1456006+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-5a7d-4202-9efd-f09e957f5fb3"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json index e5b968547005..feac7674fb5b 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_play_with_invalid_file_sources_with_play_media_all.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f694-e541-09bd4560790f", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f694-e541-09bd4560790f"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f63a-e541-09bd4560790e", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f63a-e541-09bd4560790e"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QOXhPa2ZMVmdFeXo3VHNxbVVIbVp3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f791d5eb-7834-4fe4-93c6-525f740cc73b"}, "ParticipantsUpdated": {"id": "cebcf070-36b7-4be2-83af-f45c5746e0e4", "source": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f63a-e541-09bd4560790e", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f63a-e541-09bd4560790e"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f694-e541-09bd4560790f", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fe-f694-e541-09bd4560790f"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "17006980-5f82-4ee7-a045-84067f57f145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QOXhPa2ZMVmdFeXo3VHNxbVVIbVp3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "f791d5eb-7834-4fe4-93c6-525f740cc73b", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:18:02.530636+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145"}, "CallConnected": {"id": "9fb65d13-7413-450a-ab42-038581974780", "source": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "17006980-5f82-4ee7-a045-84067f57f145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QOXhPa2ZMVmdFeXo3VHNxbVVIbVp3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "f791d5eb-7834-4fe4-93c6-525f740cc73b", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:18:02.7036473+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145"}, "PlayFailed": {"id": "57365e62-fbe0-4781-b5b0-d7cfd86bcbad", "source": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "17006980-5f82-4ee7-a045-84067f57f145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QOXhPa2ZMVmdFeXo3VHNxbVVIbVp3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "f791d5eb-7834-4fe4-93c6-525f740cc73b", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-05-28T18:18:06.084366+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145"}, "CallDisconnected": {"id": "9b4402cc-dbbd-4064-8c5d-773ffeed7ae2", "source": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "17006980-5f82-4ee7-a045-84067f57f145", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDEtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9QOXhPa2ZMVmdFeXo3VHNxbVVIbVp3P2k9MTAtMTI4LTI1MS02MyZlPTYzODgzOTc4ODA5ODg0MjY2OA==", "correlationId": "f791d5eb-7834-4fe4-93c6-525f740cc73b", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:18:06.8592141+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/17006980-5f82-4ee7-a045-84067f57f145"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-b919-ac46-04bd45605194", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-b919-ac46-04bd45605194"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-b8e3-ac46-04bd45605193", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-b8e3-ac46-04bd45605193"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JRi1MalFFeS1VQ05kMkxpX1V1M0V3P2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "4f33561d-59ce-476e-8530-1c18edb64bf0"}, "ParticipantsUpdated": {"id": "3b0b85ea-e1c8-4903-a004-1790c5b94c9d", "source": "calling/callConnections/2c006980-9b7a-4062-981b-c9e1dbbb3199", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-b8e3-ac46-04bd45605193", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-b8e3-ac46-04bd45605193"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-b919-ac46-04bd45605194", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a93-b919-ac46-04bd45605194"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "2c006980-9b7a-4062-981b-c9e1dbbb3199", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JRi1MalFFeS1VQ05kMkxpX1V1M0V3P2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "4f33561d-59ce-476e-8530-1c18edb64bf0", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:09:13.2768115+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-9b7a-4062-981b-c9e1dbbb3199"}, "CallConnected": {"id": "00fc9599-9df7-43d2-abef-634ee789ff24", "source": "calling/callConnections/2c006980-9b7a-4062-981b-c9e1dbbb3199", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "2c006980-9b7a-4062-981b-c9e1dbbb3199", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JRi1MalFFeS1VQ05kMkxpX1V1M0V3P2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "4f33561d-59ce-476e-8530-1c18edb64bf0", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:09:13.4334865+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-9b7a-4062-981b-c9e1dbbb3199"}, "PlayFailed": {"id": "822719e3-6aae-4b46-a0e9-117d05b2a048", "source": "calling/callConnections/2c006980-9b7a-4062-981b-c9e1dbbb3199", "type": "Microsoft.Communication.PlayFailed", "data": {"failedPlaySourceIndex": 0, "version": "2025-05-15", "resultInformation": {"code": 400, "subCode": 8535, "message": "Action failed, file format is invalid."}, "callConnectionId": "2c006980-9b7a-4062-981b-c9e1dbbb3199", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JRi1MalFFeS1VQ05kMkxpX1V1M0V3P2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "4f33561d-59ce-476e-8530-1c18edb64bf0", "publicEventType": "Microsoft.Communication.PlayFailed"}, "time": "2025-06-13T19:09:16.0003366+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-9b7a-4062-981b-c9e1dbbb3199"}, "CallDisconnected": {"id": "b336d6ea-d261-4373-ac11-7ba4cafc4dad", "source": "calling/callConnections/2c006980-9b7a-4062-981b-c9e1dbbb3199", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "2c006980-9b7a-4062-981b-c9e1dbbb3199", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDItcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9JRi1MalFFeS1VQ05kMkxpX1V1M0V3P2k9MTAtNjAtMTExLTI0MCZlPTYzODg1MTgzOTkzMjk2MTM4NA==", "correlationId": "4f33561d-59ce-476e-8530-1c18edb64bf0", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:09:16.7342458+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/2c006980-9b7a-4062-981b-c9e1dbbb3199"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json index d8ffcce0dd69..05135a1163df 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_media_streaming_in_a_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d2b4-024c-04bd45600351", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d2b4-024c-04bd45600351"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d26f-024c-04bd45600350", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d26f-024c-04bd45600350"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748"}, "ParticipantsUpdated": {"id": "8387ab99-06b8-4718-aeb6-7a6adc840971", "source": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d26f-024c-04bd45600350", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d26f-024c-04bd45600350"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d2b4-024c-04bd45600351", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fa-d2b4-024c-04bd45600351"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-45df-4af9-8520-623e28300fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:13:21.2998847+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7"}, "CallConnected": {"id": "d445608e-d193-42e6-8275-dca74fe2b19a", "source": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-45df-4af9-8520-623e28300fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:13:21.4559648+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7"}, "MediaStreamingStarted": {"id": "66b1d36e-79e2-4d51-acbc-4ee3882d51cf", "source": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7", "type": "Microsoft.Communication.MediaStreamingStarted", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStarted", "mediaStreamingStatusDetails": "subscriptionStarted"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-45df-4af9-8520-623e28300fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748", "publicEventType": "Microsoft.Communication.MediaStreamingStarted"}, "time": "2025-05-28T18:13:23.8563398+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7"}, "MediaStreamingStopped": {"id": "008e78c7-47de-48d0-9689-9c28fe52fa34", "source": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7", "type": "Microsoft.Communication.MediaStreamingStopped", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStopped", "mediaStreamingStatusDetails": "subscriptionStopped"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-45df-4af9-8520-623e28300fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748", "publicEventType": "Microsoft.Communication.MediaStreamingStopped"}, "time": "2025-05-28T18:13:28.0879727+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7"}, "CallDisconnected": {"id": "f3203c00-b854-4cb6-9a59-7cfb5e47a6b2", "source": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-45df-4af9-8520-623e28300fc7", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9oRDNzbV90X0wwYUEybDZhcXFqaXdnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "f37400c8-5fb3-4a29-b851-506d89cf7748", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:13:29.2487248+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-45df-4af9-8520-623e28300fc7"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-fac6-f6c7-593a0d004dcd", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-fac6-f6c7-593a0d004dcd"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-fa34-f6c7-593a0d004dcc", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-fa34-f6c7-593a0d004dcc"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi82TU5KQmo5ZkgwNlpSSWlkdC1qMk9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "c8bee902-702a-4f65-940d-569c1e9dfa30"}, "ParticipantsUpdated": {"id": "d1dc2744-942e-4d10-bd50-117e4816f76e", "source": "calling/callConnections/00006680-5da0-49f1-9a52-3910815e727d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-fa34-f6c7-593a0d004dcc", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-fa34-f6c7-593a0d004dcc"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-fac6-f6c7-593a0d004dcd", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a8f-fac6-f6c7-593a0d004dcd"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-5da0-49f1-9a52-3910815e727d", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi82TU5KQmo5ZkgwNlpSSWlkdC1qMk9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "c8bee902-702a-4f65-940d-569c1e9dfa30", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:05:08.4496665+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-5da0-49f1-9a52-3910815e727d"}, "CallConnected": {"id": "500b84eb-0d1a-4bc3-b2fd-7451385b4b14", "source": "calling/callConnections/00006680-5da0-49f1-9a52-3910815e727d", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "00006680-5da0-49f1-9a52-3910815e727d", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi82TU5KQmo5ZkgwNlpSSWlkdC1qMk9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "c8bee902-702a-4f65-940d-569c1e9dfa30", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:05:08.5771983+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-5da0-49f1-9a52-3910815e727d"}, "MediaStreamingStarted": {"id": "f1383172-453e-45a9-ace8-00ae83fc25db", "source": "calling/callConnections/00006680-5da0-49f1-9a52-3910815e727d", "type": "Microsoft.Communication.MediaStreamingStarted", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStarted", "mediaStreamingStatusDetails": "subscriptionStarted"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-5da0-49f1-9a52-3910815e727d", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi82TU5KQmo5ZkgwNlpSSWlkdC1qMk9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "c8bee902-702a-4f65-940d-569c1e9dfa30", "publicEventType": "Microsoft.Communication.MediaStreamingStarted"}, "time": "2025-06-13T19:05:10.9858487+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-5da0-49f1-9a52-3910815e727d"}, "MediaStreamingStopped": {"id": "a4bbe81b-351c-4855-9312-13ad7fab6e29", "source": "calling/callConnections/00006680-5da0-49f1-9a52-3910815e727d", "type": "Microsoft.Communication.MediaStreamingStopped", "data": {"mediaStreamingUpdate": {"contentType": "Audio", "mediaStreamingStatus": "mediaStreamingStopped", "mediaStreamingStatusDetails": "subscriptionStopped"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-5da0-49f1-9a52-3910815e727d", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi82TU5KQmo5ZkgwNlpSSWlkdC1qMk9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "c8bee902-702a-4f65-940d-569c1e9dfa30", "publicEventType": "Microsoft.Communication.MediaStreamingStopped"}, "time": "2025-06-13T19:05:15.109283+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-5da0-49f1-9a52-3910815e727d"}, "CallDisconnected": {"id": "db91fb4a-3c80-4428-8f66-868cd2398e68", "source": "calling/callConnections/00006680-5da0-49f1-9a52-3910815e727d", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "00006680-5da0-49f1-9a52-3910815e727d", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi82TU5KQmo5ZkgwNlpSSWlkdC1qMk9nP2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "c8bee902-702a-4f65-940d-569c1e9dfa30", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:05:16.3249475+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-5da0-49f1-9a52-3910815e727d"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json index b02c0b49da35..cc2f1871a734 100644 --- a/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json +++ b/sdk/communication/azure-communication-callautomation/tests/events/test_e2e_media_client.pyTestMediaAutomatedLiveTesttest_start_stop_transcription_in_call.event.json @@ -1 +1 @@ -{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1b1e-024c-04bd45600354", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1b1e-024c-04bd45600354"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1adb-024c-04bd45600353", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1adb-024c-04bd45600353"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189"}, "ParticipantsUpdated": {"id": "ccf56956-7cf8-40f0-a89e-55172efe08da", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1adb-024c-04bd45600353", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1adb-024c-04bd45600353"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1b1e-024c-04bd45600354", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000027-b7fb-1b1e-024c-04bd45600354"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-05-28T18:13:39.8523893+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}, "CallConnected": {"id": "77c5f192-6963-4e02-84f1-351b9bbda2f0", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-05-28T18:13:39.9939853+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}, "TranscriptionStarted": {"id": "b31dca4d-9b6f-4663-acc3-580f35824da9", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.TranscriptionStarted", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStarted", "transcriptionStatusDetails": "subscriptionStarted"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.TranscriptionStarted"}, "time": "2025-05-28T18:13:42.4057631+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}, "TranscriptionUpdated": {"id": "b1fa9ae6-2340-4500-ad03-d83ae886b4cf", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.TranscriptionUpdated", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionUpdated", "transcriptionStatusDetails": "transcriptionLocaleUpdated"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.TranscriptionUpdated"}, "time": "2025-05-28T18:13:46.5571326+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}, "TranscriptionStopped": {"id": "3d89894b-8514-48df-8c85-fc6af053156d", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.TranscriptionStopped", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStopped", "transcriptionStatusDetails": "subscriptionStopped"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.TranscriptionStopped"}, "time": "2025-05-28T18:13:52.6607191+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}, "CallDisconnected": {"id": "5d8f678f-4f18-4bc1-b589-bca2e5ce0d72", "source": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "0a006680-0eaf-44b9-aabf-ffb34477b6d3", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDMtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9fc19wSVhvZ1prLV93S3VfMV93eTNnP2k9MTAtNjAtMTI2LTI2JmU9NjM4ODM1NDMyMTYwNTg2OTI5", "correlationId": "3526f03c-28e8-448b-9db7-b700056bf189", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-05-28T18:13:53.8324182+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/0a006680-0eaf-44b9-aabf-ffb34477b6d3"}} \ No newline at end of file +{"IncomingCall": {"to": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-44ab-f6c7-593a0d004dd2", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-44ab-f6c7-593a0d004dd2"}}, "from": {"kind": "communicationUser", "rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-4465-f6c7-593a0d004dd1", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-4465-f6c7-593a0d004dd1"}}, "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tY2JKdl9iX2ZrbW1ZOUc4Z3VSRkR3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "callerDisplayName": "REDACTED", "incomingCallContext": "REDACTED", "correlationId": "ff124de5-6854-47d7-ad6f-fbb3ac0057e7"}, "ParticipantsUpdated": {"id": "e60e9f59-d576-46c5-949f-ca92c1c87daf", "source": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": {"participants": [{"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-44ab-f6c7-593a0d004dd2", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-44ab-f6c7-593a0d004dd2"}}, "isMuted": false, "isOnHold": false}, {"identifier": {"rawId": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-4465-f6c7-593a0d004dd1", "kind": "communicationUser", "communicationUser": {"id": "8:acs:6d889502-3d7a-41a8-befa-d21fd80e8767_00000028-0a90-4465-f6c7-593a0d004dd1"}}, "isMuted": false, "isOnHold": false}], "sequenceNumber": 1, "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "version": "2025-05-15", "callConnectionId": "00006680-f426-49e4-ad5f-1c545185a00b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tY2JKdl9iX2ZrbW1ZOUc4Z3VSRkR3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "ff124de5-6854-47d7-ad6f-fbb3ac0057e7", "publicEventType": "Microsoft.Communication.ParticipantsUpdated"}, "time": "2025-06-13T19:05:27.6174351+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b"}, "CallConnected": {"id": "8f48ac87-7846-40d2-b4f4-5e534869f51a", "source": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b", "type": "Microsoft.Communication.CallConnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": ""}, "callConnectionId": "00006680-f426-49e4-ad5f-1c545185a00b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tY2JKdl9iX2ZrbW1ZOUc4Z3VSRkR3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "ff124de5-6854-47d7-ad6f-fbb3ac0057e7", "publicEventType": "Microsoft.Communication.CallConnected"}, "time": "2025-06-13T19:05:27.7491018+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b"}, "TranscriptionStarted": {"id": "0904cee4-ebce-483a-bf3b-c0ca0bc33caf", "source": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b", "type": "Microsoft.Communication.TranscriptionStarted", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStarted", "transcriptionStatusDetails": "subscriptionStarted"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-f426-49e4-ad5f-1c545185a00b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tY2JKdl9iX2ZrbW1ZOUc4Z3VSRkR3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "ff124de5-6854-47d7-ad6f-fbb3ac0057e7", "publicEventType": "Microsoft.Communication.TranscriptionStarted"}, "time": "2025-06-13T19:05:30.4627904+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b"}, "TranscriptionUpdated": {"id": "a45896f1-1a11-4db7-afe8-7e5d8a4e3a5a", "source": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b", "type": "Microsoft.Communication.TranscriptionUpdated", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionUpdated", "transcriptionStatusDetails": "transcriptionLocaleUpdated"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-f426-49e4-ad5f-1c545185a00b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tY2JKdl9iX2ZrbW1ZOUc4Z3VSRkR3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "ff124de5-6854-47d7-ad6f-fbb3ac0057e7", "publicEventType": "Microsoft.Communication.TranscriptionUpdated"}, "time": "2025-06-13T19:05:34.5881182+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b"}, "TranscriptionStopped": {"id": "7606f063-d6d8-46a8-941d-de176e5abe1e", "source": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b", "type": "Microsoft.Communication.TranscriptionStopped", "data": {"transcriptionUpdate": {"transcriptionStatus": "transcriptionStopped", "transcriptionStatusDetails": "subscriptionStopped"}, "version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 0, "message": "Action completed successfully."}, "callConnectionId": "00006680-f426-49e4-ad5f-1c545185a00b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tY2JKdl9iX2ZrbW1ZOUc4Z3VSRkR3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "ff124de5-6854-47d7-ad6f-fbb3ac0057e7", "publicEventType": "Microsoft.Communication.TranscriptionStopped"}, "time": "2025-06-13T19:05:40.7176618+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b"}, "CallDisconnected": {"id": "825c433f-cd61-46ca-b20d-4bdc1f46cf5b", "source": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b", "type": "Microsoft.Communication.CallDisconnected", "data": {"version": "2025-05-15", "resultInformation": {"code": 200, "subCode": 7000, "message": "The conversation has ended. DiagCode: 0#7000.@"}, "callConnectionId": "00006680-f426-49e4-ad5f-1c545185a00b", "serverCallId": "aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzd2UtMDQtcHJvZC1ha3MuY29udi5za3lwZS5jb20vY29udi9tY2JKdl9iX2ZrbW1ZOUc4Z3VSRkR3P2k9MTAtMTI4LTg1LTEzMyZlPTYzODg1MzUzNzgwMzQ5NjYyNg==", "correlationId": "ff124de5-6854-47d7-ad6f-fbb3ac0057e7", "publicEventType": "Microsoft.Communication.CallDisconnected"}, "time": "2025-06-13T19:05:41.9205295+00:00", "specversion": "1.0", "datacontenttype": "application/json", "subject": "calling/callConnections/00006680-f426-49e4-ad5f-1c545185a00b"}} \ No newline at end of file diff --git a/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py b/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py index 96e609c8eb76..33d27e907698 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_call_recording_client.py @@ -40,7 +40,7 @@ def mock_send(_, **kwargs): callautomation_client.start_recording(call_locator, channel_affinity=[channel_affinity]) callautomation_client.start_recording(group_call_id="locatorId", channel_affinity=[channel_affinity]) callautomation_client.start_recording(server_call_id="locatorId", channel_affinity=[channel_affinity]) - callautomation_client.start_recording(call_connection_id=call_connection_id, channel_affinity=[channel_affinity]) + callautomation_client.start_recording(call_connection_id=self.call_connection_id, channel_affinity=[channel_affinity]) with pytest.raises(ValueError): call_locator = ServerCallLocator(server_call_id="locatorId") diff --git a/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py b/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py index b6b136bdc6a0..b3d45558e826 100644 --- a/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py +++ b/sdk/communication/azure-communication-callautomation/tests/test_e2e_callautomation_client.py @@ -152,7 +152,7 @@ def test_start_recording_with_server_call_id(self): self.terminate_call(unique_id) return - @recorded_by_proxy + @recorded_by_proxy def test_start_recording_with_call_connection_id(self): # try to establish the call caller = self.identity_client.create_user() From 8aeb9c5a6c20c136c39361ad017992ec93b97adf Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Fri, 20 Jun 2025 15:03:52 -0700 Subject: [PATCH 19/23] updating changelog --- .../azure-communication-callautomation/CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sdk/communication/azure-communication-callautomation/CHANGELOG.md b/sdk/communication/azure-communication-callautomation/CHANGELOG.md index e984f89b1480..114f7620f7fd 100644 --- a/sdk/communication/azure-communication-callautomation/CHANGELOG.md +++ b/sdk/communication/azure-communication-callautomation/CHANGELOG.md @@ -1,5 +1,14 @@ # Release History +## 1.5.0 (Unreleased) + +### Features Added + +- Added support for Teams multipersona users in add participant, transfer, and redirect scenarios in OPS calls +- Added TeamsAppSource for use when creating outbound OPS calls +- Recording with the call connection ID is now supported. OPS calls can be recorded using the call connection ID. +- Added StartRecordingFailed event to indicate when the start recording API is unable to initiate the recording. + ## 1.4.0 (2025-06-02) ### Features Added From 97e881d6957510e7858450219e310fca57745b17 Mon Sep 17 00:00:00 2001 From: Cezara Zamfir <66410283+cemateia@users.noreply.github.com> Date: Thu, 19 Jun 2025 20:55:49 +0200 Subject: [PATCH 20/23] [OPS Common SDK] Update Communication Common SDK for Teams Phone Extensibility GA (#41219) * Update models.py * Update models.py * Update models.py * Update phone number identifier * add tests * small updates * Update test_identifier_raw_id.py * Update test_identifier_raw_id.py * Update test_identifier_raw_id.py * Create entra_user_credential_async.py * add entra token cred * add async exchange * Update models.py * Update test_identifier_raw_id.py * Update test_identifier_raw_id.py * update credential * Update entra_user_credential_async.py * Update entra_user_credential_async.py * Update entra_user_credential_async.py * Update entra_user_credential_async.py * Create pipeline_utils.py * Create entra_token_guard_policy.py * Create entra_token_credential_options.py * Create token_exchange.py * Update token_exchange.py * updates * Update token_exchange.py * Update token_exchange.py * cleanup old files * Update token_exchange.py * Update entra_token_guard_policy.py * updated credential classes * updates * Delete manual_test.py * Update user_credential.py * Copy to all _shared in all sdks * Update sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/entra_token_guard_policy.py Co-authored-by: Dominik * Update token_exchange.py * update version * Fix imports * Fix imports in all folders * Fix test * Update test_identifier_raw_id.py * Update dev_requirements.txt * try to fix conflict in pipeline * try to fix conflict in pipeline 2 * Update setup.py * try to fix call automation * remove references * expose the identifiers * Update documentation for credential to include the optional params * Delete manual_test.py * Update _version.py * fix comment to default the cloud * fix comments for phone number properties * fix path * Update CHANGELOG.md * fix cloud param * fix comment * Create test_entra_token_guard_policy.py * fix for cloud param * Add tests for token exchange * add tests for credential * update test * Update test_user_credential_async.py * add check in async cred * fix cloud * update not required * Update test_identifier_raw_id.py * fix passing scopes * copy paste from identity * fix space * fix sending scopes * Update test_token_exchange.py * fix spaces for doc * fix pylint errors * fix pylint error in model * fix props in phone number * fix dateutil import * update init of asserted_id * replace none with "" * update models phone number * fix some pylint errors: format * split files * pylint fixes * pylint call automation * pylint for all * fix some pylint warnings * fix last warnings in identity * update all * update token exchange * update credential for all sdks * fix comments * add some tests * fix tests * fix some comments * fix comments * copy in all sdks * fix include * fix import * fix tests * fix comments * fix analysis warnings * fix mypy * fix pylint * fix mypy * fix optional scopes --------- Co-authored-by: Dominik --- .../communication/callautomation/__init__.py | 4 + .../_shared/entra_token_guard_policy.py | 30 +++++ .../_shared/entra_token_guard_policy_async.py | 30 +++++ .../callautomation/_shared/models.py | 120 +++++++++++++++++- .../callautomation/_shared/token_exchange.py | 78 ++++++++++++ .../_shared/token_exchange_async.py | 78 ++++++++++++ .../callautomation/_shared/token_utils.py | 91 +++++++++++++ .../callautomation/_shared/user_credential.py | 98 ++++++++++++-- .../_shared/user_credential_async.py | 110 +++++++++++++--- .../dev_requirements.txt | 3 +- 10 files changed, 605 insertions(+), 37 deletions(-) create mode 100644 sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/entra_token_guard_policy.py create mode 100644 sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/entra_token_guard_policy_async.py create mode 100644 sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_exchange.py create mode 100644 sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_exchange_async.py create mode 100644 sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_utils.py diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py index 27c239188895..9472b4cf97f6 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py @@ -37,6 +37,8 @@ CommunicationIdentifierKind, CommunicationCloudEnvironment, UnknownIdentifier, + TeamsExtensionUserProperties, + TeamsExtensionUserIdentifier, ) from ._generated.models._enums import ( CallRejectReason, @@ -91,6 +93,8 @@ "CommunicationIdentifierKind", "CommunicationCloudEnvironment", "UnknownIdentifier", + "TeamsExtensionUserProperties", + "TeamsExtensionUserIdentifier", # enums "CallRejectReason", diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/entra_token_guard_policy.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/entra_token_guard_policy.py new file mode 100644 index 000000000000..651378179892 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/entra_token_guard_policy.py @@ -0,0 +1,30 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +from azure.core.pipeline.policies import HTTPPolicy +from azure.core.pipeline import PipelineRequest +from . import token_utils + + +class EntraTokenGuardPolicy(HTTPPolicy): + """A pipeline policy that caches the response for a given Entra token and reuses it if valid.""" + + def __init__(self): + super().__init__() + self._entra_token_cache = None + self._response_cache = None + + def send(self, request: PipelineRequest): + cache_valid, token = token_utils.is_entra_token_cache_valid(self._entra_token_cache, request) + if cache_valid and token_utils.is_acs_token_cache_valid(self._response_cache): + response = self._response_cache + else: + self._entra_token_cache = token + response = self.next.send(request) + self._response_cache = response + if response is None: + raise RuntimeError("Failed to obtain a valid PipelineResponse in EntraTokenGuardPolicy.send") + return response diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/entra_token_guard_policy_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/entra_token_guard_policy_async.py new file mode 100644 index 000000000000..195324bbe28e --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/entra_token_guard_policy_async.py @@ -0,0 +1,30 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +from azure.core.pipeline.policies import AsyncHTTPPolicy +from azure.core.pipeline import PipelineRequest +from . import token_utils + + +class EntraTokenGuardPolicy(AsyncHTTPPolicy): + """Async pipeline policy that caches the response for a given Entra token and reuses it if valid.""" + + def __init__(self): + super().__init__() + self._entra_token_cache = None + self._response_cache = None + + async def send(self, request: PipelineRequest): + cache_valid, token = token_utils.is_entra_token_cache_valid(self._entra_token_cache, request) + if cache_valid and token_utils.is_acs_token_cache_valid(self._response_cache): + response = self._response_cache + else: + self._entra_token_cache = token + response = await self.next.send(request) + self._response_cache = response + if response is None: + raise RuntimeError("Failed to obtain a valid PipelineResponse in AsyncEntraTokenGuardPolicy.send") + return response diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/models.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/models.py index 43875e1197e5..dd03640268d7 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/models.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/models.py @@ -5,7 +5,7 @@ from enum import Enum import warnings from typing import Mapping, Optional, Union, Any, cast -from typing_extensions import Literal, TypedDict, Protocol, runtime_checkable +from typing_extensions import Literal, TypedDict, Protocol, runtime_checkable, NotRequired from azure.core import CaseInsensitiveEnumMeta @@ -37,6 +37,7 @@ class CommunicationIdentifierKind(str, Enum, metaclass=DeprecatedEnumMeta): PHONE_NUMBER = "phone_number" MICROSOFT_TEAMS_USER = "microsoft_teams_user" MICROSOFT_TEAMS_APP = "microsoft_teams_app" + TEAMS_EXTENSION_USER = "teams_extension_user" class CommunicationCloudEnvironment(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -86,6 +87,8 @@ def properties(self) -> Mapping[str, Any]: ACS_USER_GCCH_CLOUD_PREFIX = "8:gcch-acs:" SPOOL_USER_PREFIX = "8:spool:" +PHONE_NUMBER_ANONYMOUS_SUFFIX = "anonymous" + class CommunicationUserProperties(TypedDict): """Dictionary of properties for a CommunicationUserIdentifier.""" @@ -127,6 +130,10 @@ class PhoneNumberProperties(TypedDict): value: str """The phone number in E.164 format.""" + asserted_id: NotRequired[str] + """The asserted Id set on a phone number to distinguish from other connections made through the same number.""" + is_anonymous: NotRequired[bool] + """True if the phone number is anonymous, e.g. when used to represent a hidden caller Id.""" class PhoneNumberIdentifier: @@ -145,8 +152,21 @@ def __init__(self, value: str, **kwargs: Any) -> None: :keyword str raw_id: The raw ID of the identifier. If not specified, this will be constructed from the 'value' parameter. """ - self.properties = PhoneNumberProperties(value=value) + raw_id: Optional[str] = kwargs.get("raw_id") + is_anonymous: bool + + if raw_id is not None: + phone_number = raw_id[len(PHONE_NUMBER_PREFIX):] + is_anonymous = phone_number == PHONE_NUMBER_ANONYMOUS_SUFFIX + asserted_id_index = -1 if is_anonymous else phone_number.rfind("_") + 1 + has_asserted_id = 0 < asserted_id_index < len(phone_number) + props = {"value": value, "is_anonymous": is_anonymous} + if has_asserted_id: + props["asserted_id"] = phone_number[asserted_id_index:] + self.properties = PhoneNumberProperties(**props) # type: ignore + else: + self.properties = PhoneNumberProperties(value=value) self.raw_id = raw_id if raw_id is not None else self._format_raw_id(self.properties) def __eq__(self, other): @@ -163,7 +183,6 @@ def _format_raw_id(self, properties: PhoneNumberProperties) -> str: value = properties["value"] return f"{PHONE_NUMBER_PREFIX}{value}" - class UnknownIdentifier: """Represents an identifier of an unknown type. @@ -223,7 +242,7 @@ def __init__(self, user_id: str, **kwargs: Any) -> None: :param str user_id: Microsoft Teams user id. :keyword bool is_anonymous: `True` if the identifier is anonymous. Default value is `False`. :keyword cloud: Cloud environment that the user belongs to. Default value is `PUBLIC`. - :paramtype cloud: str or ~azure.communication.chat.CommunicationCloudEnvironment + :paramtype cloud: str or ~azure.communication.callautomation.CommunicationCloudEnvironment :keyword str raw_id: The raw ID of the identifier. If not specified, this value will be constructed from the other properties. """ @@ -294,7 +313,7 @@ def __init__(self, app_id: str, **kwargs: Any) -> None: """ :param str app_id: Microsoft Teams application id. :keyword cloud: Cloud environment that the application belongs to. Default value is `PUBLIC`. - :paramtype cloud: str or ~azure.communication.chat.CommunicationCloudEnvironment + :paramtype cloud: str or ~azure.communication.callautomation.CommunicationCloudEnvironment :keyword str raw_id: The raw ID of the identifier. If not specified, this value will be constructed from the other properties. """ @@ -338,7 +357,7 @@ def __init__(self, bot_id, **kwargs): :keyword bool is_resource_account_configured: `False` if the identifier is global. Default value is `True` for tennantzed bots. :keyword cloud: Cloud environment that the bot belongs to. Default value is `PUBLIC`. - :paramtype cloud: str or ~azure.communication.chat.CommunicationCloudEnvironment + :paramtype cloud: str or ~azure.communication.callautomation.CommunicationCloudEnvironment """ warnings.warn( "The MicrosoftBotIdentifier is deprecated and has been replaced by MicrosoftTeamsAppIdentifier.", @@ -347,6 +366,88 @@ def __init__(self, bot_id, **kwargs): super().__init__(bot_id, **kwargs) +class TeamsExtensionUserProperties(TypedDict): + """Dictionary of properties for a TeamsExtensionUserIdentifier.""" + + user_id: str + """The id of the Teams extension user.""" + tenant_id: str + """The tenant id associated with the user.""" + resource_id: str + """The Communication Services resource id.""" + cloud: Union[CommunicationCloudEnvironment, str] + """Cloud environment that this identifier belongs to.""" + + +class TeamsExtensionUserIdentifier: + """Represents an identifier for a Teams Extension user.""" + + kind: Literal[CommunicationIdentifierKind.TEAMS_EXTENSION_USER] = CommunicationIdentifierKind.TEAMS_EXTENSION_USER + """The type of identifier.""" + properties: TeamsExtensionUserProperties + """The properties of the identifier.""" + raw_id: str + """The raw ID of the identifier.""" + + def __init__( + self, + user_id: str, + tenant_id: str, + resource_id: str, + **kwargs: Any + ) -> None: + """ + :param str user_id: Teams extension user id. + :param str tenant_id: Tenant id associated with the user. + :param str resource_id: The Communication Services resource id. + :keyword cloud: Cloud environment that the user belongs to. Default value is `PUBLIC`. + :paramtype cloud: str or ~azure.communication.callautomation.CommunicationCloudEnvironment + :keyword str raw_id: The raw ID of the identifier. + If not specified, this value will be constructed from the other properties. + """ + self.properties = TeamsExtensionUserProperties( + user_id=user_id, + tenant_id=tenant_id, + resource_id=resource_id, + cloud=kwargs.get("cloud") or CommunicationCloudEnvironment.PUBLIC, + ) + raw_id: Optional[str] = kwargs.get("raw_id") + self.raw_id = raw_id if raw_id is not None else self._format_raw_id(self.properties) + + def __eq__(self, other): + try: + if other.raw_id: + return self.raw_id == other.raw_id + return self.raw_id == self._format_raw_id(other.properties) + except Exception: # pylint: disable=broad-except + return False + + def _format_raw_id(self, properties: TeamsExtensionUserProperties) -> str: + # The prefix depends on the cloud + cloud = properties["cloud"] + if cloud == CommunicationCloudEnvironment.DOD: + prefix = ACS_USER_DOD_CLOUD_PREFIX + elif cloud == CommunicationCloudEnvironment.GCCH: + prefix = ACS_USER_GCCH_CLOUD_PREFIX + else: + prefix = ACS_USER_PREFIX + return f"{prefix}{properties['resource_id']}_{properties['tenant_id']}_{properties['user_id']}" + +def try_create_teams_extension_user(prefix: str, suffix: str) -> Optional[TeamsExtensionUserIdentifier]: + segments = suffix.split("_") + if len(segments) != 3: + return None + resource_id, tenant_id, user_id = segments + if prefix == ACS_USER_PREFIX: + cloud = CommunicationCloudEnvironment.PUBLIC + elif prefix == ACS_USER_DOD_CLOUD_PREFIX: + cloud = CommunicationCloudEnvironment.DOD + elif prefix == ACS_USER_GCCH_CLOUD_PREFIX: + cloud = CommunicationCloudEnvironment.GCCH + else: + raise ValueError("Invalid MRI") + return TeamsExtensionUserIdentifier(user_id, tenant_id, resource_id, cloud=cloud) + def identifier_from_raw_id(raw_id: str) -> CommunicationIdentifier: # pylint: disable=too-many-return-statements """ Creates a CommunicationIdentifier from a given raw ID. @@ -407,11 +508,16 @@ def identifier_from_raw_id(raw_id: str) -> CommunicationIdentifier: # pylint: d cloud=CommunicationCloudEnvironment.GCCH, raw_id=raw_id, ) + if prefix == SPOOL_USER_PREFIX: + return CommunicationUserIdentifier(id=raw_id, raw_id=raw_id) + if prefix in [ ACS_USER_PREFIX, ACS_USER_DOD_CLOUD_PREFIX, ACS_USER_GCCH_CLOUD_PREFIX, - SPOOL_USER_PREFIX, ]: + identifier = try_create_teams_extension_user(prefix, suffix) + if identifier is not None: + return identifier return CommunicationUserIdentifier(id=raw_id, raw_id=raw_id) return UnknownIdentifier(identifier=raw_id) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_exchange.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_exchange.py new file mode 100644 index 000000000000..32c0749e31b2 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_exchange.py @@ -0,0 +1,78 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +import json +from typing import Any, List, Optional +# pylint: disable=non-abstract-transport-import +# pylint: disable=no-name-in-module +from azure.core.pipeline.transport import RequestsTransport +from azure.core.credentials import AccessToken +from azure.core.pipeline import Pipeline, PipelineResponse +from azure.core.pipeline.policies import BearerTokenCredentialPolicy +from azure.core.exceptions import HttpResponseError +from azure.core.credentials import TokenCredential +from azure.core.pipeline.policies import RetryPolicy +from .entra_token_guard_policy import EntraTokenGuardPolicy +from . import token_utils + + +class TokenExchangeClient: + """Represents a client that exchanges an Entra token for an Azure Communication Services (ACS) token. + + :param resource_endpoint: The endpoint URL of the resource to authenticate against. + :param credential: The credential to use for token exchange. + :param scopes: The scopes to request during the token exchange. + :keyword transport: Optional transport to use for the pipeline. + """ + + # pylint: disable=C4748 + # pylint: disable=client-method-missing-type-annotations + def __init__( + self, + resource_endpoint: str, + credential: TokenCredential, + scopes: Optional[List[str]] = None, + **kwargs: Any): + + self._resource_endpoint = resource_endpoint + self._scopes = scopes or ["https://communication.azure.com/clients/.default"] + self._credential = credential + pipeline_transport = kwargs.get("transport", None) + self._pipeline = self._create_pipeline_from_options(pipeline_transport) + + def _create_pipeline_from_options(self, pipeline_transport): + auth_policy = BearerTokenCredentialPolicy(self._credential, *self._scopes) + entra_token_guard_policy = EntraTokenGuardPolicy() + retry_policy = RetryPolicy() + policies = [auth_policy, entra_token_guard_policy, retry_policy] + if pipeline_transport: + return Pipeline(policies=policies, transport=pipeline_transport) + return Pipeline(policies=policies, transport=RequestsTransport()) + + def exchange_entra_token(self) -> AccessToken: + message = token_utils.create_request_message(self._resource_endpoint, self._scopes) + response = self._pipeline.run(message) + return self._parse_access_token_from_response(response) + + def _parse_access_token_from_response(self, response: PipelineResponse) -> AccessToken: + if response.http_response.status_code == 200: + try: + content = response.http_response.text() + data = json.loads(content) + access_token_json = data["accessToken"] + token = access_token_json["token"] + expires_on = access_token_json["expiresOn"] + expires_on_epoch = token_utils.parse_expires_on(expires_on, response) + if expires_on_epoch is None: + raise ValueError("Failed to parse 'expiresOn' value from access token response") + return AccessToken(token, expires_on_epoch) + except Exception as ex: + raise ValueError("Failed to parse access token from response") from ex + else: + raise HttpResponseError( + message="Failed to exchange Entra token for ACS token", + response=response.http_response + ) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_exchange_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_exchange_async.py new file mode 100644 index 000000000000..ba16a74c6722 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_exchange_async.py @@ -0,0 +1,78 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + +import json +from typing import Any, Optional, List +# pylint: disable=non-abstract-transport-import +# pylint: disable=no-name-in-module +from azure.core.pipeline.transport import AioHttpTransport +from azure.core.credentials import AccessToken +from azure.core.pipeline import AsyncPipeline, PipelineResponse +from azure.core.pipeline.policies import AsyncBearerTokenCredentialPolicy +from azure.core.exceptions import HttpResponseError +from azure.core.credentials_async import AsyncTokenCredential +from azure.core.pipeline.policies import AsyncRetryPolicy +from .entra_token_guard_policy_async import EntraTokenGuardPolicy +from . import token_utils + + +class TokenExchangeClient: + """Asynchronous client that exchanges an Entra token for an Azure Communication Services (ACS) token. + + :param resource_endpoint: The endpoint URL of the resource to authenticate against. + :param credential: The credential to use for token exchange. + :param scopes: The scopes to request during the token exchange. + :keyword transport: Optional transport to use for the pipeline. + """ + + # pylint: disable=C4748 + # pylint: disable=client-method-missing-type-annotations + def __init__( + self, + resource_endpoint: str, + credential: AsyncTokenCredential, + scopes: Optional[List[str]] = None, + **kwargs: Any): + + self._resource_endpoint = resource_endpoint + self._scopes = scopes or ["https://communication.azure.com/clients/.default"] + self._credential = credential + pipeline_transport = kwargs.get("transport", None) + self._pipeline = self._create_pipeline_from_options(pipeline_transport) + + def _create_pipeline_from_options(self, pipeline_transport): + auth_policy = AsyncBearerTokenCredentialPolicy(self._credential, *self._scopes) + entra_token_guard_policy = EntraTokenGuardPolicy() + retry_policy = AsyncRetryPolicy() + policies = [auth_policy, entra_token_guard_policy, retry_policy] + if pipeline_transport: + return AsyncPipeline(policies=policies, transport=pipeline_transport) + return AsyncPipeline(policies=policies, transport=AioHttpTransport()) + + async def exchange_entra_token(self) -> AccessToken: + message = token_utils.create_request_message(self._resource_endpoint, self._scopes) + response = await self._pipeline.run(message) + return await self._parse_access_token_from_response(response) + + async def _parse_access_token_from_response(self, response: PipelineResponse) -> AccessToken: + if response.http_response.status_code == 200: + try: + content = response.http_response.text() + data = json.loads(content) + access_token_json = data["accessToken"] + token = access_token_json["token"] + expires_on = access_token_json["expiresOn"] + expires_on_epoch = token_utils.parse_expires_on(expires_on, response) + if expires_on_epoch is None: + raise ValueError("Failed to parse 'expiresOn' value from access token response") + return AccessToken(token, expires_on_epoch) + except Exception as ex: + raise ValueError("Failed to parse access token from response") from ex + else: + raise HttpResponseError( + message="Failed to exchange Entra token for ACS token", + response=response.http_response + ) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_utils.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_utils.py new file mode 100644 index 000000000000..6750ce54f6f5 --- /dev/null +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/token_utils.py @@ -0,0 +1,91 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- + + +import json +from datetime import datetime, timezone +from typing import Tuple, Any, List, Optional +from dateutil import parser as dateutil_parser # type: ignore +from azure.core.exceptions import HttpResponseError + +TEAMS_EXTENSION_SCOPE_PREFIX = "https://auth.msft.communication.azure.com/" +COMMUNICATION_CLIENTS_SCOPE_PREFIX = "https://communication.azure.com/clients/" +TEAMS_EXTENSION_ENDPOINT = "/access/teamsExtension/:exchangeAccessToken" +TEAMS_EXTENSION_API_VERSION = "2025-06-30" +COMMUNICATION_CLIENTS_ENDPOINT = "/access/entra/:exchangeAccessToken" +COMMUNICATION_CLIENTS_API_VERSION = "2025-03-02-preview" + + +def create_request_message(resource_endpoint: str, scopes: Optional[List[str]]) -> Any: + from azure.core.pipeline.transport import HttpRequest + request_uri = create_request_uri(resource_endpoint, scopes) + request = HttpRequest("POST", request_uri) + request.headers["Accept"] = "application/json" + request.headers["Content-Type"] = "application/json" + request.set_json_body({}) + return request + + +def create_request_uri(resource_endpoint: str, scopes: Optional[List[str]]) -> str: + endpoint, api_version = determine_endpoint_and_api_version(scopes) + base = resource_endpoint.rstrip("/") + return f"{base}{endpoint}?api-version={api_version}" + + +def determine_endpoint_and_api_version(scopes: Optional[List[str]]) -> Tuple[str, str]: + if not scopes or not isinstance(scopes, list): + raise ValueError( + "Scopes validation failed. Ensure all scopes start with either " + f"{TEAMS_EXTENSION_SCOPE_PREFIX} or {COMMUNICATION_CLIENTS_SCOPE_PREFIX}." + ) + if all(scope.startswith(TEAMS_EXTENSION_SCOPE_PREFIX) for scope in scopes): + return TEAMS_EXTENSION_ENDPOINT, TEAMS_EXTENSION_API_VERSION + if all(scope.startswith(COMMUNICATION_CLIENTS_SCOPE_PREFIX) for scope in scopes): + return COMMUNICATION_CLIENTS_ENDPOINT, COMMUNICATION_CLIENTS_API_VERSION + raise ValueError( + "Scopes validation failed. Ensure all scopes start with either" + f"{TEAMS_EXTENSION_SCOPE_PREFIX} or {COMMUNICATION_CLIENTS_SCOPE_PREFIX}." + ) + + +def parse_expires_on(expires_on, response): + if isinstance(expires_on, str): + try: + expires_on_dt = dateutil_parser.parse(expires_on) + expires_on_epoch = int(expires_on_dt.timestamp()) + return expires_on_epoch + except Exception as exc: + raise HttpResponseError( + message="Unknown format for expires_on field in access token response", + response=response.http_response) from exc + else: + raise HttpResponseError( + message="Missing expires_on field in access token response", + response=response.http_response) + + +def is_entra_token_cache_valid(entra_token_cache, request): + current_entra_token = request.http_request.headers.get("Authorization", "") + cache_valid = ( + entra_token_cache is not None and + current_entra_token == entra_token_cache + ) + return cache_valid, current_entra_token + + +def is_acs_token_cache_valid(response_cache): + if (response_cache is None or response_cache.http_response is None or + response_cache.http_response.status_code != 200): + return False + try: + content = response_cache.http_response.text() + data = json.loads(content) + expires_on = data["accessToken"]["expiresOn"] + expires_on_dt = dateutil_parser.parse(expires_on) + return datetime.now(timezone.utc) < expires_on_dt + except (KeyError, ValueError, json.JSONDecodeError): + raise ValueError( # pylint: disable=W0707 + "Invalid token response") diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/user_credential.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/user_credential.py index 54603e7b32ce..b8b90ee06bc9 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/user_credential.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/user_credential.py @@ -6,39 +6,111 @@ from threading import Lock, Condition, Timer, TIMEOUT_MAX, Event from datetime import timedelta -from typing import Any - +from typing import Any, Optional, overload, Callable +from azure.core.credentials import TokenCredential, AccessToken from .utils import get_current_utc_as_int from .utils import create_access_token +from .token_exchange import TokenExchangeClient class CommunicationTokenCredential(object): """Credential type used for authenticating to an Azure Communication service. + :param str token: The token used to authenticate to an Azure Communication service. :keyword token_refresher: The sync token refresher to provide capacity to fetch a fresh token. The returned token must be valid (expiration date must be in the future). :paramtype token_refresher: Callable[[], AccessToken] :keyword bool proactive_refresh: Whether to refresh the token proactively or not. If the proactive refreshing is enabled ('proactive_refresh' is true), the credential will use - a background thread to attempt to refresh the token within 10 minutes before the cached token expires, - the proactive refresh will request a new token by calling the 'token_refresher' callback. + a background thread to attempt to refresh the token within 10 minutes before the cached token expires. + The proactive refresh will request a new token by calling the 'token_refresher' callback. When 'proactive_refresh' is enabled, the Credential object must be either run within a context manager or the 'close' method must be called once the object usage has been finished. - :raises: TypeError if paramater 'token' is not a string + :keyword str resource_endpoint: The endpoint URL of the resource to authenticate against. + :keyword token_credential: The credential to use for token exchange. + :paramtype token_credential: ~azure.core.credentials.TokenCredential + :keyword list[str] scopes: The scopes to request during the token exchange. If not provided, + a default value will be used: https://communication.azure.com/clients/.default + + :raises: TypeError if parameter 'token' is not a string :raises: ValueError if the 'proactive_refresh' is enabled without providing the 'token_refresher' callable. """ _ON_DEMAND_REFRESHING_INTERVAL_MINUTES = 2 _DEFAULT_AUTOREFRESH_INTERVAL_MINUTES = 10 - def __init__(self, token: str, **kwargs: Any): - if not isinstance(token, str): - raise TypeError("Token must be a string.") - self._token = create_access_token(token) - self._token_refresher = kwargs.pop("token_refresher", None) - self._proactive_refresh = kwargs.pop("proactive_refresh", False) - if self._proactive_refresh and self._token_refresher is None: - raise ValueError("When 'proactive_refresh' is True, 'token_refresher' must not be None.") + @overload + def __init__( + self, + token: str, + *, + token_refresher: Optional[Callable[[], AccessToken]] = None, + proactive_refresh: bool = False, + **kwargs: Any + ): + """ + Initializes the CommunicationTokenCredential. + + :param str token: The token used to authenticate to an Azure Communication service. + :param token_refresher: Optional callable to refresh the token. + :param proactive_refresh: Whether to refresh the token proactively. + :param kwargs: Additional keyword arguments. + """ + + @overload + def __init__( + self, + *, + resource_endpoint: str, + token_credential: TokenCredential, + scopes: Optional[list[str]] = None, + **kwargs: Any + ): + """ + Initializes the CommunicationTokenCredential using token exchange. + + :param resource_endpoint: The endpoint URL of the resource to authenticate against. + :param token_credential: The credential to use for token exchange. + :param scopes: The scopes to request during the token exchange. + :param kwargs: Additional keyword arguments. + """ + + def __init__(self, token: Optional[str] = None, **kwargs: Any): + resource_endpoint = kwargs.pop("resource_endpoint", None) + token_credential = kwargs.pop("token_credential", None) + scopes = kwargs.pop("scopes", None) + + # Check if at least one field exists but not all fields exist when token is None + fields_present = [resource_endpoint, token_credential] + fields_exist = [field is not None for field in fields_present] + + if token is None and not all(fields_exist): + missing_fields = [] + if resource_endpoint is None: + missing_fields.append("resource_endpoint") + if token_credential is None: + missing_fields.append("token_credential") + raise ValueError( + "When using token exchange, resource_endpoint and token_credential must be provided. " + f"Missing: {', '.join(missing_fields)}") + + self._token_exchange_client = None + if resource_endpoint and token_credential: + self._token_exchange_client = TokenExchangeClient( + resource_endpoint, + token_credential, + scopes) + self._token_refresher = self._token_exchange_client.exchange_entra_token + self._proactive_refresh = False + self._token = self._token_exchange_client.exchange_entra_token() + else: + if not isinstance(token, str): + raise TypeError("Token must be a string.") + self._token = create_access_token(token) + self._token_refresher = kwargs.pop("token_refresher", None) + self._proactive_refresh = kwargs.pop("proactive_refresh", False) + if self._proactive_refresh and self._token_refresher is None: + raise ValueError("When 'proactive_refresh' is True, 'token_refresher' must not be None.") self._timer = None self._lock = Condition(Lock()) self._some_thread_refreshing = False diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/user_credential_async.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/user_credential_async.py index c55896c5b6bb..5a5d85d1fb0d 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/user_credential_async.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_shared/user_credential_async.py @@ -4,43 +4,121 @@ # license information. # -------------------------------------------------------------------------- # pylint: disable=C4763 + +import asyncio +import sys from asyncio import Condition, Lock, Event from datetime import timedelta -from typing import Any -import sys - +from typing import Any, Optional, overload, Awaitable, Callable +from azure.core.credentials_async import AsyncTokenCredential from .utils import get_current_utc_as_int from .utils import create_access_token from .utils_async import AsyncTimer +from .token_exchange_async import TokenExchangeClient class CommunicationTokenCredential(object): """Credential type used for authenticating to an Azure Communication service. + :param str token: The token used to authenticate to an Azure Communication service. :keyword token_refresher: The async token refresher to provide capacity to fetch a fresh token. The returned token must be valid (expiration date must be in the future). :paramtype token_refresher: Callable[[], Awaitable[AccessToken]] :keyword bool proactive_refresh: Whether to refresh the token proactively or not. If the proactive refreshing is enabled ('proactive_refresh' is true), the credential will use - a background thread to attempt to refresh the token within 10 minutes before the cached token expires, - the proactive refresh will request a new token by calling the 'token_refresher' callback. - When 'proactive_refresh is enabled', the Credential object must be either run within a context manager - or the 'close' method must be called once the object usage has been finished. - :raises: TypeError if paramater 'token' is not a string + a background thread to attempt to refresh the token within 10 minutes before the cached token + expires. The proactive refresh will request a new token by calling the 'token_refresher' callback. + When 'proactive_refresh' is enabled, the Credential object must be either run within a context + manager or the 'close' method must be called once the object usage has been finished. + :keyword str resource_endpoint: The endpoint URL of the resource to authenticate against. + :keyword token_credential: The credential to use for token exchange. + :paramtype token_credential: ~azure.core.credentials.AsyncTokenCredential + :keyword list[str] scopes: The scopes to request during the token exchange. If not provided, + a default value will be used: https://communication.azure.com/clients/.default + + :raises: TypeError if parameter 'token' is not a string :raises: ValueError if the 'proactive_refresh' is enabled without providing the 'token_refresher' function. """ _ON_DEMAND_REFRESHING_INTERVAL_MINUTES = 2 _DEFAULT_AUTOREFRESH_INTERVAL_MINUTES = 10 - def __init__(self, token: str, **kwargs: Any): - if not isinstance(token, str): - raise TypeError("Token must be a string.") - self._token = create_access_token(token) - self._token_refresher = kwargs.pop("token_refresher", None) - self._proactive_refresh = kwargs.pop("proactive_refresh", False) - if self._proactive_refresh and self._token_refresher is None: - raise ValueError("When 'proactive_refresh' is True, 'token_refresher' must not be None.") + @overload + def __init__( + self, + token: str, + *, + token_refresher: Optional[Callable[[], Awaitable[Any]]] = None, + proactive_refresh: bool = False, + **kwargs: Any + ): + """ + Initializes the CommunicationTokenCredential. + + :param str token: The token used to authenticate to an Azure Communication service. + :param token_refresher: Optional async callable to refresh the token. + :param proactive_refresh: Whether to refresh the token proactively. + :param kwargs: Additional keyword arguments. + """ + @overload + def __init__( + self, + *, + resource_endpoint: str, + token_credential: AsyncTokenCredential, + scopes: Optional[list[str]] = None, + **kwargs: Any + ): + """ + Initializes the CommunicationTokenCredential using token exchange. + + :param resource_endpoint: The endpoint URL of the resource to authenticate against. + :param token_credential: The credential to use for token exchange. + :param scopes: The scopes to request during the token exchange. + :param kwargs: Additional keyword arguments. + """ + + def __init__(self, token: Optional[str] = None, **kwargs: Any): + resource_endpoint = kwargs.pop("resource_endpoint", None) + token_credential = kwargs.pop("token_credential", None) + scopes = kwargs.pop("scopes", None) + + # Check if at least one field exists but not all fields exist when token is None + fields_present = [resource_endpoint, token_credential] + fields_exist = [field is not None for field in fields_present] + + if token is None and not all(fields_exist): + missing_fields = [] + if resource_endpoint is None: + missing_fields.append("resource_endpoint") + if token_credential is None: + missing_fields.append("token_credential") + raise ValueError( + "When using token exchange, resource_endpoint and token_credential must be provided. " + f"Missing: {', '.join(missing_fields)}") + + self._token_exchange_client = None + if resource_endpoint and token_credential: + self._token_exchange_client = TokenExchangeClient( + resource_endpoint, + token_credential, + scopes) + self._token_refresher = self._token_exchange_client.exchange_entra_token + self._proactive_refresh = False + + async def _initialize_token(): + self._token = await self._token_exchange_client.exchange_entra_token() + + asyncio.get_event_loop().run_until_complete(_initialize_token()) + else: + if not isinstance(token, str): + raise TypeError("Token must be a string.") + self._token = create_access_token(token) + self._token_refresher = kwargs.pop("token_refresher", None) + self._proactive_refresh = kwargs.pop("proactive_refresh", False) + if self._proactive_refresh and self._token_refresher is None: + raise ValueError("When 'proactive_refresh' is True, 'token_refresher' must not be None.") + self._timer = None self._async_mutex = Lock() if sys.version_info[:3] == (3, 10, 0): diff --git a/sdk/communication/azure-communication-callautomation/dev_requirements.txt b/sdk/communication/azure-communication-callautomation/dev_requirements.txt index f412e02f7f7c..40f2faf9e023 100644 --- a/sdk/communication/azure-communication-callautomation/dev_requirements.txt +++ b/sdk/communication/azure-communication-callautomation/dev_requirements.txt @@ -4,4 +4,5 @@ -e ../azure-communication-phonenumbers -e ../../servicebus/azure-servicebus ../../core/azure-core -aiohttp>=3.0 \ No newline at end of file +aiohttp>=3.0 +python-dateutil>=2.8.1 From 0a4d6855569ceb3ab105cc5c55cd6351ceac4878 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Mon, 23 Jun 2025 08:24:29 -0700 Subject: [PATCH 21/23] updating api version --- .../azure/communication/callautomation/_api_versions.py | 1 + .../azure/communication/callautomation/_utils.py | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py index e6012c5e5b03..7f046c0a6ec5 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py @@ -13,5 +13,6 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): V2024_04_15 = "2024-04-15" V2024_09_15 = "2024-09-15" V2025_05_15 = "2025-05-15" + V2025_06_15 = "2025-06-15" DEFAULT_VERSION = ApiVersion.V2025_05_15.value diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_utils.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_utils.py index 0f89b6f064b6..089469602b8b 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_utils.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_utils.py @@ -12,6 +12,7 @@ PhoneNumberIdentifier, MicrosoftTeamsUserIdentifier, MicrosoftTeamsAppIdentifier, + TeamsExtensionUserIdentifier, UnknownIdentifier, CommunicationIdentifierKind, ) @@ -228,6 +229,14 @@ def deserialize_identifier(identifier_model: CommunicationIdentifierModel) -> Co app_id=identifier_model.microsoft_teams_app.app_id, cloud=identifier_model.microsoft_teams_app.cloud, ) + if identifier_model.teams_extension_user: + return TeamsExtensionUserIdentifier( + raw_id=raw_id, + user_id=identifier_model.teams_extension_user.user_id, + tenant_id= identifier_model.teams_extension_user.tenant_id, + resource_id=identifier_model.teams_extension_user.resource_id, + cloud=identifier_model.teams_extension_user.cloud, + ) return UnknownIdentifier(raw_id) From 4c3035d80bc828dfce79d98dba51d297da390d4c Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Tue, 1 Jul 2025 11:54:29 -0700 Subject: [PATCH 22/23] ga6 vesrion update --- .../azure/communication/callautomation/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_version.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_version.py index 0c9eeb772f97..6d851960b453 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_version.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_version.py @@ -4,6 +4,6 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "1.4.0" +VERSION = "1.5.0" SDK_MONIKER = f"communication-callautomation/{format(VERSION)}" From b74d15068aa05cc187d90f22c6d139228314b720 Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj Date: Mon, 7 Jul 2025 09:24:00 -0700 Subject: [PATCH 23/23] updating the python version --- .../azure/communication/callautomation/_api_versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py index 7f046c0a6ec5..6fdac365ca88 100644 --- a/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py +++ b/sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_api_versions.py @@ -15,4 +15,4 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): V2025_05_15 = "2025-05-15" V2025_06_15 = "2025-06-15" -DEFAULT_VERSION = ApiVersion.V2025_05_15.value +DEFAULT_VERSION = ApiVersion.V2025_06_15.value