public CallControlTransferServiceTest(MockHttpClientFixture mockHttpClientFixture)
            : base(mockHttpClientFixture)
        {
            this.service = new CallControlTransferService();

            this.createOptions = new CallControlTransferCreateOptions()
            {
                ClientState               = "aGF2ZSBhIG5pY2UgZGF5ID1d",
                CommandId                 = new System.Guid("891510ac-f3e4-11e8-af5b-de00688a4901"),
                To                        = "SIP:[email protected]",
                From                      = "+18005550101",
                AudioUrl                  = "http://www.example.com/sounds/greeting.wav",
                TimeLimitSecs             = 14400,
                TimeoutSecs               = 30,
                AnsweringMachineDetection = "disabled",
                SipAuthPassword           = "******",
                SipAuthUsername           = "******"
            };
        }
示例#2
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();
 }