我正在尝试从 .NET 应用程序连接到 Asterisk 服务器,但未建立连接。我正在使用以下代码连接到 Asterisk:
Socket clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPEndPoint serverEndPoint = new IPEndPoint(IPAddress.Parse("192.168.0.35"), 5038);
clientSocket.Connect(serverEndPoint);
我收到以下错误:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.35:5038
有人可以告诉我我做错了什么或解决方案是什么?
问候, 塔玛什