Forum Discussion

chafford100's avatar
chafford100
Copper Contributor
Feb 12, 2021

Initate a teams call from external application

Hello,

 

I have a CRM system written in WPF which runs on the same computer as the Microsoft Teams Application. I would like to implement Teams calling in my application in a simple manner. A button in my WPF application which when pressed would start teams dialing the recipient (ultimately could be a teams to teams call or teams to PSTN if the environment has been set up). I have looked at many examples but am still stumped by the approach.

 

I have seen the incidentbot on github but this requires a meeting to be setup, and in addition, the 'bot' is part of the meeting. All I am trying to do is do a 1-1 call without the system dialing me and the recipient into a meeting. Effectively just like me selecting the recipient in teams and click the call button. i.e. controlling the specific Teams app running on my PC.

 

I am trying to achieve the following:

- I would like to make the call from my application via (I am assuming the graph API) and teams responds.

- I would like to monitor the state of the call so I can respond within my CRM accordingly (call duration, when the call is disconnected etc.).

- I would also like to monitor Teams so that if there is an incoming call I can notify my CRM and appropriately respond.

 

I have gone through the various github repositories but i wanted to know if the above functionality is available simply via a registered bot and all call initiations and responses on status of the call can be handled by a registered web service (nothing installed in the Team app) or does it need an bot within the teams app?

 

I realize this is quite a broad and general question but I keep going round in circles but i would appreciate a recommended approach if there is one.

 

Many thanks in advance.

 

3 Replies

  • Hi chafford100, 

    Currently you cannot monitor the teams call, You can get the call details by using Graph API once you finish the call call. This is by design. You can register a calling bot to use calling functionalities. Please check Docs  for more information
    • chafford100's avatar
      chafford100
      Copper Contributor

      Saonti-MSFTmany thanks for the reply. Yes I thought this was the case given all the examples and a few items on the wish list (i.e. monitoring all calls in a tenant). Just a final point, is there any way of not having the 'bot' appear?

       

      All my work at the moment says 'bot' is calling you whereas i would like to have the bot initiate a call from person X to person Y.

       

      Many thanks for the reply, just wanted to make sure i wasn't missing anything.

      • Saonti-MSFT's avatar
        Saonti-MSFT
        Former Employee

        chafford100 If you are trying to implement Bot to make audio calls, Please check these  samples .

        Apart from these, currently there is no way to generate a link that will initiate a call between two users. You can raise User Voice . Microsoft will always focus on customer’s feedback and experience, some new features would be added to the services based on customers' feedback in the future.