Changeset 1266 for pjproject/trunk/pjsip/src/test-pjsip/txdata_test.c
- Timestamp:
- May 11, 2007 3:14:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/txdata_test.c
r974 r1266 445 445 446 446 /* Fill up the Via header to prevent syntax error on parsing */ 447 via = pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL);447 via = (pjsip_via_hdr*) pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL); 448 448 via->transport = pj_str("TCP"); 449 449 via->sent_by.host = pj_str("127.0.0.1"); … … 708 708 via->branch_param = pj_str("012345678901234567890123456789"); 709 709 via->recvd_param = pj_str("192.168.0.7"); 710 pjsip_msg_insert_first_hdr(request->msg, pjsip_hdr_clone(request->pool, via));711 pjsip_msg_insert_first_hdr(request->msg, pjsip_hdr_clone(request->pool, via));710 pjsip_msg_insert_first_hdr(request->msg, (pjsip_hdr*) pjsip_hdr_clone(request->pool, via)); 711 pjsip_msg_insert_first_hdr(request->msg, (pjsip_hdr*) pjsip_hdr_clone(request->pool, via)); 712 712 pjsip_msg_insert_first_hdr(request->msg, (pjsip_hdr*)via); 713 713 … … 717 717 rdata.tp_info.pool = request->pool; 718 718 rdata.msg_info.msg = request->msg; 719 rdata.msg_info.from = pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL);720 rdata.msg_info.to = pjsip_msg_find_hdr(request->msg, PJSIP_H_TO, NULL);721 rdata.msg_info.cseq = pjsip_msg_find_hdr(request->msg, PJSIP_H_CSEQ, NULL);722 rdata.msg_info.cid = pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL);719 rdata.msg_info.from = (pjsip_from_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL); 720 rdata.msg_info.to = (pjsip_to_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_TO, NULL); 721 rdata.msg_info.cseq = (pjsip_cseq_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_CSEQ, NULL); 722 rdata.msg_info.cid = (pjsip_cid_hdr*) pjsip_msg_find_hdr(request->msg, PJSIP_H_FROM, NULL); 723 723 rdata.msg_info.via = via; 724 724
Note: See TracChangeset
for help on using the changeset viewer.