- Timestamp:
- Jul 16, 2012 2:45:09 AM (12 years ago)
- Location:
- pjproject/trunk/pjsip/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/publishc.c
r4173 r4206 356 356 if (!via_addr) 357 357 pj_bzero(&pubc->via_addr, sizeof(pubc->via_addr)); 358 else 359 pubc->via_addr = *via_addr; 358 else { 359 if (pj_strcmp(&pubc->via_addr.host, &via_addr->host)) 360 pj_strdup(pubc->pool, &pubc->via_addr.host, &via_addr->host); 361 pubc->via_addr.port = via_addr->port; 362 } 360 363 pubc->via_tp = via_tp; 361 364 -
pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c
r4173 r4206 819 819 if (!via_addr) 820 820 pj_bzero(®c->via_addr, sizeof(regc->via_addr)); 821 else 822 regc->via_addr = *via_addr; 821 else { 822 if (pj_strcmp(®c->via_addr.host, &via_addr->host)) 823 pj_strdup(regc->pool, ®c->via_addr.host, &via_addr->host); 824 regc->via_addr.port = via_addr->port; 825 } 823 826 regc->via_tp = via_tp; 824 827 -
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r4173 r4206 597 597 if (!via_addr) 598 598 pj_bzero(&dlg->via_addr, sizeof(dlg->via_addr)); 599 else 600 dlg->via_addr = *via_addr; 599 else { 600 if (pj_strcmp(&dlg->via_addr.host, &via_addr->host)) 601 pj_strdup(dlg->pool, &dlg->via_addr.host, &via_addr->host); 602 dlg->via_addr.port = via_addr->port; 603 } 601 604 dlg->via_tp = via_tp; 602 605
Note: See TracChangeset
for help on using the changeset viewer.