Changeset 446 for pjproject/trunk
- Timestamp:
- May 16, 2006 10:19:50 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r376 r446 316 316 dlg->local.info->tag.slen); 317 317 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 } else325 tmp.slen = len;326 327 /* Save the local info. */328 pj_strdup(dlg->pool, &dlg->remote.info_str, &tmp);329 330 318 331 319 /* Randomize local cseq */ … … 362 350 dlg->remote.info = pjsip_hdr_clone(dlg->pool, rdata->msg_info.from); 363 351 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 364 365 365 366 /* Init remote's contact from Contact header. */
Note: See TracChangeset
for help on using the changeset viewer.