Changeset 1084 for pjproject


Ignore:
Timestamp:
Mar 19, 2007 1:06:32 PM (18 years ago)
Author:
bennylp
Message:

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

File:
1 edited

Legend:

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

    r1082 r1084  
    398398    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    399399 
    400     status = pjsip_register_hdr_parser( "Call-ID", NULL, &parse_hdr_call_id); 
     400    status = pjsip_register_hdr_parser( "Call-ID", "i", &parse_hdr_call_id); 
    401401    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    402402 
     
    404404    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    405405 
    406     status = pjsip_register_hdr_parser( "Content-Length", NULL,  
     406    status = pjsip_register_hdr_parser( "Content-Length", "l",  
    407407                                        &parse_hdr_content_len); 
    408408    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    409409 
    410     status = pjsip_register_hdr_parser( "Content-Type", NULL,  
     410    status = pjsip_register_hdr_parser( "Content-Type", "c",  
    411411                                        &parse_hdr_content_type); 
    412412    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
Note: See TracChangeset for help on using the changeset viewer.