Changeset 446 for pjproject


Ignore:
Timestamp:
May 16, 2006 10:19:50 AM (19 years ago)
Author:
bennylp
Message:

Fixed bug in UAS dialog (remote.info_str was taken from local info)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_dialog.c

    r376 r446  
    316316                                       dlg->local.info->tag.slen); 
    317317 
    318     /* Print the local info. */ 
    319     len = pjsip_uri_print(PJSIP_URI_IN_FROMTO_HDR, 
    320                           dlg->local.info->uri, tmp.ptr, TMP_LEN); 
    321     if (len < 1) { 
    322         pj_ansi_strcpy(tmp.ptr, "<-error: uri too long->"); 
    323         tmp.slen = pj_ansi_strlen(tmp.ptr); 
    324     } else 
    325         tmp.slen = len; 
    326  
    327     /* Save the local info. */ 
    328     pj_strdup(dlg->pool, &dlg->remote.info_str, &tmp); 
    329  
    330318 
    331319    /* Randomize local cseq */ 
     
    362350    dlg->remote.info = pjsip_hdr_clone(dlg->pool, rdata->msg_info.from); 
    363351    pjsip_fromto_hdr_set_to(dlg->remote.info); 
     352 
     353    /* Print the remote info. */ 
     354    len = pjsip_uri_print(PJSIP_URI_IN_FROMTO_HDR, 
     355                          dlg->remote.info->uri, tmp.ptr, TMP_LEN); 
     356    if (len < 1) { 
     357        pj_ansi_strcpy(tmp.ptr, "<-error: uri too long->"); 
     358        tmp.slen = pj_ansi_strlen(tmp.ptr); 
     359    } else 
     360        tmp.slen = len; 
     361 
     362    /* Save the local info. */ 
     363    pj_strdup(dlg->pool, &dlg->remote.info_str, &tmp); 
     364 
    364365 
    365366    /* Init remote's contact from Contact header. */ 
Note: See TracChangeset for help on using the changeset viewer.