fa1c5d0f by G Manojkumar

minor change for InboundDrop user_id

1 parent 9cf21838
......@@ -497,7 +497,7 @@ class KPAMIListen implements IEventListener
if($crmcall->type=="Inbound"&&$crmcall->user_id==0)//InboundDROP
{
$userslist=User::where('exten','like' ,'%'.$crmcall->did.'%')->get();
$userslist=User::where('exten','like' ,'%'.$crmcall->did.'%')->where('status','=','Active')->get();
foreach ($userslist as $ulist) {
$crmcall->user_id=$ulist->id;
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!