Ignore:
Timestamp:
Oct 1, 2010 12:24:23 AM (14 years ago)
Author:
bennylp
Message:

Closed #1141: Compile and run-time setting to allow printing of port number in URI in To and From header (thanks Marcus Froeschl for the suggestion)

File:
1 edited

Legend:

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

    r3242 r3329  
    289289 
    290290    /* Only print port if it is explicitly specified.  
    291      * Port is not allowed in To and From header. 
    292      */ 
    293     /* Unfortunately some UA requires us to send back the port 
    294      * number exactly as it was sent. We don't remember whether an 
    295      * UA has sent us port, so we'll just send the port indiscrimately 
    296      */ 
    297     //PJ_TODO(SHOULD_DISALLOW_URI_PORT_IN_FROM_TO_HEADER) 
    298     if (url->port && context != PJSIP_URI_IN_FROMTO_HDR) { 
     291     * Port is not allowed in To and From header, see Table 1 in 
     292     * RFC 3261 Section 19.1.1 
     293     */ 
     294    /* Note: ticket #1141 adds run-time setting to allow port number to 
     295     * appear in From/To header. Default is still false. 
     296     */ 
     297    if (url->port && 
     298        (context != PJSIP_URI_IN_FROMTO_HDR || 
     299         pjsip_cfg()->endpt.allow_port_in_fromto_hdr)) 
     300    { 
    299301        if (endbuf - buf < 10) 
    300302            return -1; 
Note: See TracChangeset for help on using the changeset viewer.