Share via

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 | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 4,246 Reputation points Microsoft External Staff Moderator
    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.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.