Skip to content

Commit 050bd77

Browse files
committed
ignore to call requests at the same time
1 parent ee47c43 commit 050bd77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

toxav/msi.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,13 +824,17 @@ static void handle_init(MSICall *call, const MSIMessage *msg)
824824

825825
case MSI_CALL_REQUESTING: {
826826
/* Call starting */
827-
LOGGER_API_INFO(call->session->tox,"MSI_CALL_REQUESTED:Friend answered our call");
827+
LOGGER_API_INFO(call->session->tox,"MSI_CALL_REQUESTING:Friend sent an invite, but we are waiting for an call answer to our call");
828+
829+
/* if 2 friends call each other at the same time, ignore for now */
830+
#if 0
828831
call->peer_capabilities = msg->capabilities.value;
829832
call->state = MSI_CALL_ACTIVE;
830833

831834
if (invoke_callback(call, MSI_ON_START) == -1) {
832835
goto FAILURE;
833836
}
837+
#endif
834838
}
835839
break;
836840

0 commit comments

Comments
 (0)