Changeset 5094 for pjproject


Ignore:
Timestamp:
May 15, 2015 6:20:02 AM (9 years ago)
Author:
ming
Message:

Fixed #1848: SDP failed to be created when provisional media has been cleared

File:
1 edited

Legend:

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

    r5082 r5094  
    24142414    } 
    24152415 
     2416    /* We may need to re-initialize media before creating SDP */ 
     2417    if (call->med_prov_cnt == 0) { 
     2418        status = apply_call_setting(call, &call->opt, NULL); 
     2419        if (status != PJ_SUCCESS) 
     2420            goto on_return; 
     2421    } 
     2422 
    24162423    status = create_sdp_of_call_hold(call, &sdp); 
    24172424    if (status != PJ_SUCCESS) 
     
    41574164#endif 
    41584165 
     4166    /* We may need to re-initialize media before creating SDP */ 
     4167    if (call->med_prov_cnt == 0) { 
     4168        status = apply_call_setting(call, &call->opt, NULL); 
     4169        if (status != PJ_SUCCESS) 
     4170            goto on_return; 
     4171    } 
     4172 
    41594173    /* See if we've put call on hold. */ 
    41604174    if (call->local_hold) { 
     
    41664180        PJ_LOG(4,(THIS_FILE, "Call %d: asked to send a new offer", 
    41674181                  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         } 
    41784182 
    41794183        status = pjsua_media_channel_create_sdp(call->index, 
Note: See TracChangeset for help on using the changeset viewer.