Ignore:
Timestamp:
Apr 28, 2007 3:37:49 PM (14 years ago)
Author:
bennylp
Message:

Undo ticket #238

File:
1 edited

Legend:

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

    r1217 r1220  
    7878    /* Typical response message. */ 
    7979    "SIP/2.0 200 OK\r\n" 
    80     "Via: SIP/2.0/SCTP server10.biloxi.com;branch=z9hG4bKnashds8;rport;received=192.0.2.1;param=a:b\r\n" 
     80    "Via: SIP/2.0/SCTP server10.biloxi.com;branch=z9hG4bKnashds8;rport;received=192.0.2.1\r\n" 
    8181    "Via: SIP/2.0/UDP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c2312983.1;received=192.0.2.2\r\n" 
    8282    "Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bK776asdhds ;received=192.0.2.3\r\n" 
     
    176176        } 
    177177    } 
    178     if (!pj_list_empty(&err_list)) { 
    179         PJ_LOG(3,(THIS_FILE, "   Syntax error in line %d col %d", 
    180                       err_list.next->line, err_list.next->col)); 
    181         status = -11; 
    182         goto on_return; 
    183     } 
    184  
    185178    pj_get_timestamp(&t2); 
    186179    pj_sub_timestamp(&t2, &t1); 
     
    561554    pjsip_cseq_hdr *cseq; 
    562555    pjsip_msg *msg = pjsip_msg_create(pool, PJSIP_RESPONSE_MSG); 
    563     pjsip_param *param; 
    564556    pjsip_msg_body *body; 
    565557 
     
    568560    msg->line.status.reason = pj_str("OK"); 
    569561 
    570     //"Via: SIP/2.0/SCTP server10.biloxi.com;branch=z9hG4bKnashds8;rport;received=192.0.2.1;param=a:b\r\n" 
     562    //"Via: SIP/2.0/SCTP server10.biloxi.com;branch=z9hG4bKnashds8;rport;received=192.0.2.1\r\n" 
    571563    via = pjsip_via_hdr_create(pool); 
    572564    pjsip_msg_add_hdr(msg, (pjsip_hdr*)via); 
     
    576568    via->rport_param = 0; 
    577569    via->recvd_param = pj_str("192.0.2.1"); 
    578  
    579     param = pj_pool_zalloc(pool, sizeof(pjsip_param)); 
    580     param->name = pj_str("param"); 
    581     param->value = pj_str("a:b"); 
    582     pj_list_push_back(&via->other_param, param); 
    583570 
    584571    //"Via: SIP/2.0/UDP bigbox3.site3.atlanta.com;branch=z9hG4bK77ef4c2312983.1;received=192.0.2.2\r\n" 
Note: See TracChangeset for help on using the changeset viewer.