修改监听

This commit is contained in:
lilong@dgg.net 2020-06-30 14:03:32 +08:00
parent e31b15fb70
commit 8b0ea1d46a
1 changed files with 1 additions and 1 deletions

View File

@ -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'=>'被监听分机未在通话中']);