Example #1
0
        protected override ICall GetIncomingCall(string callId)
        {
            UnitySetAudioSessionActive();

            var call = new CallIOS(callId);

            call.SyncEndpoints();
            CallAdded(call);

            return(call);
        }
Example #2
0
        public override ICall CallConference(string conference, CallSettings callSettings)
        {
            UnitySetAudioSessionActive();

            var callId = voximplant_client_call_conference(conference,
                                                           callSettings.VideoFlags.ReceiveVideo, callSettings.VideoFlags.SendVideo, callSettings.VideoCodec,
                                                           callSettings.CustomData, JsonHelper.ToJson(callSettings.ExtraHeaders));

            if (callId == null)
            {
                return(null);
            }

            var call = new CallIOS(callId);

            CallAdded(call);

            return(call);
        }