Bot Platform Can't Use Skype for Business

I have built a Bot using C #. I tested it with an emulator, web chat, direct line and Skype and it worked as expected. I followed the steps to register the bot with skype for business, I waited over 24 hours to see what happens. So far I can see the Bot contact as a contact, however when I try to send a message, the error is

"There was an error in Skype for Business reaching the bot service. This conversation has been saved. You will soon see this in the Conversations tab in Skype for Business and in the Outlook Conversation History folder."

Looking for some magazines or something, I have put together some information that I am sharing here.

Analytics from BOT that prove it achieves: Analytics

The log for the SFB channel said "There was an error sending this message to your bot: HTTP status code NotFound"

It looks like the Bot endpoint is not available. When I registered it with SFB I used NGROK (to start my machine again) but later I changed it to an azure site.

The "old" endpoint is still in use today: end point

So, all I can guess is that the Bot End Point was "registered" the moment I registered my bot with SFB and is now impossible to change.

Does any of you make sense?

My problem seems to be similar to Bot Framework - error sending message from Skype for Business

Adrian

+3


source to share


1 answer


Ok I'm pretty sure the problem with the bot was registering the endpoint. I found a powershell script file that updates the endpoint. I opened Windows PowerShell as administrator and ran the ff scripts:

Import-PSSession (New-CsOnlineSession -Credential (Get-Credential))
Set-CsOnlineApplicationEndpoint -Uri sip:username@yourdomain.com

      

Obviously I changed username@yourdomain.com

to my own. Then, after waiting 8 hours (or so), I was able to communicate with the bot using SFB as a channel.



The bot works as expected

I hope this can be helpful to others.

+1


source







All Articles