How to set the outgoing phone number for a bot when calling a PSTN number via direct routing

Moritz Kobel 0 Reputation points
2024-02-16T09:32:30.42+00:00

One of our applications initiates outgoing PSTN calls using POST https://graph.microsoft.com/v1.0/communications/calls as bot resource. The bot resource has a direct routing phone number assigned. How can we define another outgoing phone number? In our use case we would like to initiate the outgoing calls using an employees personal phone number. The bot is used to set up the call on behalf of the user. Therefore we would like to ensure the callee sees the callers phone number instead of the number of the bot. The personal phone numbers are already configured & working in teams. As we can select the outgoing number in teams, we hope to be able to select the outgoing number for calls initiated via bot too.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,279 questions
Microsoft Teams Phone
Microsoft Teams Phone
Teams Phone enables call-control and Private Branch Exchange (PBX) capabilities in the Microsoft 365 cloud with Microsoft Teams.
151 questions
0 comments No comments
{count} votes