Ignore:
Timestamp:
Sep 26, 2008 10:06:11 PM (16 years ago)
Author:
bennylp
Message:

More ticket #643: added setting to disable this ticket (by setting allow_contact_rewrite to 2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r2316 r2325  
    644644     * public but response contains private IP. A NAT in the middle 
    645645     * 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. 
    646650     */ 
    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)) 
    649653    { 
    650654        /* Don't switch */ 
Note: See TracChangeset for help on using the changeset viewer.