Ignore:
Timestamp:
Apr 25, 2019 8:39:49 AM (5 years ago)
Author:
nanang
Message:

Fixed #2192: Update dialog local contact for non registering account.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r5954 r5973  
    748748    else if (acc->contact.slen) 
    749749        *new_contact = &acc->contact; 
     750    else { 
     751        /* Non-registering account */ 
     752        pjsip_dialog *dlg = call->inv->dlg; 
     753        pj_str_t tmp_contact; 
     754        pj_status_t status; 
     755 
     756        status = pjsua_acc_create_uac_contact(dlg->pool, 
     757                                              &tmp_contact, 
     758                                              acc->index, 
     759                                              &dlg->remote.info_str); 
     760        if (status == PJ_SUCCESS) { 
     761            *new_contact = PJ_POOL_ZALLOC_T(dlg->pool, pj_str_t); 
     762            **new_contact = tmp_contact; 
     763        } else { 
     764            PJ_PERROR(3,(THIS_FILE, status, 
     765                         "Call %d: failed creating contact " 
     766                         "for contact update", call->index)); 
     767        } 
     768    } 
     769 
    750770 
    751771    /* When contact is changed, the account transport may have been 
Note: See TracChangeset for help on using the changeset viewer.