Example #1
0
        static void ActionClientOnRecordingFinishedEvent(object sender, AsterNET.ARI.Models.RecordingFinishedEvent e)
        {
            if (e.Recording.Name != recording.Recording.Name)
            {
                return;
            }

            PlaybackRecording(recording.Channel);

            GetRecording(recording.Channel);
        }
Example #2
0
        private void c_OnRecordingFinishedEvent(object sender, RecordingFinishedEvent e)
        {
            // Find out if this recording was for a conf user who's state is currently
            // RecordingName
            var confUser = ConferenceUsers.SingleOrDefault(x => x.CurrentRecodingId == e.Recording.Name);
            if (confUser == null) return;
            if (confUser.State != ConferenceUserState.RecordingName) return;

            confUser.State = ConferenceUserState.JoinConf;
            // Join the chanel to the bridge
            _client.Bridges.AddChannel(Confbridge.Id, confUser.Channel.Id, "ConfUser");
        }