Ignore:
Timestamp:
Feb 27, 2013 10:11:59 AM (11 years ago)
Author:
nanang
Message:

Re #1556: backported to 1.x

Location:
pjproject/branches/1.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x

  • pjproject/branches/1.x/pjsip/src/pjsip/sip_dialog.c

    r4380 r4385  
    207207 
    208208    /* Calculate hash value of local tag. */ 
    209     dlg->local.tag_hval = pj_hash_calc(0, dlg->local.info->tag.ptr, 
    210                                        dlg->local.info->tag.slen); 
     209    dlg->local.tag_hval = pj_hash_calc_tolower(0, NULL, 
     210                                               &dlg->local.info->tag); 
    211211 
    212212    /* Randomize local CSeq. */ 
     
    375375 
    376376    /* Calculate hash value of local tag. */ 
    377     dlg->local.tag_hval = pj_hash_calc(0, dlg->local.info->tag.ptr, 
    378                                        dlg->local.info->tag.slen); 
     377    dlg->local.tag_hval = pj_hash_calc_tolower(0, NULL, &dlg->local.info->tag); 
    379378 
    380379 
     
    523522 
    524523    /* Calculate hash value of remote tag. */ 
    525     dlg->remote.tag_hval = pj_hash_calc(0, dlg->remote.info->tag.ptr,  
    526                                         dlg->remote.info->tag.slen); 
     524    dlg->remote.tag_hval = pj_hash_calc_tolower(0, NULL, &dlg->remote.info->tag); 
    527525 
    528526    /* Update remote capabilities info */ 
     
    17771775         res_code/100 <= 2 && 
    17781776         pjsip_method_creates_dialog(&rdata->msg_info.cseq->method) && 
    1779          pj_strcmp(&dlg->remote.info->tag, &rdata->msg_info.to->tag))) 
     1777         pj_stricmp(&dlg->remote.info->tag, &rdata->msg_info.to->tag))) 
    17801778    { 
    17811779        pjsip_contact_hdr *contact; 
     
    17861784         */ 
    17871785        pjsip_dlg_update_remote_cap(dlg, rdata->msg_info.msg, 
    1788                                     pj_strcmp(&dlg->remote.info->tag, 
     1786                                    pj_stricmp(&dlg->remote.info->tag, 
    17891787                                              &rdata->msg_info.to->tag)); 
    17901788 
Note: See TracChangeset for help on using the changeset viewer.