任何人都可以帮助我了解如何将 IVR 系统与 .NET 应用程序集成。有哪些要求,哪些是支持 .NET 集成的提供程序。
提前致谢。
FreeSWITCH 支持 .NET。您需要做的就是激活 mod_managed 模块。
但是您不会将 IVR 应用程序集成到 .NET 应用程序中,而是在 .NET 中编写 IVR 应用程序。(尽管您可以使用 WCF 或类似的东西在您的应用程序和在 FreeSWITCH 中运行的 .NET 代码之间进行通信)
在 Twilio 教程的帮助下,您可以相当快速地构建 IVR。
https://www.twilio.com/docs/tutorials/walkthrough/ivr-phone-tree/csharp/mvc
在此示例中,我们将引导您了解如何构建典型的呼叫中心工作流程,并且在 IVR 中处理呼叫者选择的主菜单如下所示:
// POST: Menu/Show
[HttpPost]
public TwiMLResult Show(string digits)
{
var selectedOption = digits;
var optionActions = new Dictionary<string, Func<TwiMLResult>>()
{
{"1", ReturnInstructions},
{"2", Planets}
};
return optionActions.ContainsKey(selectedOption) ?
optionActions[selectedOption]() :
RedirectWelcome();
}
private static TwiMLResult ReturnInstructions()
{
var response = new TwilioResponse();
response.Say("To get to your extraction point, get on your bike and go down " +
"the street. Then Left down an alley. Avoid the police cars. Turn left " +
"into an unfinished housing development. Fly over the roadblock. Go " +
"passed the moon. Soon after you will see your mother ship.",
new { voice = "alice", language = "en-GB" });
response.Say("Thank you for calling the ET Phone Home Service - the " +
"adventurous alien's first choice in intergalactic travel");
response.Hangup();
return new TwiMLResult(response);
}
您可以根据应用程序的需要轻松修改类似的内容。