Closed MTerance closed 8 months ago
Hard to follow with what you have provided. Goal also not clear. My best shot is this:
Specify the ports explicitly. Don't create multiple CommunicationClients on a machine. You only need one process with one CommunicationClient to handle many calls at once.
I found the source of my problem, My bot was launched with IIS, and so all the ports normally available for CommunicationClient was already attribued
Issue When I initialize my bot for use Skype Audio / video, the programe threw an error in the botService 👍.
at every reboot of the application, the CommunicationsClientBuilder set different ports until a port is setted a secopnd time ?
why ? how to resolve that ?
AddressInUseException: Only one usage of each socket address (protocol/network address/port) is normally permitted.
IOException: Failed to bind to address http://127.0.0.1:8811: address already in use
Code Snippet
in botService, at the initialization of the bot
builder.SetAuthenticationProvider(authProvider); builder.SetNotificationUrl(new Uri($"https://{_botConfiguration.ServiceCname}/{_botConfiguration.NotificationUrl}")); builder.SetMediaPlatformSettings(_botConfiguration.MediaPlatformSettings); builder.SetServiceBaseUrl(new Uri("https://graph.microsoft.com/v1.0")); _client = builder.Build();
Expected behavior
the builder in the bot must set the plateform settings for send information audio and video
Graph SDK (please complete the following information):