Changeset 2325 for pjproject/trunk
- Timestamp:
- Sep 26, 2008 10:06:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r2316 r2325 644 644 * public but response contains private IP. A NAT in the middle 645 645 * might have messed up with the SIP packets. 646 * 647 * This exception can be disabled by setting allow_contact_rewrite 648 * to 2. In this case, the switch will always be done whenever there 649 * is difference in the IP address in the response. 646 650 */ 647 if ( !is_private_ip(&uri->host) && !is_private_ip(&srv_ip) &&648 is_private_ip(via_addr))651 if (acc->cfg.allow_contact_rewrite != 2 && !is_private_ip(&uri->host) && 652 !is_private_ip(&srv_ip) && is_private_ip(via_addr)) 649 653 { 650 654 /* Don't switch */
Note: See TracChangeset
for help on using the changeset viewer.