[英]creating application endpoint for MS BOT with skype for business and local exchange
[英]How to connect a bot to Skype for business
我目前正在使用Microsoft Bot Framework,并且正在尝试将我的bot连接到新的Skype for Business渠道。
我按照说明操作:
以管理员身份打开Windows PowerShell并运行以下命令:
Import-PSSession(New-CsOnlineSession -Credential(Get-Credential))
输入您的管理员凭据
运行以下cmdlet:
New-CsOnlineApplicationEndpoint -ApplicationId botid -Name NameOfTheBot -Uri sip:username @ yourdomain
我让我们的租户管理员输入他的凭据,并使用Office 365许可证为机器人创建域帐户。 (我首先尝试注册没有分配Office 365许可证的bot)。
当bot帐户拥有Office 365许可证并尝试调用New-CsOnlineApplicationEndpoint时,我收到以下错误:
Cmdlet invocation error
+ CategoryInfo : NotSpecified: (:) [New-CsOnlineApplicationEndpoint], CmdletInvocationException
+ FullyQualifiedErrorId : Error processing cmdlet request,Microsoft.Rtc.Management.Hosted.PlatformService.NewPlatformServiceAppEndpointConfigCmdlet
+ PSComputerName : admin1e.online.lync.com
Could not find the application endpoint
+ CategoryInfo : InvalidOperation: (Microsoft.Rtc.M...cation endpoint:PlatformServiceCmdletException) [New-CsOnlineApplicationEndpoint], PlatformServiceException
+ FullyQualifiedErrorId : Could not get application endpoint or the Uri is already present as an User in BVD,Microsoft.Rtc.Management.Hosted.PlatformService.NewPlatformServiceAppEndpointConfigCmdlet
+ PSComputerName : admin1e.online.lync.com
没有Office 365许可证,我收到以下错误:
Cmdlet invocation error
+ CategoryInfo : NotSpecified: (:) [New-CsOnlineApplicationEndpoint], CmdletInvocationException
+ FullyQualifiedErrorId : Error processing cmdlet request,Microsoft.Rtc.Management.Hosted.PlatformService.NewPlatformServiceAppEndpointConfigCmdlet
+ PSComputerName : admin1e.online.lync.com
Exception of type 'Microsoft.Rtc.Management.Hosted.PlatformService.ProvisioningLibrary.ApplicationEndpointProvisioningException' was thrown.
+ CategoryInfo : InvalidOperation: (Microsoft.Rtc.M...on' was thrown.:PlatformServiceCmdletException) [New-CsOnlineApplicationEndpoint], ApplicationEndpointProvisioningException
+ FullyQualifiedErrorId : Exception of type 'Microsoft.Rtc.Management.Hosted.PlatformService.ProvisioningLibrary.ApplicationEndpointProvisioningException' was thrown.,Microsoft.Rtc.Management.Hosted.PlatformService.NewPlatformServiceAppEndpointConfigCmdlet
+ PSComputerName : admin1e.online.lync.com
我还按照Skype for Business连接器的一些更通用的信息进行了详细介绍: https : //msdn.microsoft.com/en-us/skype/trusted-application-api/docs/trustedapplicationendpoint
我也尝试使用本期中提到的新帐户但出现了同样的错误: 无法将僵尸程序连接到Skype for Business Online
您需要定位域名:
SIP:botname@company.onmicrosoft.com
如果您定位自定义域,它似乎无效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.