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-simple/publishc.c

    r4173 r4206  
    356356    if (!via_addr) 
    357357        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    } 
    360363    pubc->via_tp = via_tp; 
    361364 
Note: See TracChangeset for help on using the changeset viewer.