Telnyx activities enhancements

This commit is contained in:
Sipke Schoorstra 2021-06-05 13:33:56 +02:00
parent d339b8d389
commit e24609d3ec
2 changed files with 13 additions and 3 deletions

View file

@ -98,6 +98,15 @@ namespace Elsa.Activities.Telnyx.Activities
get => GetState(() => Duration.FromSeconds(20));
set => SetState(value);
}
[ActivityInput(
Hint = "Enables Answering Machine Detection.",
UIHint = ActivityInputUIHints.Dropdown,
Options = new[] {"disabled", "detect", "detect_beep", "detect_words", "greeting_end"},
DefaultValue = "disabled",
Category = PropertyCategories.Advanced,
SupportedSyntaxes = new[] {SyntaxNames.Literal, SyntaxNames.JavaScript, SyntaxNames.Liquid})]
public string? AnsweringMachineDetection { get; set; } = "disabled";
private CallAnsweredPayload? CallAnsweredPayload
{

View file

@ -60,9 +60,10 @@ namespace Elsa.Activities.Telnyx.Activities
[ActivityInput(
Hint = "Enables Answering Machine Detection.",
UIHint = ActivityInputUIHints.Dropdown,
Options = new[] { "disabled", "detect", "detect_beep", "detect_words", "greeting_end" },
SupportedSyntaxes = new[] { SyntaxNames.Literal, SyntaxNames.JavaScript, SyntaxNames.Liquid })]
public string? AnsweringMachineDetection { get; set; }
Options = new[] {"disabled", "detect", "detect_beep", "detect_words", "greeting_end"},
DefaultValue = "disabled",
SupportedSyntaxes = new[] {SyntaxNames.Literal, SyntaxNames.JavaScript, SyntaxNames.Liquid})]
public string? AnsweringMachineDetection { get; set; } = "disabled";
[ActivityInput(
Label = "Answering Machine Detection Configuration",