public MyCallRoutingInterceptor(OpsClient client)
        {
            dndExtensions = new List<string>();
             _client = client;
             var ext0 = _client.GetAPIExtension();
             var ext1 = _client.GetAPIExtension("1000");
             var ext2 = _client.GetAPIExtension("9999");
             var server = _client.GetAPIExtension("server");
             var pgnotebook = _client.GetAPIExtension("pgnotebook");

             //server.IncomingCall += server_IncomingCall;
             //server.Disconnected += server_Disconnected;
             //pgnotebook.IncomingCall += pgnotebook_IncomingCall;
             //pgnotebook.Disconnected += pgnotebook_Disconnected;
        }
示例#2
0
        public MyCallRoutingInterceptor(OpsClient client)
        {
            dndExtensions = new List <string>();
            _client       = client;
            var ext0       = _client.GetAPIExtension();
            var ext1       = _client.GetAPIExtension("1000");
            var ext2       = _client.GetAPIExtension("9999");
            var server     = _client.GetAPIExtension("server");
            var pgnotebook = _client.GetAPIExtension("pgnotebook");

            //server.IncomingCall += server_IncomingCall;
            //server.Disconnected += server_Disconnected;
            //pgnotebook.IncomingCall += pgnotebook_IncomingCall;
            //pgnotebook.Disconnected += pgnotebook_Disconnected;
        }
示例#3
0
 public IAPIExtension GetAPIExtension(string extension_name)
 {
     return(ops_client.GetAPIExtension(extension_name));
 }
示例#4
0
 public IAPIExtension GetAPIExtension(string extensionName)
 {
     return(_client.GetAPIExtension(extensionName));
 }