5523df1c by Manish Mihsra

Added check for logged in user

1 parent 19eb3f96
......@@ -1487,7 +1487,9 @@ class KPAMIListen implements IEventListener
{
$mode = "Predictive";
$campaignUserIds = User::where('sel_campaign', '=', $dialline->regexstr)->select('id')->get()->toArray();
$campaignUserIds = User::where('presence', '=', "1")
->where('sel_campaign', '=', $dialline->regexstr)
->select('id')->get()->toArray();
$sipid=Sipid::where('server', '=', $this->sipip)
->whereIn("user", $campaignUserIds)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!