From 3d1a4fc2efbfff8daac701537b1476965c9c1de0 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Thu, 16 Jan 2025 09:44:44 -0600 Subject: [PATCH] outbound call in asyncAmd --- .../Functions/HandleOutboundPhoneCallFn.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Plugins/BotSharp.Plugin.Twilio/OutboundPhoneCallHandler/Functions/HandleOutboundPhoneCallFn.cs b/src/Plugins/BotSharp.Plugin.Twilio/OutboundPhoneCallHandler/Functions/HandleOutboundPhoneCallFn.cs index bdc05a61..b032d8ed 100644 --- a/src/Plugins/BotSharp.Plugin.Twilio/OutboundPhoneCallHandler/Functions/HandleOutboundPhoneCallFn.cs +++ b/src/Plugins/BotSharp.Plugin.Twilio/OutboundPhoneCallHandler/Functions/HandleOutboundPhoneCallFn.cs @@ -93,6 +93,7 @@ namespace BotSharp.Plugin.Twilio.OutboundPhoneCallHandler.Functions url: new Uri($"{_twilioSetting.CallbackHost}/twilio/voice/init-call?conversationId={conversationId}"), to: new PhoneNumber(args.PhoneNumber), from: new PhoneNumber(_twilioSetting.PhoneNumber), + asyncAmd: "true", machineDetection: "DetectMessageEnd"); message.Content = $"The generated phone message: {args.InitialMessage}. \r\n[Conversation ID: {conversationId}]" ?? message.Content;