I am new to asterisk and telephony. I have setup an Asterisk Server with FreePBX. For starters, I created two General SIP Devices with extension 1000 and 2000 to call between two computers on two different networks outside of Asterisk Server.
Now the problem is my softphones are on different networks are configured to contact Asterisk Server Public IP
Xlite Phone1 : 184.108.40.206
Asterisk Server: 220.127.116.11
Xlite Phone2 : 18.104.22.168
How would I make this to work, I opened wirehark and noticed that I kept getiing 503 service unavailable response from Asterisk Server and noticed in SIP header that Asterisk had “hung up for unknown reason”.
How would I tell asterisk server that soft phone on extension 2000 is on 22.214.171.124 and phone on extension 1000 is on 126.96.36.199? is this possible? How does Asterisk know to where to route the call to?
This is not an Asterisk question, this is a networking question.
The phones register with Asterisk to inform the system of dynamic hosts.
Then the IP protocol handles routing.
It sounds as if you have NAT issues. Before you open up ports make sure you understand the risks and security implications.
I am getting replies back from the Asterisk server as confirmed in wireshark, if it was a NAT issue then I would never have had any UDP replies from the destination. Therefore the problem is with Asterisk configuration or Client configuration.
You mentioned that Asterisk phone register themselves with the server. If the phones gets registered where would I see that in FreePBX?
This is now solved, phones had not registered with the server due to client mis-configuration. Under account settings for XLite client , under domain proxy, I enabled register with domain and receive calls.
I can now call between two computers
Go into the Asterisk Info module and click on SIP to see registrations.