Edit

Share via


call resource type

Namespace: microsoft.graph

The call resource is created when there's an incoming call for the application or the application creates a new outgoing call via a POST on communications/calls.

Calls can be set up as a peer-to-peer or as a group call. To create or join a group call, supply the chatInfo and meetingInfo. If these values aren't supplied, a new group call is created automatically. For an incoming call, record these values in a highly available store so that your application can rejoin the call if your application crashes.

Although the same identity can't be invited multiple times, it's possible for an application to join the same meeting multiple times. Each time the application wants to join a call, a separate identity must be provided in order for the clients to display them as different participants.

Note: You can get the join URL from a meeting scheduled with Microsoft Teams. Extract the data from the URL as shown to populate chatInfo and meetingInfo.

https://teams.microsoft.com/l/meetup-join/19%3ameeting_NTg0NmQ3NTctZDVkZC00YzRhLThmNmEtOGQ3M2E0ODdmZDZk%40thread.v2/0?context=%7b%22Tid%22%3a%2272f988bf-86f1-41af-91ab-2d7cd011db47%22%2c%22Oid%22%3a%224b444206-207c-42f8-92a6-e332b41c88a2%22%7d 

Becomes:

https://teams.microsoft.com/l/meetup-join/19:meeting_NTg0NmQ3NTctZDVkZC00YzRhLThmNmEtOGQ3M2E0ODdmZDZk@thread.v2/0?context={"Tid":"72f988bf-86f1-41af-91ab-2d7cd011db47","Oid":"4b444206-207c-42f8-92a6-e332b41c88a2"} 

Methods

MethodReturn TypeDescription
CreatecallCreate call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting.
GetcallRead properties of the call object.
Delete/hang upNoneDelete or Hang-up an active call.
Keep aliveNoneEnsure that the call remains active.
Call handling
AnswerNoneAnswer an incoming call.
RejectNoneReject an incoming call.
RedirectNoneRedirect an incoming call.
TransferNoneTransfer a call
Group calls
Listparticipant collectionGet a participant object collection.
Invite participantscommsOperationInvite participants to the active call.
Mute participantmuteParticipantOperationMute a participant in the group call.
CreateaudioRoutingGroupCreate a new audioRoutingGroup by posting to the audioRoutingGroups collection.
List audio routing groupsaudioRoutingGroup collectionGet an audioRoutingGroup object collection.
Add large gallery viewaddLargeGalleryViewOperationAdd the large gallery view to a call.
Interactive-voice-response
Play promptplayPromptOperationPlay prompt in the call.
Record responserecordOperationRecords a short audio response from the caller.
Cancel media processingcommsOperationCancel media processing.
Subscribe to tonecommsOperationSubscribe to DTMF tones.
Send DTMF tonecommsOperationSend DTMF tones in a call.
Self participant operations
Mute applicationmuteParticipantOperationMute self in the call.
Unmute applicationunmuteParticipantOperationUnmute self in the call.
Change screen sharing roleNoneStart and stop sharing screen in the call.
Recording Operations
Update recording statusupdateRecordingStatusOperationUpdates the recording status.
Logging operations
Log teleconference device quality datateleconferenceDeviceQualityLog video teleconferencing device quality data.

Properties

PropertyTypeDescription
callbackUriStringThe callback URL on which callbacks are delivered. Must be an HTTPS URL.
callChainIdStringA unique identifier for all the participant calls in a conference or a unique identifier for two participant calls in a P2P call. This identifier must be copied over from Microsoft.Graph.Call.CallChainId.
callOptionsoutgoingCallOptionsContains the optional features for the call.
callRoutescallRoute collectionThe routing information on how the call was retargeted. Read-only.
chatInfochatInfoThe chat information. Required information for joining a meeting.
directioncallDirectionThe direction of the call. The possible values are incoming or outgoing. Read-only.
idStringThe unique identifier for the call. Read-only.
incomingContextincomingContextCall context associated with an incoming call.
mediaConfigappHostedMediaConfig or serviceHostedMediaConfigThe media configuration. Required.
mediaStatecallMediaStateRead-only. The call media state.
meetingInfoorganizerMeetingInfo, tokenMeetingInfo, or joinMeetingIdMeetingInfoThe meeting information. Required information for meeting scenarios.
myParticipantIdStringRead-only.
requestedModalitiesmodality collectionThe list of requested modalities. Possible values are: unknown, audio, video, videoBasedScreenSharing, data.
resultInforesultInfoThe result information. For example, the result can hold termination reason. Read-only.
sourceparticipantInfoThe originator of the call.
statecallStateThe call state. Possible values are: incoming, establishing, ringing, established, hold, transferring, transferAccepted, redirecting, terminating, terminated. Read-only.
subjectStringThe subject of the conversation.
targetsinvitationParticipantInfo collectionThe targets of the call. Required information for creating peer to peer call.
toneInfotoneInfoRead-only.
transcriptioncallTranscriptionInfoThe transcription information for the call. Read-only.

Relationships

RelationshipTypeDescription
contentSharingSessionscontentSharingSession collectionRead-only. Nullable.
operationscommsOperation collectionRead-only. Nullable.
participantsparticipant collectionRead-only. Nullable.

JSON representation

The following JSON representation shows the resource type.

{ "callbackUri": "String", "callChainId": "String", "callOptions": {"@odata.type": "#microsoft.graph.outgoingCallOptions"}, "chatInfo": {"@odata.type": "#microsoft.graph.chatInfo"}, "contentSharingSessions": [{ "@odata.type": "microsoft.graph.contentSharingSession" }], "direction": "String", "id": "String (identifier)", "mediaConfig": {"@odata.type": "#microsoft.graph.mediaConfig"}, "mediaState": {"@odata.type": "#microsoft.graph.callMediaState"}, "meetingInfo": {"@odata.type": "#microsoft.graph.meetingInfo"}, "myParticipantId": "String", "requestedModalities": ["String"], "resultInfo": {"@odata.type": "#microsoft.graph.resultInfo"}, "source": {"@odata.type": "#microsoft.graph.participantInfo"}, "state": "String", "subject": "String", "targets": [{"@odata.type": "#microsoft.graph.invitationParticipantInfo"}], "toneInfo": {"@odata.type": "#microsoft.graph.toneInfo"}, "transcription": {"@odata.type": "#microsoft.graph.callTranscriptionInfo"}, }