收集输入

时间:2019-05-10 13:53:21

标签: java rest api voip sinch

我希望我的sinch应用程序拨打一个电话,并要求响应者输入一个电话号码以选择他的语言。

到目前为止,我让她通过POST请求拨打电话,该请求的正文为:

{
                "method" : "ttsCallout",
                "ttsCallout" :
                {
                     "cli" : "xxx",
                     "destination" : { "type" : "number", "endpoint" : "xxx" },
                     "domain" : "pstn",
                     "custom" : "customData",
                     "locale" : "en-US",
                     "prompts" : "#tts[Hello]",
                     "enabledice" : true
                }
          }

我的问题是我该如何收集响应者将在其键盘上单击的值?

1 个答案:

答案 0 :(得分:0)

您需要在ace事件上运行菜单 https://www.sinch.com/docs/voice/rest/index.html#pie