Ignore:
Timestamp:
May 5, 2015 3:49:49 AM (10 years ago)
Author:
riza
Message:

Re #1848: Fix failed to create SDP which lead to crash caused by rejected HOLD request.

File:
1 edited

Legend:

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

    r4986 r5082  
    41664166        PJ_LOG(4,(THIS_FILE, "Call %d: asked to send a new offer", 
    41674167                  call->index)); 
     4168 
     4169        if (call->med_prov_cnt == 0) { 
     4170            status = pjsua_media_channel_init(call->index, inv->role,  
     4171                                             call->secure_level, inv->pool_prov,  
     4172                                             NULL, NULL, PJ_FALSE, NULL); 
     4173            if (status != PJ_SUCCESS) {      
     4174                pjsua_perror(THIS_FILE, "Unable to create offer", status); 
     4175                goto on_return; 
     4176            } 
     4177        } 
    41684178 
    41694179        status = pjsua_media_channel_create_sdp(call->index, 
Note: See TracChangeset for help on using the changeset viewer.