简体   繁体   English

如何在 twilio 上为会议参与者拨打分机号

[英]How to dial extension for participants in conference on twilio

I have a scenario in which adding participants in a conference call.我有一个在电话会议中添加参与者的场景。 I am doing like that我这样做

conference_name = "demo"
  account_sid = "xyz"
  auth_token = "xyz"

  client = Twilio::REST::Client.new(account_sid, auth_token)

  company_number_participent1 = client.conferences(conference_name).participants.create(from: 'xyz', to: "xyz")
  customer_number_participent2 = client.conferences(conference_name).participants.create(from: 'xyz', to: 'xyz')

and it works exactly.它完全有效。 Now I want to add dial an extension also once participant added in call.现在,一旦参与者在通话中添加,我也想添加拨号分机。 As per twilio documentation for normall call we can add a parameter ,send_digits: '12# for an extension.根据正常调用的 twilio 文档,我们可以添加一个参数,send_digits: '12#作为扩展名。 When I do like that it gives an error.当我这样做时,它会出错。

company_number_participent = client.conferences(conference_name).participants.create(from: 'xyz', to: "xyz",send_digits: '1')

How I can dial extension for conference participant in twilio?如何在 twilio 中为会议参与者拨打分机号?

I don't see sendDigits as a parameter for the create participant request.我没有看到 sendDigits 作为创建参与者请求的参数。 Instead use the calls resource to place the call and TwiML to handle sending digits and adding the participant to the conference.而是使用call 资源发出呼叫,并使用TwiML来处理发送数字和将参与者添加到会议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM