GRAPH API redirected to voicemail

Contributor

Hello,

 

I have a calling bot that ... calls users, using GRAPH API without any SDK.

When a user rejects a call originating from the bot, and if the user has a voicemail configured on "no answer" the call is still "established", but the callbacks do not mention that the call has been routed towards the user voicemail.

 

Here is a log extract from my calling bot :

 

220607;11:36:50.513;[00415];019;APP_CALL;CREATE_CALL;2D25;RestRequest;GetWebRequest;T;>>>>>> request type=CreateCallRequest uri=https://graph.microsoft.com/v1.0/communications/calls method=POST content=application/json raw={"tenantId":"bd194de5-c933-499f-ac81-2f54715b7525","callbackUri":"https://XXXXXXX-teams-gateway.francecentral.cloudapp.azure.com:8544/callback/call","mediaConfig":{"@odata.type":"#microsoft.graph.serviceHostedMediaConfig","preFetchMedia":[]},"source":{"identity":{"application":{"id":"c02ef987-b36c-4fea-9a69-2ab6c818a7ba","displayName":"TANNCE","name":"TANNCE"}}},"targets":[{"identity":{"user":{"id":"a75f8483-9fb4-4e07-8e41-6ef5d1e928b0"}}}]}
220607;11:36:50.607;[00057];019;APP_CALL;CREATE_CALL_ACK;2D25;StringResponse;ReadInternal;T;<<<<<< request type=CreateCallRequest response={"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#communications/calls/$entity","id":"411f6000-fc4e-4c4d-889f-2ec8f7f8498b","state":"establishing","transferState":null,"terminationReason":null,"direction":"outgoing","ringingTimeoutInSeconds":null,"subject":null,"callbackUri":"https://XXXXXXX-teams-gateway.francecentral.cloudapp.azure.com:8544/callback/call","requestedModalities":[],"activeModalities":[],"routingPolicies":[],"tenantId":"bd194de5-c933-499f-ac81-2f54715b7525","myParticipantId":"84a4db76-0e0e-496c-884c-7a33bd678d7e","callChainId":"0b40404a-5e51-4867-b1f5-2b8c1628caad","mediaHostedRegion":null,"mediaState":null,"resultInfo":null,"answeredBy":null,"chatInfo":null,"meetingInfo":null,"transcription":null,"callOptions":null,"meetingCapability":null,"breakoutDetails":null,"pstnDetails":null,"toneInfo":null,"incomingContext":null,"terminationSender":null,"meetingGroupDetails":null,"callRoutes":[],"source":{"endpointType":null,"region":null,"languageId":null,"countryCode":null,"participantId":null,"identity":{"user":null,"phone":null,"guest":null,"encrypted":null,"onPremises":null,"applicationInstance":null,"device":null,"application":{"id":"c02ef987-b36c-4fea-9a69-2ab6c818a7ba","displayName":"TANNCE","tenantId":null,"registrantId":null,"name":"TANNCE"}}},"targets":[{"endpointType":null,"replacesCallId":null,"hidden":null,"removeFromDefaultAudioRoutingGroup":null,"participantId":null,"identity":{"phone":null,"guest":null,"encrypted":null,"onPremises":null,"applicationInstance":null,"application":null,"device":null,"user":{"id":"a75f8483-9fb4-4e07-8e41-6ef5d1e928b0","displayName":null,"tenantId":null,"registrantId":null}}}],"mediaConfig":{"@odata.type":"#microsoft.graph.serviceHostedMediaConfig","preFetchMedia":[]}}
220607;11:36:50.666;[00879];026;SERVER;CALLBACK_CALL_ACK;EB35;QServer;EndOp;X;<<<<<<<<<< {"@odata.type":"#microsoft.graph.commsNotifications","value":[{"@odata.type":"#microsoft.graph.commsNotification","changeType":"updated","resource":"/app/calls/411f6000-fc4e-4c4d-889f-2ec8f7f8498b","resourceUrl":"/communications/calls/411f6000-fc4e-4c4d-889f-2ec8f7f8498b","resourceData":{"@odata.type":"#microsoft.graph.call","state":"establishing","callChainId":"0b40404a-5e51-4867-b1f5-2b8c1628caad"}}]}
220607;11:36:54.773;[00879];026;SERVER;CALLBACK_CALL_ACK;B38D;QServer;EndOp;X;<<<<<<<<<< {"@odata.type":"#microsoft.graph.commsNotifications","value":[{"@odata.type":"#microsoft.graph.commsNotification","changeType":"updated","resource":"/app/calls/411f6000-fc4e-4c4d-889f-2ec8f7f8498b","resourceUrl":"/communications/calls/411f6000-fc4e-4c4d-889f-2ec8f7f8498b","resourceData":{"@odata.type":"#microsoft.graph.call","state":"established","direction":"outgoing","callChainId":"0b40404a-5e51-4867-b1f5-2b8c1628caad"}}]}
220607;11:36:54.830;[00879];026;SERVER;CALLBACK_CALL_ACK;75CF;QServer;EndOp;X;<<<<<<<<<< {"@odata.type":"#microsoft.graph.commsNotifications","value":[{"@odata.type":"#microsoft.graph.commsNotification","changeType":"updated","resource":"/app/calls/411f6000-fc4e-4c4d-889f-2ec8f7f8498b","resourceUrl":"/communications/calls/411f6000-fc4e-4c4d-889f-2ec8f7f8498b","resourceData":{"@odata.type":"#microsoft.graph.call","state":"established","mediaState":{"@odata.type":"#microsoft.graph.callMediaState","audio":"active"},"callChainId":"0b40404a-5e51-4867-b1f5-2b8c1628caad"}}]}

 

My question : is there a way to determine if the call was rejected (or not answered in time) and routed towards voicemail, or answered properly by the user ?

 

Best regards,

 

David CHOLLET

3 Replies

@Mad_hatter - Could you please refer the below doc: call: redirect - Microsoft Graph beta | Microsoft Docs ?

@Prasad_Das-MSFT- Hello, I'm not sure I understand very well your point.

I'm using this to create a call, I'm not using a redirection ? The call notifications do not mention if the call was answered properly or if the call was redirected towards voicemail.

 

Best regards,

 

David CHOLLET

@Mad_hatter  - There doesn't seem to be any way to determine if the call was rejected (or not answered in time) and routed towards voicemail.