nat_uac_test(flags)
Tries to guess if client's request originated behind a nat. The parameter determines what heuristics is used.
Meaning of the flags is as follows:
1 - The “Contact” header field is searched for occurrence of RFC1918 or RFC6598 addresses.
2 - the "received" test is used: address in the “Via” header is compared against source IP address of signaling
4 - The Top Most “Via” is searched for occurrence of RFC1918 or RFC6598 addresses
8 - The SDP is searched for occurrence of RFC1918 or RFC6598 addresses
16 - Test if the source port is different from the port in the “Via” header
32 - Test if the source IP address of signaling is a RFC1918 or RFC6598 address
64 - Test if the source connection of signaling is a WebSocket
128 - Test if the “Contact” header URI port differs from the source port of the request (Warning: this is might be legal or even intended combination in non NATted scenarios)
All flags can be bitwise combined, the test returns true if any of the tests identified a NAT.
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE, FAILURE_ROUTE, BRANCH_ROUTE.
is this some known bug in 5.1.x?
Thanks