TimeoutError: [WinError 10060] while trying to make a call using asterisk
TimeoutError: [WinError 10060] while trying to make a call using asterisk
我正在尝试 initiate a call 使用星号。
HOST = "182.156.197.37"
PORT = 5060
# indian number 89788xxxxx country code 91
click_to_call(phone_to_dial='0119189788xxxxx',
username = 'xxxxx', password = "xxxxxx",
local_user = '600')
我收到一个错误
Traceback (most recent call last):
File "D:/Projects/Trails/testcall.py", line 45, in <module>
local_user = '600')
File "D:/Projects/Trails/testcall.py", line 30, in click_to_call
s.connect((HOST, PORT))
TimeoutError: [WinError 10060] 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
Process finished with exit code 1
我没有任何分机号码,所以我试了一下
click_to_call(phone_to_dial='011918978833992',
username = 'xxxxx', password = "xxxxxx",
local_user = '')
但我仍然有同样的错误。如何纠正错误?
检查防火墙,检查 /etc/asterisk/manager.conf 和绑定 ip 的包含文件。
我正在尝试 initiate a call 使用星号。
HOST = "182.156.197.37"
PORT = 5060
# indian number 89788xxxxx country code 91
click_to_call(phone_to_dial='0119189788xxxxx',
username = 'xxxxx', password = "xxxxxx",
local_user = '600')
我收到一个错误
Traceback (most recent call last):
File "D:/Projects/Trails/testcall.py", line 45, in <module>
local_user = '600')
File "D:/Projects/Trails/testcall.py", line 30, in click_to_call
s.connect((HOST, PORT))
TimeoutError: [WinError 10060] 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
Process finished with exit code 1
我没有任何分机号码,所以我试了一下
click_to_call(phone_to_dial='011918978833992',
username = 'xxxxx', password = "xxxxxx",
local_user = '')
但我仍然有同样的错误。如何纠正错误?
检查防火墙,检查 /etc/asterisk/manager.conf 和绑定 ip 的包含文件。