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
01ec3695
authored
2018-10-31 15:46:24 +0530
by
G Manojkumar
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
userarray creation
1 parent
508f6466
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
application/app/Http/Controllers/DialerController.php
application/app/Http/Controllers/SmsController.php
application/app/Http/Controllers/DialerController.php
View file @
01ec369
...
...
@@ -721,7 +721,6 @@ if($action=="closecall")
$userlog
=
UserLog
::
where
(
'user_id'
,
'='
,
Auth
::
user
()
->
id
)
->
orderBy
(
"id"
,
"DESC"
)
->
first
();
$userlog
->
getLastTs
(
$crmcall
->
sipid_id
,
$nowts
);
$userlog
->
save
();
if
(
Auth
::
user
()
->
username
==
'S32732'
&&
$kstychCall
[
'callnumber'
]
==
'9324046534'
){
try
{
$smscontroller
=
new
SmsController
();
$smscontroller
->
sendSmsBasedOnSubDisposition
(
$kstychCall
);
...
...
@@ -729,7 +728,6 @@ if($action=="closecall")
Log
::
info
(
$e
->
getMessage
());
}
}
}
return
Response
::
make
(
""
);
}
...
...
application/app/Http/Controllers/SmsController.php
View file @
01ec369
...
...
@@ -7,14 +7,18 @@ use Log;
class
SmsController
extends
Controller
{
public
$smsUrl
=
'https://10.2.55.165:443/servlet/com.aclwireless.pushconnectivity.listeners.TextListener?'
;
public
$userarray
=
array
(
"A21568"
,
"admin"
);
public
function
sendSmsBasedOnSubDisposition
(
$kstychCall
)
{
$users
=
$this
->
userarray
;
if
(
in_array
(
Auth
::
user
()
->
username
,
$users
)){
$msgText
=
$this
->
getSmsTemplate
(
$kstychCall
);
if
(
!
empty
(
$msgText
)
)
{
$msgText
=
$this
->
fillValuesInTemplate
(
$msgText
);
Log
::
info
(
$msgText
);
$this
->
sendSmsRequest
(
$kstychCall
,
$msgText
);
}
}
return
;
}
public
function
sendSmsRequest
(
$kstychCall
,
$msgText
)
...
...
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