5523df1c by Manish Mihsra

Added check for logged in user

1 parent 19eb3f96
...@@ -1487,7 +1487,9 @@ class KPAMIListen implements IEventListener ...@@ -1487,7 +1487,9 @@ class KPAMIListen implements IEventListener
1487 { 1487 {
1488 $mode = "Predictive"; 1488 $mode = "Predictive";
1489 1489
1490 $campaignUserIds = User::where('sel_campaign', '=', $dialline->regexstr)->select('id')->get()->toArray(); 1490 $campaignUserIds = User::where('presence', '=', "1")
1491 ->where('sel_campaign', '=', $dialline->regexstr)
1492 ->select('id')->get()->toArray();
1491 1493
1492 $sipid=Sipid::where('server', '=', $this->sipip) 1494 $sipid=Sipid::where('server', '=', $this->sipip)
1493 ->whereIn("user", $campaignUserIds) 1495 ->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!