Changeset 5094 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- May 15, 2015 6:20:02 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r5082 r5094 2414 2414 } 2415 2415 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 2416 2423 status = create_sdp_of_call_hold(call, &sdp); 2417 2424 if (status != PJ_SUCCESS) … … 4157 4164 #endif 4158 4165 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 4159 4173 /* See if we've put call on hold. */ 4160 4174 if (call->local_hold) { … … 4166 4180 PJ_LOG(4,(THIS_FILE, "Call %d: asked to send a new offer", 4167 4181 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 }4178 4182 4179 4183 status = pjsua_media_channel_create_sdp(call->index,
Note: See TracChangeset
for help on using the changeset viewer.