Skip to content

Commit 2ce7c8a

Browse files
authored
Add default option for Advanced Machine Detection (#499)
1 parent 1167fa4 commit 2ce7c8a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Voice/VoiceObjects/AdvancedMachineDetection.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@ class AdvancedMachineDetection implements ArrayHydrateInterface
1010
public const MACHINE_BEHAVIOUR_HANGUP = 'hangup';
1111
public const MACHINE_MODE_DETECT = 'detect';
1212
public const MACHINE_MODE_DETECT_BEEP = 'detect_beep';
13+
public const MACHINE_MODE_DEFAULT = 'default';
1314
public const BEEP_TIMEOUT_MIN = 45;
1415
public const BEEP_TIMEOUT_MAX = 120;
1516
protected array $permittedBehaviour = [self::MACHINE_BEHAVIOUR_CONTINUE, self::MACHINE_BEHAVIOUR_HANGUP];
16-
protected array $permittedModes = [self::MACHINE_MODE_DETECT, self::MACHINE_MODE_DETECT_BEEP];
17+
protected array $permittedModes = [
18+
self::MACHINE_MODE_DETECT,
19+
self::MACHINE_MODE_DETECT_BEEP,
20+
self::MACHINE_MODE_DEFAULT
21+
];
1722

1823
public function __construct(
1924
protected string $behaviour,

0 commit comments

Comments
 (0)