f234e4ea by Manish Mihsra

Added inbound campaign wise and call back as well

1 parent 4284bd17
......@@ -674,7 +674,7 @@ class KPAMIListen implements IEventListener
{
$wakka = new KHRMSLib();
$record=$wakka->getPerson($crmcall->crm_id,$crmcall->client);
if($record)
if($record && stristr($record["peopledata"]['dialer_substatus'], "follow")=="")
{
$record["peopledata"]["dialer_status"]="InboundDROP";
$record["peopledata"]["dialer_substatus"]="InboundDROP";
......@@ -1569,9 +1569,10 @@ class KPAMIListen implements IEventListener
}
else
{
$data = User::where('presence', '=', "1")
->where('exten', 'like', "%".$did."%")
->select('id')->get()
$data=Sipid::where('server','=',$this->sipip)
->where("status","=","1")
->where("clients","like","%".$did."%")
->select('user')->get()
->toArray();
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!