繁体   English   中英

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

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

我有一个在电话会议中添加参与者的场景。 我这样做

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')

它完全有效。 现在,一旦参与者在通话中添加,我也想添加拨号分机。 根据正常调用的 twilio 文档,我们可以添加一个参数,send_digits: '12#作为扩展名。 当我这样做时,它会出错。

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

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

我没有看到 sendDigits 作为创建参与者请求的参数。 而是使用call 资源发出呼叫,并使用TwiML来处理发送数字和将参与者添加到会议。

暂无
暂无

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

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