修改监听
This commit is contained in:
parent
e31b15fb70
commit
8b0ea1d46a
|
|
@ -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'=>'被监听分机未在通话中']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue