0

我正在尝试从 .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

有人可以告诉我我做错了什么或解决方案是什么?

问候, 塔玛什

4

1 回答 1

0

检查 manager.conf 中的 AMI。它应该是这样的:

 enabled = yes
 port = 5038
 bindaddr = 0.0.0.0
于 2013-02-20T11:00:26.010 回答