Ignore:
Timestamp:
Jun 13, 2018 4:58:49 PM (6 years 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_pres.c

    r5701 r5805  
    831831    /* Find which account for the incoming request. */ 
    832832    acc_id = pjsua_acc_find_for_incoming(rdata); 
     833    if (acc_id == PJSUA_INVALID_ID) { 
     834        PJ_LOG(2, (THIS_FILE,  
     835                   "Unable to process incoming message %s " 
     836                   "due to no available account",  
     837                   pjsip_rx_data_get_info(rdata))); 
     838 
     839        PJSUA_UNLOCK(); 
     840        pjsip_endpt_respond_stateless(pjsua_var.endpt, rdata,  
     841                                      PJSIP_SC_TEMPORARILY_UNAVAILABLE, NULL, 
     842                                      NULL, NULL); 
     843        pj_log_pop_indent(); 
     844        return PJ_TRUE;  
     845    } 
    833846    acc = &pjsua_var.acc[acc_id]; 
    834847 
Note: See TracChangeset for help on using the changeset viewer.