Ignore:
Timestamp:
May 12, 2009 3:55:09 PM (15 years ago)
Author:
bennylp
Message:

Ticket #842: Error parsing status line in sipfrag message body in call transfer scenario (thanks Tomáš Valenta for the report!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test/msg_test.c

    r2660 r2695  
    816816static pj_status_t simple_test(void) 
    817817{ 
     818    char stbuf[] = "SIP/2.0 180 Ringing like it never rings before"; 
    818819    unsigned i; 
     820    pjsip_status_line st_line; 
    819821    pj_status_t status; 
    820822 
    821823    PJ_LOG(3,(THIS_FILE, "  simple test..")); 
     824     
     825    status = pjsip_parse_status_line(stbuf, pj_ansi_strlen(stbuf), &st_line); 
     826    if (status != PJ_SUCCESS) 
     827        return status; 
     828 
    822829    for (i=0; i<PJ_ARRAY_SIZE(test_array); ++i) { 
    823830        pj_pool_t *pool; 
Note: See TracChangeset for help on using the changeset viewer.