Ignore:
Timestamp:
Mar 7, 2012 3:09:33 AM (7 years ago)
Author:
ming
Message:

Fixed #1461: pjsua_call_make_call: assertion failure when rapidly making calls

File:
1 edited

Legend:

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

    r3965 r3966  
    256256         ++cid)  
    257257    { 
    258         if (pjsua_var.calls[cid].inv == NULL) { 
     258        if (pjsua_var.calls[cid].inv == NULL && 
     259            pjsua_var.calls[cid].async_call.dlg == NULL) 
     260        { 
    259261            ++pjsua_var.next_call_id; 
    260262            return cid; 
     
    263265 
    264266    for (cid=0; cid < pjsua_var.next_call_id; ++cid) { 
    265         if (pjsua_var.calls[cid].inv == NULL) { 
     267        if (pjsua_var.calls[cid].inv == NULL && 
     268            pjsua_var.calls[cid].async_call.dlg == NULL) 
     269        { 
    266270            ++pjsua_var.next_call_id; 
    267271            return cid; 
Note: See TracChangeset for help on using the changeset viewer.