Пример #1
0
        static void c_OnStasisEndEvent(object sender, AsterNET.ARI.Models.StasisEndEvent e)
        {
            // remove from bridge
            ActionClient.Bridges.RemoveChannel(SimpleBridge.Id, e.Channel.Id);

            // hangup
            ActionClient.Channels.Hangup(e.Channel.Id, "normal");
        }
Пример #2
0
        static void c_OnStasisEndEvent(object sender, AsterNET.ARI.Models.StasisEndEvent e)
        {
            // Delete recording
            actionClient.Recordings.DeleteStored("temp-recording");

            // hangup
            actionClient.Channels.Hangup(e.Channel.Id, "normal");
        }
Пример #3
0
        private static void c_OnStasisEndEvent(object sender, StasisEndEvent e)
        {
            if (e.Application != AppConfig.AppName) return;

            var conf = Conference.Conferences.SingleOrDefault(x => x.ConferenceUsers.Any(c => c.Channel.Id == e.Channel.Id));
            if (conf == null) return;

            conf.RemoveUser(e.Channel.Id);
        }