Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial
/
hdfc-beu-v2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8eec80c5
authored
2018-12-12 18:20:16 +0530
by
G Manojkumar
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
removed once from include
1 parent
bcc38ddb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
18 deletions
application/app/Http/Controllers/DialerController.php
application/app/Jobs/KPAMIListen.php
application/app/Http/Controllers/DialerController.php
View file @
8eec80c
...
...
@@ -959,8 +959,7 @@ public function show($id)
$didlinestrArr
=
explode
(
":"
,
$didlinestr
);
$udidlinesstr
[]
=
substr
(
$didlinestrArr
[
0
],
env
(
'didnumber'
));
}
//include( app_path() . '/Hacks/DisabledDIDs.php');
$mc
=
CRMCall
::
where
(
'userstatus'
,
'='
,
'InboundDROP'
)
->
where
(
'created_at'
,
'>'
,
'2018-09-11 00:00:00'
)
->
where
(
'created_at'
,
'>'
,
date
(
'Y-m-d H:i:s'
,
time
()
-
(
7
*
24
*
60
*
60
)));
$mc
=
$mc
->
where
(
function
(
$query
)
use
(
$roclientlst
,
$udidlinesstr
){
...
...
@@ -971,10 +970,10 @@ public function show($id)
foreach
(
$mc
as
$key
=>
$tcall
){
//Log::info($tcall);
include
(
app_path
()
.
'/Hacks/DisabledDIDs.php'
);
include
_once
(
app_path
()
.
'/Hacks/DisabledDIDs.php'
);
if
(
in_array
(
substr
(
$tcall
->
number
,
-
10
),
$DisableNumbersArray
)
){
//Log::info("Disabled Number".$tcall->number);
continue
;
continue
;
}
$tccal
=
substr
(
$tcall
->
number
,
-
10
);
$mc_number
=
CRMCall
::
where
(
'userstatus'
,
'!='
,
'InboundDROP'
)
->
where
(
'created_at'
,
'>'
,
$tcall
->
created_at
)
->
where
(
'number'
,
'like'
,
"%"
.
$tccal
.
"%"
)
->
orderBy
(
"id"
,
"DESC"
)
->
first
();
...
...
@@ -983,12 +982,7 @@ public function show($id)
$mccount
=
count
(
$mc_number
);
if
(
$mccount
==
0
){
//include( app_path() . '/Hacks/DisabledDIDs.php');
//if( in_array(substr($tcall->number,-10),$DisableNumbersArray) ){
// Log::info("Disabled Number".$tcall->number);
// }else{
$number_list
[]
=
$tcall
->
number
;
// }
$number_list
[]
=
$tcall
->
number
;
}
}
...
...
@@ -1509,13 +1503,7 @@ public function show($id)
$mccount
=
count
(
$mc_number
);
if
(
$mccount
==
0
){
include
(
app_path
()
.
'/Hacks/DisabledDIDs.php'
);
if
(
in_array
(
substr
(
$tcall
->
number
,
-
10
),
$DisableNumbersArray
)
){
Log
::
info
(
"Disabled Number"
.
$tcall
->
number
);
}
else
{
$number_list
[]
=
$tcall
->
number
;
}
//$number_list[] = $tcall->number;
$number_list
[]
=
$tcall
->
number
;
}
}
...
...
application/app/Jobs/KPAMIListen.php
View file @
8eec80c
...
...
@@ -305,7 +305,7 @@ class KPAMIListen implements IEventListener
$crmcall
->
data
=
json_encode
(
$tdata
);
$crmcall
->
save
();
$DisableNumbersArray
=
array
();
include
(
app_path
()
.
'/Hacks/DisabledDIDs.php'
);
if
(
in_array
(
substr
(
$crmcall
->
number
,
-
10
),
$DisableNumbersArray
)
){
Log
::
info
(
"Disabled Number"
.
$crmcall
->
number
);
}
else
{
...
...
@@ -1025,6 +1025,7 @@ class KPAMIListen implements IEventListener
$crmcall
->
data
=
json_encode
(
$tdata
);
$crmcall
->
save
();
$DisableNumbersArray
=
array
();
include
(
app_path
()
.
'/Hacks/DisabledDIDs.php'
);
if
(
in_array
(
substr
(
$crmcall
->
number
,
-
10
),
$DisableNumbersArray
)
){
Log
::
info
(
"Disabled Number"
.
$crmcall
->
number
);
}
else
{
$newqueue
=
new
Kqueue
();
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment