@@ -116,11 +116,13 @@ public static async System.Threading.Tasks.Task<CallResource> CreateAsync(Create
116
116
/// <param name="recordingStatusCallbackMethod"> The recording_status_callback_method </param>
117
117
/// <param name="sipAuthUsername"> The sip_auth_username </param>
118
118
/// <param name="sipAuthPassword"> The sip_auth_password </param>
119
+ /// <param name="machineDetection"> Enable machine detection or end of greeting detection </param>
120
+ /// <param name="machineDetectionTimeout"> Number of miliseconds to wait for machine detection </param>
119
121
/// <param name="client"> Client to make requests to Twilio </param>
120
122
/// <returns> A single instance of Call </returns>
121
- public static CallResource Create ( IEndpoint to , Types . PhoneNumber from , string pathAccountSid = null , Uri url = null , string applicationSid = null , Twilio . Http . HttpMethod method = null , Uri fallbackUrl = null , Twilio . Http . HttpMethod fallbackMethod = null , Uri statusCallback = null , List < string > statusCallbackEvent = null , Twilio . Http . HttpMethod statusCallbackMethod = null , string sendDigits = null , string ifMachine = null , int ? timeout = null , bool ? record = null , string recordingChannels = null , string recordingStatusCallback = null , Twilio . Http . HttpMethod recordingStatusCallbackMethod = null , string sipAuthUsername = null , string sipAuthPassword = null , ITwilioRestClient client = null )
123
+ public static CallResource Create ( IEndpoint to , Types . PhoneNumber from , string pathAccountSid = null , Uri url = null , string applicationSid = null , Twilio . Http . HttpMethod method = null , Uri fallbackUrl = null , Twilio . Http . HttpMethod fallbackMethod = null , Uri statusCallback = null , List < string > statusCallbackEvent = null , Twilio . Http . HttpMethod statusCallbackMethod = null , string sendDigits = null , string ifMachine = null , int ? timeout = null , bool ? record = null , string recordingChannels = null , string recordingStatusCallback = null , Twilio . Http . HttpMethod recordingStatusCallbackMethod = null , string sipAuthUsername = null , string sipAuthPassword = null , string machineDetection = null , int ? machineDetectionTimeout = null , ITwilioRestClient client = null )
122
124
{
123
- var options = new CreateCallOptions ( to , from ) { PathAccountSid = pathAccountSid , Url = url , ApplicationSid = applicationSid , Method = method , FallbackUrl = fallbackUrl , FallbackMethod = fallbackMethod , StatusCallback = statusCallback , StatusCallbackEvent = statusCallbackEvent , StatusCallbackMethod = statusCallbackMethod , SendDigits = sendDigits , IfMachine = ifMachine , Timeout = timeout , Record = record , RecordingChannels = recordingChannels , RecordingStatusCallback = recordingStatusCallback , RecordingStatusCallbackMethod = recordingStatusCallbackMethod , SipAuthUsername = sipAuthUsername , SipAuthPassword = sipAuthPassword } ;
125
+ var options = new CreateCallOptions ( to , from ) { PathAccountSid = pathAccountSid , Url = url , ApplicationSid = applicationSid , Method = method , FallbackUrl = fallbackUrl , FallbackMethod = fallbackMethod , StatusCallback = statusCallback , StatusCallbackEvent = statusCallbackEvent , StatusCallbackMethod = statusCallbackMethod , SendDigits = sendDigits , IfMachine = ifMachine , Timeout = timeout , Record = record , RecordingChannels = recordingChannels , RecordingStatusCallback = recordingStatusCallback , RecordingStatusCallbackMethod = recordingStatusCallbackMethod , SipAuthUsername = sipAuthUsername , SipAuthPassword = sipAuthPassword , MachineDetection = machineDetection , MachineDetectionTimeout = machineDetectionTimeout } ;
124
126
return Create ( options , client ) ;
125
127
}
126
128
@@ -149,11 +151,13 @@ public static CallResource Create(IEndpoint to, Types.PhoneNumber from, string p
149
151
/// <param name="recordingStatusCallbackMethod"> The recording_status_callback_method </param>
150
152
/// <param name="sipAuthUsername"> The sip_auth_username </param>
151
153
/// <param name="sipAuthPassword"> The sip_auth_password </param>
154
+ /// <param name="machineDetection"> Enable machine detection or end of greeting detection </param>
155
+ /// <param name="machineDetectionTimeout"> Number of miliseconds to wait for machine detection </param>
152
156
/// <param name="client"> Client to make requests to Twilio </param>
153
157
/// <returns> Task that resolves to A single instance of Call </returns>
154
- public static async System . Threading . Tasks . Task < CallResource > CreateAsync ( IEndpoint to , Types . PhoneNumber from , string pathAccountSid = null , Uri url = null , string applicationSid = null , Twilio . Http . HttpMethod method = null , Uri fallbackUrl = null , Twilio . Http . HttpMethod fallbackMethod = null , Uri statusCallback = null , List < string > statusCallbackEvent = null , Twilio . Http . HttpMethod statusCallbackMethod = null , string sendDigits = null , string ifMachine = null , int ? timeout = null , bool ? record = null , string recordingChannels = null , string recordingStatusCallback = null , Twilio . Http . HttpMethod recordingStatusCallbackMethod = null , string sipAuthUsername = null , string sipAuthPassword = null , ITwilioRestClient client = null )
158
+ public static async System . Threading . Tasks . Task < CallResource > CreateAsync ( IEndpoint to , Types . PhoneNumber from , string pathAccountSid = null , Uri url = null , string applicationSid = null , Twilio . Http . HttpMethod method = null , Uri fallbackUrl = null , Twilio . Http . HttpMethod fallbackMethod = null , Uri statusCallback = null , List < string > statusCallbackEvent = null , Twilio . Http . HttpMethod statusCallbackMethod = null , string sendDigits = null , string ifMachine = null , int ? timeout = null , bool ? record = null , string recordingChannels = null , string recordingStatusCallback = null , Twilio . Http . HttpMethod recordingStatusCallbackMethod = null , string sipAuthUsername = null , string sipAuthPassword = null , string machineDetection = null , int ? machineDetectionTimeout = null , ITwilioRestClient client = null )
155
159
{
156
- var options = new CreateCallOptions ( to , from ) { PathAccountSid = pathAccountSid , Url = url , ApplicationSid = applicationSid , Method = method , FallbackUrl = fallbackUrl , FallbackMethod = fallbackMethod , StatusCallback = statusCallback , StatusCallbackEvent = statusCallbackEvent , StatusCallbackMethod = statusCallbackMethod , SendDigits = sendDigits , IfMachine = ifMachine , Timeout = timeout , Record = record , RecordingChannels = recordingChannels , RecordingStatusCallback = recordingStatusCallback , RecordingStatusCallbackMethod = recordingStatusCallbackMethod , SipAuthUsername = sipAuthUsername , SipAuthPassword = sipAuthPassword } ;
160
+ var options = new CreateCallOptions ( to , from ) { PathAccountSid = pathAccountSid , Url = url , ApplicationSid = applicationSid , Method = method , FallbackUrl = fallbackUrl , FallbackMethod = fallbackMethod , StatusCallback = statusCallback , StatusCallbackEvent = statusCallbackEvent , StatusCallbackMethod = statusCallbackMethod , SendDigits = sendDigits , IfMachine = ifMachine , Timeout = timeout , Record = record , RecordingChannels = recordingChannels , RecordingStatusCallback = recordingStatusCallback , RecordingStatusCallbackMethod = recordingStatusCallbackMethod , SipAuthUsername = sipAuthUsername , SipAuthPassword = sipAuthPassword , MachineDetection = machineDetection , MachineDetectionTimeout = machineDetectionTimeout } ;
157
161
return await CreateAsync ( options , client ) ;
158
162
}
159
163
#endif
0 commit comments