How MS Teams Calling Bot can redirect inbound SIP call to Teams User and stay on a call too?

Dmitry Haletsky 0 Reputation points
2023-07-17T09:42:10.1133333+00:00

Hello Everyone

We have MS Teams direct routing setup and everything works as expected.

The question is when we have inbound PSTN call and MS sends incoming call webhook how to redirect it to a Teams User and ALLOW the Calling Bot to stay on a call too?

P.S. Of course the calling bot can answer first and invite an user after but it contradicts with use case when you call to The User who can't answer the call should have Busy response at the beginning.

Many Thanks

Dmitry Haletsky

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,627 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,446 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.
3,065 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 2,896 Reputation points Microsoft Vendor
    2023-07-18T06:23:38.7266667+00:00

    You can use the Microsoft Graph API mentioned below to transfer the call to another user while the bot remains present on the call:

    POST /communications/calls/{id}/transfer
    

    Refer to the documentation for more details: Call Transfer - Microsoft Graph API

    Thanks,

    Nivedipa


    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.