Skip to content

Commit

Permalink
Add default option for Advanced Machine Detection (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondeJK authored Sep 12, 2024
1 parent 1167fa4 commit 2ce7c8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Voice/VoiceObjects/AdvancedMachineDetection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2ce7c8a

Please sign in to comment.