Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial_v3
/
fullerton
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d9e59ea6
authored
2020-04-30 17:49:00 +0000
by
Nitesh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Resolved alternative dialing issue
1 parent
1f012e00
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
25 deletions
app/Http/Controllers/DialerController.php
public/assets/js/dialer.js
app/Http/Controllers/DialerController.php
View file @
d9e59ea
...
...
@@ -166,15 +166,7 @@ class DialerController extends Controller
$wakka
->
setPersonKey
(
$users
[
0
][
'id'
],
"status"
,
"Incall"
);
if
(
!
empty
(
$users
))
{
$searchresult
.=
"<div id=divworking></div><div style='clear:both'></div><script>kSetDData('C','previewcrmid','"
.
$users
[
0
][
'id'
]
.
"');showRecruit(
\"
"
.
$users
[
0
][
'id'
]
.
"
\"
);</script>"
;
$searchresult
.=
"<div id=internalid_matchlist></div><script>
doAjax('record?action=quicksearch','maintextsearch_1_txt="
.
$users
[
0
][
'clientinternalid'
]
.
"&maintextsearch_1_span=InternalID','internalid_matchlist','searchMutex', 'searchxhr','POST',function(retstr){
if(retstr.responseText.indexOf('No Records Found!')>-1)$('#internalid_matchlist').html('');
});
</script>"
;
}
else
{
$searchresult
.=
"<div id=internalid_matchlist></div><script>createSearchRecordDiv('internalid_matchlist');</script>"
;
$searchresult
.=
"<div id=divworking></div><div style='clear:both'></div><script>kSetDData('C','previewcrmid','"
.
$users
[
0
][
'id'
]
.
"');</script>"
;
}
return
Response
::
make
(
$searchresult
);
...
...
@@ -238,7 +230,6 @@ class DialerController extends Controller
}
}
$wakka
->
setPersonKey
(
$users
[
0
][
'id'
],
"status"
,
"Incall"
);
if
(
Auth
::
user
()
->
sessiontype
==
'0'
)
{
$webrtc
=
$this
->
webrtc
(
$users
,
$callnumber
,
$client
,
$kstychDialer
[
'mDialerState'
],
$kstychDialer
[
'phone'
]);
...
...
@@ -313,7 +304,7 @@ class DialerController extends Controller
$userstatus
=
true
;
break
;
}
sleep
(
5
);
sleep
(
1
5
);
}
break
;
}
...
...
public/assets/js/dialer.js
View file @
d9e59ea
...
...
@@ -1098,20 +1098,20 @@ function updateDialerState(objstr,key,val,key2,val2)
if
(
val
==
"Progressive"
||
(
kstychCall
[
'previewcrmid'
]
!=
""
&&
kstychCall
[
'previewcrmid'
]
>
0
))
{
//
doAjax('dialer?action=previewnext&client='+client,datastr,'dialersearchresults', 'ajax_manualdial2','singlefail','POST',
//
function(retstr){
//
if(kstychCall['previewcrmid']!="")
//
{
// updateDialerState(
);
//
}
//
else
//
{
//
resetCallArray();
//
simpleNotification('error','topRight',"Failed to Dial Next Record");
//
updateDialerState("dialer","mDialerState","Paused","mDialerSubState","NotReady");
//
}
//
});
updateDialerState
(
"action"
,
"dialnext"
,
""
);
doAjax
(
'dialer?action=previewnext&client='
+
client
,
datastr
,
'dialersearchresults'
,
'ajax_manualdial2'
,
'singlefail'
,
'POST'
,
function
(
retstr
){
if
(
kstychCall
[
'previewcrmid'
]
!=
""
)
{
updateDialerState
(
"action"
,
"dialnext"
);
}
else
{
resetCallArray
();
simpleNotification
(
'error'
,
'topRight'
,
"Failed to Dial Next Record"
);
updateDialerState
(
"dialer"
,
"mDialerState"
,
"Paused"
,
"mDialerSubState"
,
"NotReady"
);
}
});
//
updateDialerState("action","dialnext","");
}
updateDialerState
();
});
...
...
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