Changeset 2855 for pjproject/trunk/pjsip/src/pjsip/sip_util.c
- Timestamp:
- Aug 5, 2009 6:41:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_util.c
r2766 r2855 308 308 pj_str_t tmp; 309 309 pj_status_t status; 310 const pj_str_t STR_CONTACT = { "Contact", 7 }; 310 311 PJ_USE_EXCEPTION; 311 312 … … 349 350 /* Contact. */ 350 351 if (param_contact) { 351 contact = pjsip_contact_hdr_create(tdata->pool);352 352 pj_strdup_with_null(tdata->pool, &tmp, param_contact); 353 contact->uri = pjsip_parse_uri( tdata->pool, tmp.ptr, tmp.slen, 354 PJSIP_PARSE_URI_AS_NAMEADDR); 355 if (contact->uri == NULL) { 353 contact = (pjsip_contact_hdr*) 354 pjsip_parse_hdr(tdata->pool, &STR_CONTACT, tmp.ptr, 355 tmp.slen, NULL); 356 if (contact == NULL) { 356 357 status = PJSIP_EINVALIDHDR; 357 358 goto on_error;
Note: See TracChangeset
for help on using the changeset viewer.