简体   繁体   English

以编程方式使用IBM Voice Gateway启动呼叫

[英]Programmatically start a call with IBM Voice Gateway

I have connected a IBM Voice Agent ( https://console.bluemix.net/docs/services/voice-agent/getting-started.html ) with a Watson Assistant and a Twilio number. 我已将IBM语音代理( https://console.bluemix.net/docs/services/voice-agent/getting-started.html )与Watson Assistant和Twilio号码相关联。

I am able to call my Twilio number and follow a conversation with the assistant. 我可以拨打我的Twilio号码并跟随助理进行对话。

Now however, I don't want the user to call the number, but rather I want to programmatically trigger the call. 但是,我现在不希望用户拨打该号码,而是希望以编程方式触发该呼叫。 Call some API to force the assistant to call some number. 调用一些API强制助手拨打某个号码。 Ideally passing some context with it... 理想情况下传递一些上下文...

I know that Voice Agent uses Voice Gateway behind the scenes ( https://www.ibm.com/support/knowledgecenter/en/SS4U29/welcome_voicegateway.html ). 我知道语音代理在幕后使用语音网关( https://www.ibm.com/support/knowledgecenter/en/SS4U29/welcome_voicegateway.html )。

Update: 更新:

I was able to trigger a call by via Twilio. 我能够通过Twilio触发一个电话。 I ask Twilio to act as an intermediate. 我要求Twilio充当中间人。 Twilio will call both my number and the SIP (Voice Agent) and bridge the call. Twilio将呼叫我的号码和SIP(语音代理)并桥接呼叫。 However I am unable to pass any initial parameters to Watson Assistant since I don't control the process... 但是我无法将任何初始参数传递给Watson Assistant,因为我无法控制进程...

As mentioned above, IBM Voice Agent with Watson now allows end users to configure a custom header to extract from inbound SIP INVITE messages. 如上所述,带有Watson的IBM Voice Agent现在允许最终用户配置自定义标头以从入站SIP INVITE消息中提取。 Go to the "Advanced" section under "Edit Voice Agent" to configure it. 转到“编辑语音代理”下的“高级”部分进行配置。

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

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