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
d86adf97
authored
2019-02-19 09:46:24 +0000
by
Manish Mihsra
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Corrected new code If transferred call is not connected
1 parent
889d9b7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
application/app/Jobs/KPAMIListen.php
application/app/Jobs/KPAMIListen.php
View file @
d86adf9
...
...
@@ -460,8 +460,6 @@ class KPAMIListen implements IEventListener
$cause
=
$event
->
getKey
(
"Cause"
);
$causetxt
=
$event
->
getKey
(
"Cause-txt"
);
Log
::
info
(
"
$accountcode
:HangupEvent :
$eventname
$channelstate
:
$channelstatedesc
$uniqueid
$exten
:
$priority
$channel
$cause
:
$causetxt
\n
"
);
Log
::
info
(
"Hangup"
.
$accountcode
);
if
(
$accountcode
!=
""
)
{
//echo "$accountcode:HangupEvent : $eventname $channelstate:$channelstatedesc $uniqueid $exten:$priority $channel $cause:$causetxt\n";
...
...
@@ -484,6 +482,21 @@ class KPAMIListen implements IEventListener
$crmcall
=
CRMCall
::
find
(
$accountcodearr
[
2
]);
if
(
$crmcall
)
{
$dialline
=
Dialline
::
find
(
$crmcall
->
dialline_id
);
if
(
stristr
(
$channel
,
"initiateTransfer"
))
{
if
(
$dialline
)
{
$dialline
->
channel
=
$_SESSION
[
'prev_channel'
];
$dialline
->
save
();
unset
(
$_SESSION
[
'prev_channel'
]);
}
exit
;
}
$nowts
=
microtime
(
true
)
*
1000
;
$crmcall
->
setTs
(
'ts_Recend'
,
$nowts
);
...
...
@@ -491,9 +504,6 @@ class KPAMIListen implements IEventListener
$crmcall
->
state
=
$eventname
;
$crmcall
->
statuscode
=
$cause
;
$crmcall
->
substatus
=
$causetxt
;
$dialline
=
Dialline
::
find
(
$crmcall
->
dialline_id
);
if
(
$dialline
)
{
...
...
@@ -832,6 +842,10 @@ class KPAMIListen implements IEventListener
$crmcall
->
status
=
$dialstatus
;
$dialline
=
Dialline
::
find
(
$crmcall
->
dialline_id
);
if
(
!
isset
(
$_SESSION
[
'prev_channel'
]))
$_SESSION
[
'prev_channel'
]
=
$dialline
->
channel
;
if
(
$dialline
)
{
$dialline
->
channel
=
$channel
;
...
...
@@ -844,7 +858,7 @@ class KPAMIListen implements IEventListener
//start recording
$newqueue
=
new
Kqueue
();
$newqueue
->
recordChannel
(
$tsip
->
server
,
$
d
channel
,
$recfile
);
$newqueue
->
recordChannel
(
$tsip
->
server
,
$channel
,
$recfile
);
$crmcall
->
setTs
(
'ts_Recstart'
,
$nowts
);
...
...
@@ -852,7 +866,7 @@ class KPAMIListen implements IEventListener
$newqueue
=
new
Kqueue
();
$newqueue
->
sipNotify
(
$tsip
,
"dialerUI"
,
"dialend"
,
"c"
,
$crmcall
->
id
.
"~"
.
$crmcall
->
number
.
"~"
.
base64_encode
(
$channel
));
$crmcall
->
addEventLog
(
$nowts
,
"
$accountcode
:Unknown :
$eventname
$dchannelstate
:
$dchannelstatedesc
$duniqueid
$dexten
:
$dpriority
$
d
channel
$dialstatus
"
);
$crmcall
->
addEventLog
(
$nowts
,
"
$accountcode
:Unknown :
$eventname
$dchannelstate
:
$dchannelstatedesc
$duniqueid
$dexten
:
$dpriority
$channel
$dialstatus
"
);
$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