public CallControlForkStartServiceTest(MockHttpClientFixture mockHttpClientFixture) : base(mockHttpClientFixture) { this.service = new CallControlForkStartService(); this.createOptions = new CallControlForkStartOptions() { ClientState = "aGF2ZSBhIG5pY2UgZGF5ID1d", CommandId = new System.Guid("891510ac-f3e4-11e8-af5b-de00688a4901"), Target = "udp:192.0.2.1:9000", Rx = "udp:192.0.2.1:9000", Tx = "udp:192.0.2.1:9000" }; }
public CallForkStartResponse ForkingStart() { CallForkStartResponse response = new CallForkStartResponse(); CallControlForkStartOptions options = new CallControlForkStartOptions { }; Console.WriteLine(JsonConvert.SerializeObject(options)); try { response = callControlService.ForkStart(options); Console.WriteLine(JsonConvert.SerializeObject(response)); } catch (TelnyxException ex) { Console.WriteLine("exception"); Console.WriteLine(JsonConvert.SerializeObject(ex)); } return(response); }
public virtual CallForkStartResponse ForkStart(CallControlForkStartOptions options, string postFix = "actions/fork_start", RequestOptions requestOptions = null) { return(this.callControlForkStartService.Create(this.CallControlId, options, postFix, requestOptions)); }
public virtual async Task <CallForkStartResponse> ForkStartAsync(CallControlForkStartOptions options, string postFix = "actions/fork_start", RequestOptions requestOptions = null, CancellationToken ct = default) { return(await this.callControlForkStartService.CreateAsync(this.CallControlId, options, postFix, requestOptions, ct)); }