我们已经实现了一个IVR系统,它还可以将呼叫重定向到呼叫中心。呼叫中心希望我们在自定义SIP标头中发送相关信息,以便IVR可以传递对呼叫服务有用的自定义信息,而无需再次请求在IVR中输入的信息。我试图找到文档,这些文档清楚地解释了需要做什么,但没有成功。
是像https://www.twilio.com/docs/api/twilio-sip/sip-twiml中提到的那样简单地添加自定义标头SipHeader_X-headername=headervalue作为语音响应的一部分,还是像https://www.twilio.com/docs/api/twiml/sip中提到的SIP那样需要其他东西
任何方向/帮助都将是真正的helpful.Thanks提前。
问题更新:
在Twilio中配置了一个网址,以使用Spring Boot引导基于calls.Using Java的微服务应用程序来服务网址调用。下面的代码片段包含Dial to The CSR。
String say = null;
Redirect redirect;
VoiceResponse.Builder builder = new VoiceResponse.Builder();
say = messageSource.getMessage("You are connecting to CSR", null,
Locale.ENGLISH);
builder.say(new
Say.Builder(say).voice(Voice.ALICE).language(Language.EN_US).build()).dial(new
Dial.Builder().number(new Number.Builder(number).build()).build());
response.setContentType("application/xml");
response.getWriter().append(builder.build().toXml());
发布于 2017-08-19 06:44:29
在我看来,您是在拨出SIP端点,因此您的额外参数应该类似于您链接到的文档中的内容:
$dial->sip('sip:jack@example.com?mycustomheader=foo&myotherheader=bar');
https://stackoverflow.com/questions/45763684
复制相似问题