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
5c2f60e6
authored
2019-07-31 21:02:00 +0530
by
Manish Mihsra
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Removed hangup from hangup screen and update CRMcall when call is answered
1 parent
5523df1c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
application/app/Console/Commands/PredictiveCallHangUp.php
application/app/Jobs/KPAMIListen.php
application/app/Console/Commands/PredictiveCallHangUp.php
View file @
5c2f60e
...
...
@@ -80,11 +80,12 @@ class PredictiveCallHangUp extends Command {
$this
->
updateCrmCallEntry
(
$callId
);
}
elseif
(
$dialline
->
status
==
'AutoCall'
&&
$lastUpdatedTime
>
(
$avgringsec
+
$breathingTime
)
&&
$dialline
->
src_channel
!=
""
)
{
$newqueue
->
hangupChannelS
(
$dialline
->
src_channel
,
$dialline
->
server
);
//
elseif($dialline->status == 'AutoCall' && $lastUpdatedTime > ($avgringsec+$breathingTime) && $dialline->src_channel != "") {
//
$newqueue->hangupChannelS($dialline->src_channel,$dialline->server);
$this
->
updateCrmCallEntry
(
$callId
);
}
// $this->updateCrmCallEntry($callId);
// }
//TODO: Check The Time Difference
}
}
catch
(
Exception
$e
)
{
Log
::
useFiles
(
storage_path
()
.
"/logs/predictive_"
.
date
(
"Y_m_d"
)
.
".log"
);
...
...
application/app/Jobs/KPAMIListen.php
View file @
5c2f60e
...
...
@@ -1195,11 +1195,13 @@ class KPAMIListen implements IEventListener
$dialline
->
uniqueid
=
$uniqueid
;
$dialline
->
status
=
"Auto"
;
$dialline
->
save
();
$crmcall
->
type
=
"Auto"
;
}
$crmcall
->
addEventLog
(
$nowts
,
"
$accountcode
:
$accountcodearr[1]
:
$eventname
$dchannelstate
:
$dchannelstatedesc
$duniqueid
$dexten
:
$dpriority
$dchannel
$dialstatus
"
);
$crmcall
->
type
=
"Auto"
;
$crmcall
->
save
();
}
...
...
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