make wating time longer

This commit is contained in:
Haiping Chen 2024-09-06 09:59:33 -05:00
parent 879142cb57
commit de4d740fc2

View file

@ -66,7 +66,7 @@ public class TwilioService
return response;
}
public VoiceResponse ReturnInstructions(List<string> speechPaths, string callbackPath, bool actionOnEmptyResult, int timeout = 3)
public VoiceResponse ReturnInstructions(List<string> speechPaths, string callbackPath, bool actionOnEmptyResult, int timeout = 5)
{
var response = new VoiceResponse();
var gather = new Gather()
@ -78,8 +78,8 @@ public class TwilioService
},
Action = new Uri($"{_settings.CallbackHost}/{callbackPath}"),
SpeechModel = Gather.SpeechModelEnum.PhoneCall,
SpeechTimeout = "auto", // timeout > 0 ? timeout.ToString() : "3",
Timeout = timeout > 0 ? timeout : 3,
SpeechTimeout = "auto", // timeout > 0 ? timeout.ToString() : "5",
Timeout = timeout > 0 ? timeout : 5,
ActionOnEmptyResult = actionOnEmptyResult,
Hints = "Yes, No, Correct"
};