【发布时间】:2020-12-15 05:11:07
【问题描述】:
我将解释主要思想是什么...我有一个呼叫中心(使用 node js 和 vue 制作),我的应用程序现在有代理可以接收和拨打联系人(外部人员、客户)我可以拨打呼入和呼出电话。但是我不能像那样转接电话……所以我决定使用 Conference Verb,它实际上作为呼叫中心效果更好,但现在我什至无法将呼叫连接到我的应用程序中的代理。
// my incoming call now with a conference
const voiceResponse = new VoiceResponse();
const dial = voiceResponse.dial()
dial.conference({
maxParticipants: 2,
startConferenceOnEnter: false,
waitUrl: 'https://twimlets.com/holdmusic?Bucket=com.twilio.music.soft-rock',
}, `Conference of ${req.body.From}`);
const client = dial.client(clientName)
res.type('text/xml');
res.send(voiceResponse.toString());
在向客户端(不是代理)进行出站呼叫时,这也是同样的方式吗?
【问题讨论】:
标签: node.js twilio twilio-node