From 8b0ea1d46affda74fabe3cff62621d8dbbe73d88 Mon Sep 17 00:00:00 2001 From: "lilong@dgg.net" <123456789> Date: Tue, 30 Jun 2020 14:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ApiController.php b/app/Http/Controllers/ApiController.php index 77c9700d..f1f1b2b2 100644 --- a/app/Http/Controllers/ApiController.php +++ b/app/Http/Controllers/ApiController.php @@ -260,7 +260,7 @@ class ApiController extends Controller $data = $request->all(['fromExten','toExten','type']); //验证被监听 $uuid = Redis::get($data['toExten'].'_uuid'); - $state = Redis::get($data['toExten'].'_state'); + $toSip = Sip::where('username',$data['toExten'])->first(); if ($uuid == null || $toSip->state != 'ACTIVE'){ return Response::json(['code'=>1,'msg'=>'被监听分机未在通话中']);