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_call.c

    r5795 r5805  
    13201320     */ 
    13211321    acc_id = call->acc_id = pjsua_acc_find_for_incoming(rdata); 
     1322    if (acc_id == PJSUA_INVALID_ID) { 
     1323        pjsip_endpt_respond_stateless(pjsua_var.endpt, rdata, 
     1324                                      PJSIP_SC_TEMPORARILY_UNAVAILABLE, NULL, 
     1325                                      NULL, NULL); 
     1326 
     1327        PJ_LOG(2,(THIS_FILE, 
     1328                  "Unable to accept incoming call (no available account)")); 
     1329 
     1330        goto on_return; 
     1331    } 
    13221332    call->call_hold_type = pjsua_var.acc[acc_id].cfg.call_hold_type; 
    13231333 
Note: See TracChangeset for help on using the changeset viewer.