From 6a4683e6a828a02efdca8ec790f86654c368f95f Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 23 Feb 2019 13:24:32 +0100 Subject: [PATCH] Automatically clean old calls --- RestControllers/CallsController.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/RestControllers/CallsController.php b/RestControllers/CallsController.php index 1db9ab1..bb654a2 100644 --- a/RestControllers/CallsController.php +++ b/RestControllers/CallsController.php @@ -18,6 +18,16 @@ class CallsController { CallMemberInformation::USER_HANG_UP => "hang_up" ); + /** + * Public constructor + */ + public function __construct(){ + + //Clean calls + components()->calls->cleanCalls(); + + } + /** * Get call configuration *