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.
For example:
Xlite Phone1
extension 1000
username user1
password user1
Xlite Phone2
extension 2000
username user2
password user2
Now the problem is my softphones are on different networks are configured to contact Asterisk Server Public IP
Xlite Phone1 : 55.1.1.1
Asterisk Server: 66.1.1.1
Xlite Phone2 : 77.1.1.1
Question:
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 77.1.1.1 and phone on extension 1000 is on 55.1.1.1? is this possible? How does Asterisk know to where to route the call to?
Thanks