Changeset 1082


Ignore:
Timestamp:
Mar 19, 2007 10:27:13 AM (18 years ago)
Author:
bennylp
Message:

Fixed ticket #189: Error parsing compact form of Via header (thanks Tobias Söreling)

Location:
pjproject/trunk/pjsip/src
Files:
2 edited

Legend:

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

    r974 r1082  
    453453    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    454454 
    455     status = pjsip_register_hdr_parser( "Via", NULL, &parse_hdr_via); 
     455    status = pjsip_register_hdr_parser( "Via", "v", &parse_hdr_via); 
    456456    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    457457 
  • pjproject/trunk/pjsip/src/test-pjsip/msg_test.c

    r974 r1082  
    6363    "Record-Route: <sip:server10.biloxi.com>,\r\n" /* multiple routes+folding*/ 
    6464    "  <sip:bigbox3.site3.atlanta.com;lr>\n" 
    65     "Via: SIP/2.0/SCTP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c230\n" 
     65    "v: SIP/2.0/SCTP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c230\n" 
    6666    "Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8\n" /* folding. */ 
    6767    " ;received=192.0.2.1\r\n" 
Note: See TracChangeset for help on using the changeset viewer.