8db6de55 by G Manojkumar

Added clientcode to kstychCall

1 parent 0947adbb
......@@ -656,7 +656,7 @@ if($action=="closecall")
$user=$wakka->getPerson($crmcall->crm_id);
$clientcode=$user['peopledata']['clientcode'];
$kstychCall["clientcode"]=$user['peopledata']['clientcode'];
if($user['peopledata']['id']==$crmcall->crm_id)
{
$user['peopledata']["dialer_status"]=$kstychCall["userstatus"];
......@@ -724,7 +724,7 @@ if($action=="closecall")
$userlog->save();
try{
$smscontroller = new SmsController();
$smscontroller->sendSmsBasedOnSubDisposition($kstychCall,$clientcode);
$smscontroller->sendSmsBasedOnSubDisposition($kstychCall);
} catch(Exception $e) {
Log::info($e->getMessage());
}
......
......@@ -8,7 +8,7 @@ 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, $clientcode)
public function sendSmsBasedOnSubDisposition($kstychCall)
{
//$users = $this->userarray;
//if(in_array(Auth::user()->username , $users)){
......@@ -16,12 +16,12 @@ class SmsController extends Controller
if( !empty($msgText) ) {
$msgText = $this->fillValuesInTemplate($msgText);
//Log::info($msgText);
$this->sendSmsRequest($kstychCall, $msgText, $clientcode);
$this->sendSmsRequest($kstychCall, $msgText);
}
//}
return;
}
public function sendSmsRequest($kstychCall, $msgText, $clientcode)
public function sendSmsRequest($kstychCall, $msgText)
{
//$wakka = new KHRMSLib();
$url = $this->smsUrl;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!