In the State property of the Call object, the status does not change when the call is answered and when it is not answered.

Yuuki Takahashi 61 Reputation points
2022-01-19T02:01:37.087+00:00

You are trying to make a call to Teams using the Graph API.
If there are multiple destinations, we are trying to call them in order, A → B → C.

In this case, we want to call B if A does not answer.
However, when I look at the state property of the Call object,
the value is the same as "established" for the case where A answered and the case where A did not answer,
so I cannot make a judgment. Is there any way to determine this?

Also, is there any way to control how long the call is kept open until it is answered?
I think the standard is 30 seconds, but I would like to make it longer than that.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,663 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,872 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Prasad-MSFT 5,621 Reputation points Microsoft Vendor
    2022-01-19T11:34:25.113+00:00

    You need to Redirect an incoming call that hasn't been answered or rejected yet.
    The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. It can't be controlled, its by-default.

    Thanks,
    Prasad Das


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    1 person found this answer helpful.
    0 comments No comments

  2. Yuuki Takahashi 61 Reputation points
    2022-01-21T08:19:47.33+00:00

    Thank Prasad.

    By redirection, you mean the following.
    https://learn.microsoft.com/en-us/graph/api/call-redirect?view=graph-rest-1.0&tabs=http

    As for what I want to do.

    • If there's an answer, play the automated voice.
    • If there is no answer, call the next destination.
      So, we want to know first that there was no answer.
      I was able to get the status from Callback, but when there was no answer and time expired,
      it became "establishing", "established", "established", and "terminated".

  3. Yuuki Takahashi 61 Reputation points
    2022-01-21T09:59:50.503+00:00

    Additional Notes.

    Sometimes you can get Terminated, sometimes you can't.

    0 comments No comments