Changeset 2855 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- Aug 5, 2009 6:41:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r2852 r2855 574 574 pj_bool_t matched; 575 575 pj_str_t srv_ip; 576 pjsip_contact_hdr *contact_hdr; 577 const pj_str_t STR_CONTACT = { "Contact", 7 }; 576 578 577 579 tp = param->rdata->tp_info.transport; … … 620 622 /* Compare received and rport with the URI in our registration */ 621 623 pool = pjsua_pool_create("tmp", 512, 512); 622 uri = (pjsip_sip_uri*) 623 pjsip_parse_uri(pool, acc->contact.ptr, acc->contact.slen, 0); 624 contact_hdr = (pjsip_contact_hdr*) 625 pjsip_parse_hdr(pool, &STR_CONTACT, acc->contact.ptr, 626 acc->contact.slen, NULL); 627 pj_assert(contact_hdr != NULL); 628 uri = (pjsip_sip_uri*) contact_hdr->uri; 624 629 pj_assert(uri != NULL); 625 630 uri = (pjsip_sip_uri*) pjsip_uri_get_uri(uri);
Note: See TracChangeset
for help on using the changeset viewer.