minor change for InboundDrop user_id
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -497,7 +497,7 @@ class KPAMIListen implements IEventListener | ... | @@ -497,7 +497,7 @@ class KPAMIListen implements IEventListener |
| 497 | 497 | ||
| 498 | if($crmcall->type=="Inbound"&&$crmcall->user_id==0)//InboundDROP | 498 | if($crmcall->type=="Inbound"&&$crmcall->user_id==0)//InboundDROP |
| 499 | { | 499 | { |
| 500 | $userslist=User::where('exten','like' ,'%'.$crmcall->did.'%')->get(); | 500 | $userslist=User::where('exten','like' ,'%'.$crmcall->did.'%')->where('status','=','Active')->get(); |
| 501 | foreach ($userslist as $ulist) { | 501 | foreach ($userslist as $ulist) { |
| 502 | $crmcall->user_id=$ulist->id; | 502 | $crmcall->user_id=$ulist->id; |
| 503 | } | 503 | } | ... | ... |
-
Please register or sign in to post a comment