Changeset 4208 for pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
- Timestamp:
- Jul 18, 2012 7:52:33 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
r4165 r4208 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 … … 1300 1303 /* Calculate hashed key value. */ 1301 1304 #ifdef PRECALC_HASH 1302 tsx->hashed_key = pj_hash_calc(0, tsx->transaction_key.ptr, 1303 tsx->transaction_key.slen); 1305 tsx->hashed_key = pj_hash_calc_tolower(0, NULL, &tsx->transaction_key); 1304 1306 #endif 1305 1307 … … 1433 1435 /* Calculate hashed key value. */ 1434 1436 #ifdef PRECALC_HASH 1435 tsx->hashed_key = pj_hash_calc(0, tsx->transaction_key.ptr, 1436 tsx->transaction_key.slen); 1437 tsx->hashed_key = pj_hash_calc_tolower(0, NULL, &tsx->transaction_key); 1437 1438 #endif 1438 1439
Note: See TracChangeset
for help on using the changeset viewer.