As I was trying to connect the node.js app to the Asterisk server, I met a problem.
I could follow this “Hello world” guide before I tried the node.js app. (Hello World - Asterisk Documentation)
If you’re trying to connect on a non-loopback address, it can be helpful to ensure that Asterisk is listening on that address. Otherwise stick to localhost or 127.0.0.1.
Ah, OK, you are trying to make a SIP connection, not an Asterisk API connection. Yes, port 5060 should be it. But that’s not in your list of listening ports either.
Hmm, Asterisk API connection? I may misunderstand them (SIP con, Asterisk API).
How can I proceed with this? Kindly let me know step by step.
I need to add 5060 port to that list first?
On Tuesday 27 February 2024 at 05:16:12, Seymen2023 via Asterisk Community
wrote:
Hmm, Asterisk API connection? I may misunderstand them (SIP con, Asterisk
API). How can I proceed with this? Kindly let me know step by step.
I need to add 5060 port to that list first?
If you are trying to connect to the Asterisk Management Interface (AMI) then
that should be listening on TCP port 5038, and that is the port number your
application needs to connect to.
If instead you are trying to talk to Asterisk using SIP, then unless you have
told Asterisk otherwise, it will be listening on UDP port 5060, and that is
what your application needs to connect to. Trying to connect to TCP port 5060
will not work unless you tell Asterisk to listen for TCP SIP connections
(which is possible, but uncommon).
Maybe it would help if you were to explain what you want your application to
be able to do once it has connected to Asterisk.
Antony.
–
I bought a book on memory techniques, but I’ve forgotten where I put it.
I want to build my own VOIP system.
I will make some users and extensions and assign them to the users.
They will register their user accounts to Zoiper 5 and make calls through my website.
My website is connected to the node server and the node server uses the ari-client node module (Asterisk server). So I want to connect the node server to Asterisk in the node server first.
On Tuesday 27 February 2024 at 12:36:51, Seymen2023 via Asterisk Community
wrote:
I want to build my own VOIP system.
I will make some users and extensions and assign them to the users.
They will register their user accounts to Zoiper 5 and make calls through
my website. My website is connected to the node server and the node server
uses the ari-client node module (Asterisk server). So I want to connect
the node server to Asterisk in the node server first.
Thanks for that explanation. I shall now defer to someone who knows about
ARI, which I have never used.
Antony.
–
“640 kilobytes (of RAM) should be enough for anybody.”