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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 public IAPIExtension GetAPIExtension(string extension_name)
 {
     return(ops_client.GetAPIExtension(extension_name));
 }
Ejemplo n.º 4
0
 public IAPIExtension GetAPIExtension(string extensionName)
 {
     return(_client.GetAPIExtension(extensionName));
 }