pub async fn create_call(
configuration: &Configuration,
account_sid: &str,
to: &str,
from: &str,
method: Option<&str>,
fallback_url: Option<&str>,
fallback_method: Option<&str>,
status_callback: Option<&str>,
status_callback_event: Option<Vec<String>>,
status_callback_method: Option<&str>,
send_digits: Option<&str>,
timeout: Option<i32>,
record: Option<bool>,
recording_channels: Option<&str>,
recording_status_callback: Option<&str>,
recording_status_callback_method: Option<&str>,
sip_auth_username: Option<&str>,
sip_auth_password: Option<&str>,
machine_detection: Option<&str>,
machine_detection_timeout: Option<i32>,
recording_status_callback_event: Option<Vec<String>>,
trim: Option<&str>,
caller_id: Option<&str>,
machine_detection_speech_threshold: Option<i32>,
machine_detection_speech_end_threshold: Option<i32>,
machine_detection_silence_timeout: Option<i32>,
async_amd: Option<&str>,
async_amd_status_callback: Option<&str>,
async_amd_status_callback_method: Option<&str>,
byoc: Option<&str>,
call_reason: Option<&str>,
call_token: Option<&str>,
recording_track: Option<&str>,
time_limit: Option<i32>,
url: Option<&str>,
twiml: Option<&str>,
application_sid: Option<&str>,
) -> Result<ApiPeriodV2010PeriodAccountPeriodCall, Error<CreateCallError>>
Expand description
Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections