Exemple #1
0
        public static FreeSwitchEventCollection GetAll()
        {
            var e = new FreeSwitchEventCollection();

            e.Add(FreeSwitchEvent.All);
            return(e);
        }
 public FreeSwitchClient(SecureString password, FreeSwitchEventCollection eventCollection)
 {
     _eventCollection = eventCollection;
     var pipelineFactory = new FreeSwitchPipeline(password, this);
     _pipeline = pipelineFactory.Build();
     _channel = new TcpClientChannel(_pipeline);
     _waitingObjects = new AsyncJobQueue();
 }
Exemple #3
0
        public FreeSwitchClient(SecureString password, FreeSwitchEventCollection eventCollection)
        {
            _eventCollection = eventCollection;
            var pipelineFactory = new FreeSwitchPipeline(password, this);

            _pipeline       = pipelineFactory.Build();
            _channel        = new TcpClientChannel(_pipeline);
            _waitingObjects = new AsyncJobQueue();
        }
 public static FreeSwitchEventCollection GetChannelEvents()
 {
     var e = new FreeSwitchEventCollection();
     e.Add(FreeSwitchEvent.ChannelAnswer);
     e.Add(FreeSwitchEvent.ChannelBridge);
     e.Add(FreeSwitchEvent.ChannelCreate);
     e.Add(FreeSwitchEvent.ChannelDestroy);
     e.Add(FreeSwitchEvent.ChannelExecute);
     e.Add(FreeSwitchEvent.ChannelHangup);
     e.Add(FreeSwitchEvent.ChannelOutgoing);
     e.Add(FreeSwitchEvent.ChannelPark);
     e.Add(FreeSwitchEvent.ChannelProgress);
     e.Add(FreeSwitchEvent.ChannelState);
     e.Add(FreeSwitchEvent.ChannelUnbridge);
     e.Add(FreeSwitchEvent.ChannelUnpark);
     return e;
 }
Exemple #5
0
        public static FreeSwitchEventCollection GetChannelEvents()
        {
            var e = new FreeSwitchEventCollection();

            e.Add(FreeSwitchEvent.ChannelAnswer);
            e.Add(FreeSwitchEvent.ChannelBridge);
            e.Add(FreeSwitchEvent.ChannelCreate);
            e.Add(FreeSwitchEvent.ChannelDestroy);
            e.Add(FreeSwitchEvent.ChannelExecute);
            e.Add(FreeSwitchEvent.ChannelHangup);
            e.Add(FreeSwitchEvent.ChannelOutgoing);
            e.Add(FreeSwitchEvent.ChannelPark);
            e.Add(FreeSwitchEvent.ChannelProgress);
            e.Add(FreeSwitchEvent.ChannelState);
            e.Add(FreeSwitchEvent.ChannelUnbridge);
            e.Add(FreeSwitchEvent.ChannelUnpark);
            return(e);
        }
 public static FreeSwitchEventCollection GetAll()
 {
     var e = new FreeSwitchEventCollection();
     e.Add(FreeSwitchEvent.All);
     return e;
 }