Ignore:
Timestamp:
Jul 16, 2012 2:45:09 AM (8 years ago)
Author:
ming
Message:

Fixed #1555 : Bug with via_rewrite feature when the account gets deleted

File:
1 edited

Legend:

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

    r4173 r4206  
    597597    if (!via_addr) 
    598598        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    } 
    601604    dlg->via_tp = via_tp; 
    602605 
Note: See TracChangeset for help on using the changeset viewer.