@@ -116,11 +116,13 @@ public static async System.Threading.Tasks.Task<CallResource> CreateAsync(Create
116116 /// <param name="recordingStatusCallbackMethod"> The recording_status_callback_method </param>
117117 /// <param name="sipAuthUsername"> The sip_auth_username </param>
118118 /// <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>
119121 /// <param name="client"> Client to make requests to Twilio </param>
120122 /// <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 )
122124 {
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 } ;
124126 return Create ( options , client ) ;
125127 }
126128
@@ -149,11 +151,13 @@ public static CallResource Create(IEndpoint to, Types.PhoneNumber from, string p
149151 /// <param name="recordingStatusCallbackMethod"> The recording_status_callback_method </param>
150152 /// <param name="sipAuthUsername"> The sip_auth_username </param>
151153 /// <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>
152156 /// <param name="client"> Client to make requests to Twilio </param>
153157 /// <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 )
155159 {
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 } ;
157161 return await CreateAsync ( options , client ) ;
158162 }
159163 #endif
0 commit comments