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-ua/sip_reg.c

    r4173 r4206  
    819819    if (!via_addr) 
    820820        pj_bzero(&regc->via_addr, sizeof(regc->via_addr)); 
    821     else 
    822         regc->via_addr = *via_addr; 
     821    else { 
     822        if (pj_strcmp(&regc->via_addr.host, &via_addr->host)) 
     823            pj_strdup(regc->pool, &regc->via_addr.host, &via_addr->host); 
     824        regc->via_addr.port = via_addr->port; 
     825    } 
    823826    regc->via_tp = via_tp; 
    824827 
Note: See TracChangeset for help on using the changeset viewer.