Ignore:
Timestamp:
Apr 28, 2007 1:00:33 PM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #238: allow colon in Via parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/split-3rd-party/pjsip/src/pjsip/sip_msg.c

    r1127 r1217  
    17261726    copy_advance_pair(buf, ";received=", 10, hdr->recvd_param); 
    17271727    copy_advance_pair(buf, ";branch=", 8, hdr->branch_param); 
    1728      
     1728 
     1729    /* Via's via-extension params should be printed with token spec 
     1730     * according to RFC 3261's generic-param production, but some 
     1731     * endpoint uses pname/pvalue production for these params, by 
     1732     * sending to us Via parameter containing ":". 
     1733     *  
     1734     * So for interoperability sake, lets allow ":" in Via param. 
     1735 
    17291736    printed = pjsip_param_print_on(&hdr->other_param, buf, endbuf-buf,  
    17301737                                   &pjsip_TOKEN_SPEC, 
    1731                                    &pjsip_TOKEN_SPEC, ';'); 
     1738                                   &pjsip_TOKEN_SPEC, ';'); 
     1739     */ 
     1740    printed = pjsip_param_print_on(&hdr->other_param, buf, endbuf-buf,  
     1741                                   &pjsip_PARAM_CHAR_SPEC, 
     1742                                   &pjsip_PARAM_CHAR_SPEC, ';'); 
     1743 
    17321744    if (printed < 0) 
    17331745        return -1; 
Note: See TracChangeset for help on using the changeset viewer.