Azure VM opening ports to talk to asterisk ami

Michael Salzlechner 25 Reputation points
2023-08-07T12:09:23.6333333+00:00

Attempting to open ports to allow app to talk to asterisk AMI interface.

opened the port outgoing on the network interface and made sure the windows firewall isnt blocking it

tried to use telnet to open a connection to the port on the asterisk machine but it fails

for testing even tried to open all outgoing ports but it still failed.

what could i be missing?

thanks

Mike

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,097 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,782 questions
{count} votes

Accepted answer
  1. Jackson Martins 10,606 Reputation points MVP Volunteer Moderator
    2023-08-07T12:23:06.84+00:00

    Hi @Michaek Salzlechnner

    Try To verify that the port is actively listening, you can execute the command telnet localhost <port>. Make sure to replace <port> with the actual port number that the Asterisk AMI interface is listening on, typically 5038. This command will help you confirm that the connection to the specified port is successfully established without going through the firewall

    If the service is running locally, make sure there isn't a conflict in the Network Security Group rules, usually the NSG is bound only on the VNET, but there are cases that you bind on both the VNET and the NIC, if you have two nsgs, make sure that the inbound rule is currently configured on both

    You can go to Network Watcher -> Effective security rules - to verify which NSG are associated with your VM

    just like:

    User's image

    You can also run "NSG Diagnostics" to verify if there are any deny rule, just like:

    User's image

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.