Esempio n. 1
0
        public CallControlReferServiceTests(MockHttpClientFixture mockHttpClientFixture)
            : base(mockHttpClientFixture)
        {
            this.service = new CallControlReferService();

            this.options = new ReferOptions
            {
                ClientState     = "aGF2ZSBhIG5pY2UgZGF5ID1d",
                CommandId       = "891510ac-f3e4-11e8-af5b-de00688a4901",
                SIPAddress      = "sip:example@telnyx",
                SIPAuthPassword = "******",
                SIPAuthUserName = "******",
                CustomHeaders   = new List <CustomHeaders>
                {
                    new CustomHeaders
                    {
                        Value = "Test",
                        Name  = "Test1",
                    },
                },
            };
        }
Esempio n. 2
0
 public virtual TelnyxApiResponse ReferCall(string id, ReferOptions options, RequestOptions requestOptions = null)
 {
     return(this.referService.Refer(id, options, requestOptions));
 }
Esempio n. 3
0
 public virtual async Task <TelnyxApiResponse> ReferCallAsync(string id, ReferOptions options, RequestOptions requestOptions = null, CancellationToken ct = default)
 {
     return(await this.referService.ReferAsync(id, options, requestOptions, ct));
 }