File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -826,14 +826,21 @@ static void handle_init(MSICall *call, const MSIMessage *msg)
826
826
/* Call starting */
827
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
828
829
- /* if 2 friends call each other at the same time, ignore for now */
830
- #if 0
829
+ /* if 2 friends call each other at the same time */
830
+ #if 1
831
831
call -> peer_capabilities = msg -> capabilities .value ;
832
832
call -> state = MSI_CALL_ACTIVE ;
833
833
834
834
if (invoke_callback (call , MSI_ON_START ) == -1 ) {
835
835
goto FAILURE ;
836
836
}
837
+
838
+ // send the correct answer to the other friend
839
+ MSIMessage out_msg ;
840
+ msg_init (& out_msg , REQU_PUSH );
841
+ out_msg .capabilities .exists = true;
842
+ out_msg .capabilities .value = call -> self_capabilities ;
843
+ send_message (call -> session -> tox , call -> friend_number , & out_msg );
837
844
#endif
838
845
}
839
846
break ;
You can’t perform that action at this time.
0 commit comments