Changeset 235


Ignore:
Timestamp:
Feb 26, 2006 9:22:35 PM (19 years ago)
Author:
bennylp
Message:

Do not drop response with mismatch sent-by, since it can happen when endpoint in private network sends request to public server (e.g. SER)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c

    r230 r235  
    675675        } 
    676676        local_addr = &rdata->tp_info.transport->local_name.host; 
    677         if (pj_strcmp(&rdata->msg_info.via->sent_by.host, local_addr) != 0) 
     677 
     678        if (pj_strcmp(&rdata->msg_info.via->sent_by.host, local_addr) != 0) { 
     679 
     680            /* The RFC says that we should drop response when sent-by 
     681             * address mismatch. But it could happen (e.g. with SER) when 
     682             * endpoint with private IP is sending request to public 
     683             * server. 
     684 
    678685            mismatch = PJ_TRUE; 
    679         else if (port != rdata->tp_info.transport->local_name.port) { 
     686 
     687             */ 
     688 
     689        } else if (port != rdata->tp_info.transport->local_name.port) { 
    680690            /* Port or address mismatch, we should discard response */ 
    681691            /* But we saw one implementation (we don't want to name it to  
Note: See TracChangeset for help on using the changeset viewer.