TimeoutError: [WinError 10060] while trying to make a call using asterisk

I am trying to initiate a call using asterisk.

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')

I am getting an error

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

I dont have any extension numbers, so I tried like

 click_to_call(phone_to_dial='011918978833992',
          username = 'xxxxx', password = "xxxxxx",
          local_user = '')

but still I have the same error. How to rectify the error?

assuming you re using the default configuration, you need connect to the port 5038 TCP not the 5060

5038 port is used by person who wrote the blog. When I purchased the account I got info that I have to configure using port 5060. By seeing the error log I presumed it error due to local_user.

I have tried changing the port to 5038 and the error is still the same.

You are asking for support on something that is not Asterisk, but rather a program that interacts with Asterisk. Without knowing what that program is it is difficult to even tell you the right place to get support.

Asterisk has no built in click to call feature. That is created by an external prorgram using, the Asterisk originate or call file mecahisms.