Added inbound campaign wise and call back as well
Showing
1 changed file
with
6 additions
and
5 deletions
| ... | @@ -674,7 +674,7 @@ class KPAMIListen implements IEventListener | ... | @@ -674,7 +674,7 @@ class KPAMIListen implements IEventListener |
| 674 | { | 674 | { |
| 675 | $wakka = new KHRMSLib(); | 675 | $wakka = new KHRMSLib(); |
| 676 | $record=$wakka->getPerson($crmcall->crm_id,$crmcall->client); | 676 | $record=$wakka->getPerson($crmcall->crm_id,$crmcall->client); |
| 677 | if($record) | 677 | if($record && stristr($record["peopledata"]['dialer_substatus'], "follow")=="") |
| 678 | { | 678 | { |
| 679 | $record["peopledata"]["dialer_status"]="InboundDROP"; | 679 | $record["peopledata"]["dialer_status"]="InboundDROP"; |
| 680 | $record["peopledata"]["dialer_substatus"]="InboundDROP"; | 680 | $record["peopledata"]["dialer_substatus"]="InboundDROP"; |
| ... | @@ -1569,10 +1569,11 @@ class KPAMIListen implements IEventListener | ... | @@ -1569,10 +1569,11 @@ class KPAMIListen implements IEventListener |
| 1569 | } | 1569 | } |
| 1570 | else | 1570 | else |
| 1571 | { | 1571 | { |
| 1572 | $data = User::where('presence', '=', "1") | 1572 | $data=Sipid::where('server','=',$this->sipip) |
| 1573 | ->where('exten', 'like', "%".$did."%") | 1573 | ->where("status","=","1") |
| 1574 | ->select('id')->get() | 1574 | ->where("clients","like","%".$did."%") |
| 1575 | ->toArray(); | 1575 | ->select('user')->get() |
| 1576 | ->toArray(); | ||
| 1576 | } | 1577 | } |
| 1577 | 1578 | ||
| 1578 | return $data; | 1579 | return $data; | ... | ... |
-
Please register or sign in to post a comment