From 2ce7c8a75bf10c14e18aa109ad2346df561f27bf Mon Sep 17 00:00:00 2001 From: James Seconde Date: Thu, 12 Sep 2024 10:17:32 +0100 Subject: [PATCH] Add default option for Advanced Machine Detection (#499) --- src/Voice/VoiceObjects/AdvancedMachineDetection.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Voice/VoiceObjects/AdvancedMachineDetection.php b/src/Voice/VoiceObjects/AdvancedMachineDetection.php index 75ac6d7f..181bcbe4 100644 --- a/src/Voice/VoiceObjects/AdvancedMachineDetection.php +++ b/src/Voice/VoiceObjects/AdvancedMachineDetection.php @@ -10,10 +10,15 @@ class AdvancedMachineDetection implements ArrayHydrateInterface public const MACHINE_BEHAVIOUR_HANGUP = 'hangup'; public const MACHINE_MODE_DETECT = 'detect'; public const MACHINE_MODE_DETECT_BEEP = 'detect_beep'; + public const MACHINE_MODE_DEFAULT = 'default'; public const BEEP_TIMEOUT_MIN = 45; public const BEEP_TIMEOUT_MAX = 120; protected array $permittedBehaviour = [self::MACHINE_BEHAVIOUR_CONTINUE, self::MACHINE_BEHAVIOUR_HANGUP]; - protected array $permittedModes = [self::MACHINE_MODE_DETECT, self::MACHINE_MODE_DETECT_BEEP]; + protected array $permittedModes = [ + self::MACHINE_MODE_DETECT, + self::MACHINE_MODE_DETECT_BEEP, + self::MACHINE_MODE_DEFAULT + ]; public function __construct( protected string $behaviour,