public FreeSwitchClient(SecureString password, FreeSwitchEventCollection eventCollection)
 {
     _eventCollection = eventCollection;
     var pipelineFactory = new FreeSwitchPipeline(password, this);
     _pipeline = pipelineFactory.Build();
     _channel = new TcpClientChannel(_pipeline);
     _waitingObjects = new AsyncJobQueue();
 }
Пример #2
0
 public IChannel CreateChannel(IPipeline pipeline)
 {
     var channel = new TcpClientChannel(pipeline);
     channel.Initialize(CreateConfig());
     return channel;
 }