I am facing an issue in which user is on first incoming call and then receives an other incoming call. Then I tried to disconnect the call by giving the reason busy by using the Linphone method. But this method declines my both calls the one which I received and the other one which is incoming. Can anyone suggest that how can I disconnect the single call. Because SDK deoes not provide me any callback or state for disconnecting particular one call.
if (linphone_core_get_calls_nb(LC) > 1)
{
linphone_call_decline(call, LinphoneReasonBusy);
return;
}
Any help would be kindly appreciated