예제 #1
0
 public CallControlService()
 {
     this.callControlAnswerService           = new CallControlAnswerService();
     this.callControlDialService             = new CallControlDialService();
     this.callControlSpeakService            = new CallControlSpeakService();
     this.callControlBridgeService           = new CallControlBridgeService();
     this.callControlForkStartService        = new CallControlForkStartService();
     this.callControlForkStopService         = new CallControlForkStopService();
     this.callControlGatherUsingAudioService = new CallControlGatherUsingAudioService();
     this.callControlGatherUsingSpeakService = new CallControlGatherUsingSpeakService();
     this.callControlHangupService           = new CallControlHangupService();
     this.callControlPlaybackStartService    = new CallControlPlaybackStartService();
     this.callControlPlaybackStopService     = new CallControlPlaybackStopService();
     this.callControlRejectService           = new CallControlRejectService();
     this.callControlSendDTMFService         = new CallControlSendDTMFService();
     this.callControlTransferService         = new CallControlTransferService();
     this.gatherStopService    = new GatherStopService();
     this.recordActionService  = new RecordActionService();
     this.transcriptionService = new CallTranscriptionService();
 }
        public CallControlDialServiceTest(MockHttpClientFixture mockHttpClientFixture)
            : base(mockHttpClientFixture)
        {
            this.service = new CallControlDialService();

            this.createOptions = new CallControlDialCreateOptions()
            {
                AnsweringMachineDetection = "disabled",
                AudioUrl        = "http://example.com/message.wav",
                ConnectionId    = "connection",
                From            = "+18005550101",
                LinkTo          = "ilditnZK_eVysupV21KzmzN_sM29ygfauQojpm4BgFtfX5hXAcjotg",
                SipAuthPassword = "******",
                SipAuthUsername = "******",
                TimeLimitSecs   = 100,
                TimeoutSecs     = 100,
                To          = "+18005550100",
                ClientState = "aGF2ZSBhIG5pY2UgZGF5ID1d",
                CommandId   = new System.Guid("891510ac-f3e4-11e8-af5b-de00688a4901")
            };
        }