Ignore:
Timestamp:
Jun 13, 2018 4:58:49 PM (15 months ago)
Author:
riza
Message:

Re #2119 (closed): Don't raise assert when receiving an incoming call with no
pjsua account available.

File:
1 edited

Legend:

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

    r5788 r5805  
    30013001    unsigned i; 
    30023002 
    3003     /* Check that there's at least one account configured */ 
    3004     PJ_ASSERT_RETURN(pjsua_var.acc_cnt!=0, pjsua_var.default_acc); 
     3003    if (pjsua_var.acc_cnt == 0) { 
     3004        PJ_LOG(2, (THIS_FILE, "No available account to handle %s", 
     3005                  pjsip_rx_data_get_info(rdata))); 
     3006 
     3007        return PJSUA_INVALID_ID; 
     3008    } 
    30053009 
    30063010    uri = rdata->msg_info.to->uri; 
Note: See TracChangeset for help on using the changeset viewer.