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"); }
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"); }
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); }