Forum Discussion
I have updated the link .. For some reason the linked was truncated after posting
- Nikitha-MSFTMar 11, 2021Microsoft
lund76 -Which is to create a bot that can make a group call to a user within the organisation, and add a recipient by PSTN (public user outside the organisation). That way I can have a 3rd party program initiate a call between a teams user and PSTN landline. The bot can then either remove itself from the call or stay and do bot stuff for the teams user 🙂
- lund76Mar 11, 2021Copper Contributor
Nikitha-MSFT - Yeah, that was me trying to sum up my intentions 🙂 So far I've not been able to get confirmed, that this scenario is even possible - it should be - but i'm not sure.
- chafford100Mar 16, 2021Copper Contributor
Hi lund76,
I have been grappling with a similar approach for my CRM system and I thought I would give my findings here. The basic use case is to implement Click to dial. Since there is no direct dialing in teams i.e. person A calling Person B the bot approach has been used but the bot presents some problems. I am pretty sure there is a bug somewhere. I don't know as to what stage you have got up to but here is where i am.
My approach is:
Bot calls originator of the call.
Originator answers - this must happen first.
Bot dials participants and adds to the call.
Findings:
1. I send a request to my webserver registered bot to call between Person A in Contoso and Person B in Contoso (I will come to the PSTN portion later).
2. I see on Person A's teams it says that the bot is calling. If I press decline I get a call established event which of course is wrong (since I declined) but this leads to a problem because I cannot now automatically add the participant to the call once the originator answers. I decline, the recipient will be in limbo (and if this is external i.e. a pstn number could be even worse). There are lots of times you are making a call and get distracted so you end the call before it begins. It is vital that the Person A is on the call before Person B is called.
3. Assuming that you answer the call you will get the same call established event which means that you cannot distinguish between a call answered or declined. To get round this i had to introduce an IVR i.e. press 1 to dial the recipient (hardly slick but cannot do anything else with the event saying established even when it isn't).
4. The recipient then either answers or declines and this can be detected again provided you dial multiple recipients 1 by 1 and add them to the call.
5. I have not been able to get PSTN working and am still working on that but since the bot is calling the recipients i am intrigued as to what number it uses. While setting up PSTN I needed to get a number from Microsoft and assign that to a user say Person A. Since the bot cannot be assigned a number I am curious as to what the recipient sees as the incoming call number and of course this may stop a bot dialing PSTN anyway (still to be checked).
6. I have confirmed by the help on these forums that direct dialing is not available and have placed as a feature request. i.e. the bot makes the calls but remains silent and invisible so the Person A and Person B think they are the only ones on the call. I also think that unless i am missing anything a declined call should not say established.
I get the feeling that there must be a very simple way of doing this click to dial task in the same way you describe but cannot find anything. It is vital i have the originator of the call answer first before adding participants but I cannot see it working at the moment.
If anyone has any thoughts please let me know.
Thanks.