Ignore:
Timestamp:
Oct 3, 2011 2:04:36 AM (10 years ago)
Author:
ming
Message:

Closed #1266:
Handle incoming calls when media transport is created asynchronously.

File:
1 edited

Legend:

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

    r3775 r3777  
    16571657        call->med_ch_cb = cb; 
    16581658        if (rem_sdp) { 
    1659             /* TODO: change rem_sdp to non-const parameter. */ 
    16601659            call->async_call.rem_sdp = 
    16611660                pjmedia_sdp_session_clone(call->inv->pool_prov, rem_sdp); 
     
    21132112    pjsua_call *call = &pjsua_var.calls[call_id]; 
    21142113    unsigned mi; 
     2114 
     2115    for (mi=0; mi<call->med_cnt; ++mi) { 
     2116        pjsua_call_media *call_med = &call->media[mi]; 
     2117 
     2118        if (call_med->tp_st == PJSUA_MED_TP_CREATING) 
     2119            return PJ_EBUSY; 
     2120    } 
    21152121 
    21162122    PJ_LOG(4,(THIS_FILE, "Call %d: deinitializing media..", call_id)); 
Note: See TracChangeset for help on using the changeset viewer.