-
-
Notifications
You must be signed in to change notification settings - Fork 582
Supports allow to interrupt the welcome message playing #1207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
PR Type
Enhancement
Description
Add support for interrupting welcome message during playback
Introduce
WelcomeMessageAllowToBeInterruptedparameter to control interruption behaviorConditionally use interruptible or non-interruptible instructions based on agent labels
Pass interruption flag through query parameters in outbound call processing
Diagram Walkthrough
flowchart LR A["Agent Labels"] -->|Contains WelcomeMessageAllowToBeInterrupted| B["Add Query Parameter"] B -->|welcome_message_allow_to_be_interrupted=true| C["TwilioOutboundController"] C -->|Check Parameter| D{WelcomeMessageAllowToBeInterrupted?} D -->|True| E["ReturnInstructions<br/>Interruptible"] D -->|False| F["ReturnNoninterruptedInstructions<br/>Non-interruptible"]File Walkthrough
TwilioOutboundController.cs
Conditional welcome message interruption handlingsrc/Plugins/BotSharp.Plugin.Twilio/Controllers/TwilioOutboundController.cs
ReturnNoninterruptedInstructionscall withconditional logic
WelcomeMessageAllowToBeInterruptedparameter from requestReturnInstructionsfor interruptible mode,ReturnNoninterruptedInstructionsfor non-interruptible modeConversationalVoiceRequest.cs
Add welcome message interruption request parametersrc/Plugins/BotSharp.Plugin.Twilio/Models/ConversationalVoiceRequest.cs
WelcomeMessageAllowToBeInterruptedwelcome_message_allow_to_be_interruptedOutboundPhoneCallFn.cs
Add interruption flag to outbound call URLsrc/Plugins/BotSharp.Plugin.Twilio/OutboundPhoneCallHandler/Functions/OutboundPhoneCallFn.cs
WelcomeMessageAllowToBeInterruptedfor parameter namelabels