Changeset 4385 for pjproject/branches/1.x/pjsip/src/pjsip/sip_transaction.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_transaction.c
r4379 r4385 404 404 const pj_str_t *branch = &rdata->msg_info.via->branch_param; 405 405 406 if (pj_strn cmp(branch,&rfc3261_branch,PJSIP_RFC3261_BRANCH_LEN)==0) {406 if (pj_strnicmp(branch,&rfc3261_branch,PJSIP_RFC3261_BRANCH_LEN)==0) { 407 407 408 408 /* Create transaction key. */ … … 549 549 * twice! 550 550 */ 551 if(pj_hash_get (mod_tsx_layer.htable,552 tsx->transaction_key.ptr,553 tsx->transaction_key.slen,554 NULL))551 if(pj_hash_get_lower(mod_tsx_layer.htable, 552 tsx->transaction_key.ptr, 553 tsx->transaction_key.slen, 554 NULL)) 555 555 { 556 556 pj_mutex_unlock(mod_tsx_layer.mutex); … … 569 569 /* Register the transaction to the hash table. */ 570 570 #ifdef PRECALC_HASH 571 pj_hash_set( tsx->pool, mod_tsx_layer.htable, tsx->transaction_key.ptr, 572 tsx->transaction_key.slen, tsx->hashed_key, tsx); 571 pj_hash_set_lower( tsx->pool, mod_tsx_layer.htable, 572 tsx->transaction_key.ptr, 573 tsx->transaction_key.slen, tsx->hashed_key, tsx); 573 574 #else 574 pj_hash_set( tsx->pool, mod_tsx_layer.htable, tsx->transaction_key.ptr, 575 tsx->transaction_key.slen, 0, tsx); 575 pj_hash_set_lower( tsx->pool, mod_tsx_layer.htable, 576 tsx->transaction_key.ptr, 577 tsx->transaction_key.slen, 0, tsx); 576 578 #endif 577 579 … … 605 607 /* Register the transaction to the hash table. */ 606 608 #ifdef PRECALC_HASH 607 pj_hash_set ( NULL, mod_tsx_layer.htable, tsx->transaction_key.ptr,608 tsx->transaction_key.slen, tsx->hashed_key, NULL);609 pj_hash_set_lower( NULL, mod_tsx_layer.htable, tsx->transaction_key.ptr, 610 tsx->transaction_key.slen, tsx->hashed_key, NULL); 609 611 #else 610 pj_hash_set ( NULL, mod_tsx_layer.htable, tsx->transaction_key.ptr,611 tsx->transaction_key.slen, 0, NULL);612 pj_hash_set_lower( NULL, mod_tsx_layer.htable, tsx->transaction_key.ptr, 613 tsx->transaction_key.slen, 0, NULL); 612 614 #endif 613 615 … … 652 654 pj_mutex_lock(mod_tsx_layer.mutex); 653 655 tsx = (pjsip_transaction*) 654 pj_hash_get( mod_tsx_layer.htable, key->ptr, key->slen, &hval ); 656 pj_hash_get_lower( mod_tsx_layer.htable, key->ptr, key->slen, 657 &hval ); 655 658 pj_mutex_unlock(mod_tsx_layer.mutex); 656 659 … … 786 789 787 790 tsx = (pjsip_transaction*) 788 pj_hash_get ( mod_tsx_layer.htable, key.ptr, key.slen, &hval );791 pj_hash_get_lower( mod_tsx_layer.htable, key.ptr, key.slen, &hval ); 789 792 790 793 … … 835 838 836 839 tsx = (pjsip_transaction*) 837 pj_hash_get ( mod_tsx_layer.htable, key.ptr, key.slen, &hval );840 pj_hash_get_lower( mod_tsx_layer.htable, key.ptr, key.slen, &hval ); 838 841 839 842 … … 1294 1297 /* Calculate hashed key value. */ 1295 1298 #ifdef PRECALC_HASH 1296 tsx->hashed_key = pj_hash_calc(0, tsx->transaction_key.ptr, 1297 tsx->transaction_key.slen); 1299 tsx->hashed_key = pj_hash_calc_tolower(0, NULL, &tsx->transaction_key); 1298 1300 #endif 1299 1301 … … 1425 1427 /* Calculate hashed key value. */ 1426 1428 #ifdef PRECALC_HASH 1427 tsx->hashed_key = pj_hash_calc(0, tsx->transaction_key.ptr, 1428 tsx->transaction_key.slen); 1429 tsx->hashed_key = pj_hash_calc_tolower(0, NULL, &tsx->transaction_key); 1429 1430 #endif 1430 1431
Note: See TracChangeset
for help on using the changeset viewer.