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
00ecc086
authored
2019-07-29 16:01:20 +0000
by
Manish Mihsra
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added logic for getting registered number from existing database
1 parent
9913f5dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
application/app/Jobs/KHRMSLib.php
application/app/Jobs/KPAMIListen.php
application/app/Jobs/KHRMSLib.php
View file @
00ecc08
...
...
@@ -1919,7 +1919,7 @@ function popMail($userid)
{
$users=array();
$mobile10=substr($number,-10);
$tusers=$this->getPersons("RIGHT($key,10) = $mobile10");
$tusers=$this->getPersons("RIGHT($key,10) = $mobile10"
, ""
);
if($tusers)
{
foreach($tusers as $tusr)
...
...
application/app/Jobs/KPAMIListen.php
View file @
00ecc08
...
...
@@ -277,11 +277,6 @@ class KPAMIListen implements IEventListener
$dialline
=
Dialline
::
where
(
'server'
,
'='
,
$this
->
sipip
)
->
where
(
"dialstr"
,
"="
,
env
(
"sip_dialstr"
))
->
where
(
"status"
,
"="
,
"Free"
)
->
first
();
if
(
$dialline
)
{
$dialline
->
status
=
'Inbound'
;
$dialline
->
uniqueid
=
$uniqueid
;
$dialline
->
number
=
$phonenumber
;
$dialline
->
channel
=
$channel
;
$dialline
->
save
();
$nowts
=
microtime
(
true
)
*
1000
;
...
...
@@ -314,6 +309,13 @@ class KPAMIListen implements IEventListener
$crmcall
->
data
=
json_encode
(
$tdata
);
$crmcall
->
save
();
$dialline
->
call_id
=
$crmcall
->
id
;
$dialline
->
status
=
'Inbound'
;
$dialline
->
uniqueid
=
$uniqueid
;
$dialline
->
number
=
$phonenumber
;
$dialline
->
channel
=
$channel
;
$dialline
->
save
();
/*$userStatus=User::where("updated_at",">",date("Y-m-d"))->where("exten","like","%".substr($exten,-4)."%")->where("usertype","!=","Admin")->where('presence', '=', '1')->select('*')->get();
if($userStatus=="[]")
...
...
@@ -1479,7 +1481,7 @@ class KPAMIListen implements IEventListener
$crmcalldata
=
json_decode
(
$crmcall
->
data
,
true
);
if
(
!
isset
(
$crmcalldata
[
"userbusyfile"
]))
$crmcalldata
[
"userbusyfile"
]
=
0
;
//
if($dialline->status == $status[1])$this->checkMobileNumberExist($crmcall);
if
(
$dialline
->
status
==
$status
[
1
])
$this
->
checkMobileNumberExist
(
$crmcall
);
$sipids
=
array
();
...
...
@@ -1491,7 +1493,7 @@ class KPAMIListen implements IEventListener
->
where
(
"status"
,
"="
,
"1"
)
->
where
(
"ready"
,
"="
,
"1"
)
->
where
(
"prepare_call"
,
"="
,
"1"
)
->
orderBy
(
"updated_at"
,
"
de
sc"
)
->
orderBy
(
"updated_at"
,
"
a
sc"
)
->
first
();
}
...
...
@@ -1502,7 +1504,7 @@ class KPAMIListen implements IEventListener
$sipid
=
Sipid
::
where
(
'server'
,
'='
,
$this
->
sipip
)
->
where
(
"status"
,
"="
,
"1"
)
->
where
(
"ready"
,
"="
,
"1"
)
->
orderBy
(
"updated_at"
,
"
de
sc"
)
->
orderBy
(
"updated_at"
,
"
s
sc"
)
->
first
();
}
...
...
@@ -1528,7 +1530,7 @@ class KPAMIListen implements IEventListener
if
(
$crmcall
->
client
==
"."
)
{
$wakka
=
new
KHRMSLib
();
$users
=
$wakka
->
searchPhone
(
"mobile"
,
$crmcall
->
number
);
$users
=
$wakka
->
searchPhone
(
"mobile"
,
$crmcall
->
number
,
""
);
if
(
!
empty
(
$users
))
{
$ppldata
=
unserialize
(
$users
[
0
][
'peopledata'
]);
...
...
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