- Timestamp:
- Feb 23, 2006 9:27:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r212 r227 143 143 param = uri->header_param.next; 144 144 while (param != &uri->header_param) { 145 pjsip_generic_string_hdr *req_hdr; 146 147 req_hdr = pjsip_generic_string_hdr_create(dlg->pool, ¶m->name, 148 ¶m->value); 149 pj_list_push_back(&dlg->inv_hdr, req_hdr); 145 pjsip_hdr *hdr; 146 147 hdr = pjsip_parse_hdr(dlg->pool, ¶m->name, param->value.ptr, 148 param->value.slen, NULL); 149 if (hdr == NULL) { 150 status = PJSIP_EINVALIDURI; 151 goto on_error; 152 } 153 pj_list_push_back(&dlg->inv_hdr, hdr); 150 154 151 155 param = param->next; 152 156 } 157 158 /* Now must remove any header params from URL, since that would 159 * create another header in pjsip_endpt_create_request(). 160 */ 161 pj_list_init(&uri->header_param); 153 162 } 154 163
Note: See TracChangeset
for help on using the changeset viewer.