Changeset 4118


Ignore:
Timestamp:
May 4, 2012 2:04:02 AM (13 years ago)
Author:
ming
Message:

Fixed #1504: Crash when trying to answer calls but call has been disconnected

File:
1 edited

Legend:

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

    r4102 r4118  
    886886            pjsua_call_answer(call_id, answer->code, answer->reason, 
    887887                              answer->msg_data); 
     888             
     889            /* Call might have been disconnected if application is answering 
     890             * with 200/OK and the media failed to start. 
     891             * See pjsua_call_answer() below. 
     892             */ 
     893            if (!call->inv || !call->inv->pool_prov) 
     894                break; 
     895 
    888896            pj_list_erase(answer); 
    889897            answer = next; 
Note: See TracChangeset for help on using the changeset viewer.