Hi all, I have a user behind NAT with address : sip:userA@192.168.10.210:42276. When user send REGISTER, the proxy checks if user is behind NAT. If it is, proxy makes:
fix_nated_register(); force_rport(); setbflag(6).
When I check what kind of address proxy has saved on LOCATION database, I see at Contact column: sip:userA@IP_NAT:42276. So proxy mantains the same Port of the user and doesn't save the NAT's IP:PORT pair. Why? In this way, in fact, proxy is not able to keep connection alive.
Regards, daniel
Daniel Grotti schrieb:
Hi all, I have a user behind NAT with address : sip:userA@192.168.10.210:42276. When user send REGISTER, the proxy checks if user is behind NAT. If it is, proxy makes:
fix_nated_register(); force_rport(); setbflag(6).
fix_nated_register will write the source socket (IP:port) into an AVP.
During save() this AVP will be stored in location table (received column)
After lookup(), $ru will be populated by the contact URI and $du will be populated with the received URI.
I guess in your case the NAT device does "port preservation", thus the private and public ports are the same. This is common for many NAT devices, but may cause problems if the NAT also does "port overloading".
regards klaus
When I check what kind of address proxy has saved on LOCATION database, I see at Contact column: sip:userA@IP_NAT:42276. So proxy mantains the same Port of the user and doesn't save the NAT's IP:PORT pair. Why? In this way, in fact, proxy is not able to keep connection alive.
Regards, daniel
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users