static void linphone_connect_incoming(LinphoneCore *lc, LinphoneCall *call){
- if (lc->vtable.show)
- lc->vtable.show(lc);
- if (lc->vtable.display_status)
- lc->vtable.display_status(lc,_("Connected."));
- linphone_call_set_state(call,LinphoneCallConnected,"Connected");
if (lc->ringstream!=NULL){
ring_stop(lc->ringstream);
lc->ringstream=NULL;
}
-
linphone_call_start_media_streams(call);
- linphone_call_set_state (call,LinphoneCallStreamsRunning,"Connected (streams running)");
}
static void call_received(SalOp *h){
}else{
linphone_call_set_state(call,LinphoneCallStreamsRunning,"Connected (streams running)");
}
- linphone_call_start_media_streams (call);
+ linphone_connect_incoming (lc,call);
}else{
/*send a bye*/
ms_error("Incompatible SDP offer received in 200Ok, need to abort the call");
sal_media_description_ref(call->resultdesc);
if (call->resultdesc && !sal_media_description_empty(call->resultdesc)){
linphone_connect_incoming(lc,call);
+ linphone_call_set_state (call,LinphoneCallStreamsRunning,"Connected (streams running)");
}else{
/*send a bye*/
ms_error("Incompatible SDP response received in ACK, need to abort the call");
linphone_call_stop_media_streams (call);
linphone_call_init_media_streams (call);
- linphone_connect_incoming(lc,call);
+ linphone_call_start_media_streams (call);
}
}