Skip to content

Commit

Permalink
ignore to call requests at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Aug 24, 2020
1 parent ee47c43 commit 050bd77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion toxav/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,13 +824,17 @@ static void handle_init(MSICall *call, const MSIMessage *msg)

case MSI_CALL_REQUESTING: {
/* Call starting */
LOGGER_API_INFO(call->session->tox,"MSI_CALL_REQUESTED:Friend answered our call");
LOGGER_API_INFO(call->session->tox,"MSI_CALL_REQUESTING:Friend sent an invite, but we are waiting for an call answer to our call");

/* if 2 friends call each other at the same time, ignore for now */
#if 0
call->peer_capabilities = msg->capabilities.value;
call->state = MSI_CALL_ACTIVE;

if (invoke_callback(call, MSI_ON_START) == -1) {
goto FAILURE;
}
#endif
}
break;

Expand Down

0 comments on commit 050bd77

Please sign in to comment.