Changeset 4385 for pjproject/branches/1.x/pjsip/src/pjsip/sip_ua_layer.c
- Timestamp:
- Feb 27, 2013 10:11:59 AM (10 years ago)
- Location:
- pjproject/branches/1.x
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x
- Property svn:mergeinfo changed
/pjproject/trunk merged: 4208,4296
- Property svn:mergeinfo changed
-
pjproject/branches/1.x/pjsip/src/pjsip/sip_ua_layer.c
r3553 r4385 303 303 304 304 dlg_set = (struct dlg_set*) 305 pj_hash_get( mod_ua.dlg_table, dlg->local.info->tag.ptr, 306 dlg->local.info->tag.slen, 307 &dlg->local.tag_hval); 305 pj_hash_get_lower( mod_ua.dlg_table, 306 dlg->local.info->tag.ptr, 307 dlg->local.info->tag.slen, 308 &dlg->local.tag_hval); 308 309 309 310 if (dlg_set) { … … 327 328 328 329 /* Register the dialog set in the hash table. */ 329 pj_hash_set_np(mod_ua.dlg_table, 330 dlg->local.info->tag.ptr, dlg->local.info->tag.slen, 331 dlg->local.tag_hval, dlg_set->ht_entry, dlg_set); 330 pj_hash_set_np_lower(mod_ua.dlg_table, 331 dlg->local.info->tag.ptr, 332 dlg->local.info->tag.slen, 333 dlg->local.tag_hval, dlg_set->ht_entry, 334 dlg_set); 332 335 } 333 336 … … 342 345 dlg->dlg_set = dlg_set; 343 346 344 pj_hash_set_np(mod_ua.dlg_table, 345 dlg->local.info->tag.ptr, dlg->local.info->tag.slen, 346 dlg->local.tag_hval, dlg_set->ht_entry, dlg_set); 347 pj_hash_set_np_lower(mod_ua.dlg_table, 348 dlg->local.info->tag.ptr, 349 dlg->local.info->tag.slen, 350 dlg->local.tag_hval, dlg_set->ht_entry, dlg_set); 347 351 } 348 352 … … 388 392 /* If dialog list is empty, remove the dialog set from the hash table. */ 389 393 if (pj_list_empty(&dlg_set->dlg_list)) { 390 pj_hash_set(NULL, mod_ua.dlg_table, dlg->local.info->tag.ptr, 391 dlg->local.info->tag.slen, dlg->local.tag_hval, NULL); 394 pj_hash_set_lower(NULL, mod_ua.dlg_table, dlg->local.info->tag.ptr, 395 dlg->local.info->tag.slen, dlg->local.tag_hval, 396 NULL); 392 397 393 398 /* Return dlg_set to free nodes. */ … … 450 455 /* Lookup the dialog set. */ 451 456 dlg_set = (struct dlg_set*) 452 pj_hash_get (mod_ua.dlg_table, local_tag->ptr, local_tag->slen,453 457 pj_hash_get_lower(mod_ua.dlg_table, local_tag->ptr, 458 local_tag->slen, NULL); 454 459 if (dlg_set == NULL) { 455 460 /* Not found */ … … 463 468 dlg = dlg_set->dlg_list.next; 464 469 while (dlg != (pjsip_dialog*)&dlg_set->dlg_list) { 465 if (pj_str cmp(&dlg->remote.info->tag, remote_tag) == 0)470 if (pj_stricmp(&dlg->remote.info->tag, remote_tag) == 0) 466 471 break; 467 472 dlg = dlg->next; … … 564 569 /* Lookup the dialog set. */ 565 570 dlg_set = (struct dlg_set*) 566 pj_hash_get(mod_ua.dlg_table, tag->ptr, tag->slen, NULL); 571 pj_hash_get_lower(mod_ua.dlg_table, tag->ptr, tag->slen, 572 NULL); 567 573 return dlg_set; 568 574 } … … 621 627 while (dlg != (pjsip_dialog*)&dlg_set->dlg_list) { 622 628 623 if (pj_str cmp(&dlg->remote.info->tag, from_tag) == 0)629 if (pj_stricmp(&dlg->remote.info->tag, from_tag) == 0) 624 630 break; 625 631 … … 758 764 /* Get the dialog set. */ 759 765 dlg_set = (struct dlg_set*) 760 pj_hash_get (mod_ua.dlg_table,761 rdata->msg_info.from->tag.ptr,762 rdata->msg_info.from->tag.slen,763 NULL);766 pj_hash_get_lower(mod_ua.dlg_table, 767 rdata->msg_info.from->tag.ptr, 768 rdata->msg_info.from->tag.slen, 769 NULL); 764 770 765 771 if (!dlg_set) { … … 809 815 810 816 /* Otherwise find the one with matching To tag. */ 811 if (pj_str cmp(to_tag, &dlg->remote.info->tag) == 0)817 if (pj_stricmp(to_tag, &dlg->remote.info->tag) == 0) 812 818 break; 813 819
Note: See TracChangeset
for help on using the changeset viewer.