https://github.com/twilio/twilio-ruby/blob/master/lib/twilio-ruby/rest/calls.rb에서 볼 때 'from', 'to'및 'url'만 사용됩니다. 'IfMachine'에 대한 가치를 어떻게 전달합니까? 예를 들어, 다음은 작동하지 않는 것 같습니다. 당신이 대신 일을해야 상징으로 설정하면twilio-ruby gem은 전화 할 때 'from', 'to'및 'url'이외의 매개 변수를 사용합니까?
# set ACCOUNT_SID and AUTH_TOKEN
twilioClient = Twilio::REST::Client.new(ACCOUNT_SID, AUTH_TOKEN)
twilioAccount = twilioClient.account
twilioAccount.calls.create({
:from => 'from_number',
:to => 'to_number',
:url => '/url',
'IfMachine' => 'Hangup'
})
# IfMachine parameter is not passed in the above request