I have 2 questions about the port using in openser with NAT enabled.
Q1. Can I using another port number instead of 5060?
I have tried to change the setting in configuration file. Below is a part of configuration file with NAT enabled.
... port=6060 ... if (method=="INVITE" && client_nat_test("3")) { # INSERT YOUR IP ADDRESS HERE record_route_preset("203.193.26.234:6060;nat=yes"); } else if (method!="REGISTER") { record_route(); };
Sip phone (UA1) can register in openser successfully. But in the location table, I have the contact and received field still using port 5060. sip:871966806561@10.0.0.46:5060 | sip:210.184.23.31:5060 As a result, UA1 failed to make a call as the port is not the one we want.
Q2. How can I set multiple port for an openser if another port can be used instead of 5060? Say I want openser listen to 3 ports, ie 5060, 6060, 7060.