Added clientcode to kstychCall
Showing
2 changed files
with
5 additions
and
5 deletions
| ... | @@ -656,7 +656,7 @@ if($action=="closecall") | ... | @@ -656,7 +656,7 @@ if($action=="closecall") |
| 656 | 656 | ||
| 657 | 657 | ||
| 658 | $user=$wakka->getPerson($crmcall->crm_id); | 658 | $user=$wakka->getPerson($crmcall->crm_id); |
| 659 | $clientcode=$user['peopledata']['clientcode']; | 659 | $kstychCall["clientcode"]=$user['peopledata']['clientcode']; |
| 660 | if($user['peopledata']['id']==$crmcall->crm_id) | 660 | if($user['peopledata']['id']==$crmcall->crm_id) |
| 661 | { | 661 | { |
| 662 | $user['peopledata']["dialer_status"]=$kstychCall["userstatus"]; | 662 | $user['peopledata']["dialer_status"]=$kstychCall["userstatus"]; |
| ... | @@ -724,7 +724,7 @@ if($action=="closecall") | ... | @@ -724,7 +724,7 @@ if($action=="closecall") |
| 724 | $userlog->save(); | 724 | $userlog->save(); |
| 725 | try{ | 725 | try{ |
| 726 | $smscontroller = new SmsController(); | 726 | $smscontroller = new SmsController(); |
| 727 | $smscontroller->sendSmsBasedOnSubDisposition($kstychCall,$clientcode); | 727 | $smscontroller->sendSmsBasedOnSubDisposition($kstychCall); |
| 728 | } catch(Exception $e) { | 728 | } catch(Exception $e) { |
| 729 | Log::info($e->getMessage()); | 729 | Log::info($e->getMessage()); |
| 730 | } | 730 | } | ... | ... |
| ... | @@ -8,7 +8,7 @@ class SmsController extends Controller | ... | @@ -8,7 +8,7 @@ class SmsController extends Controller |
| 8 | { | 8 | { |
| 9 | public $smsUrl = 'https://10.2.55.165:443/servlet/com.aclwireless.pushconnectivity.listeners.TextListener?'; | 9 | public $smsUrl = 'https://10.2.55.165:443/servlet/com.aclwireless.pushconnectivity.listeners.TextListener?'; |
| 10 | //public $userarray = array("A21568","admin"); | 10 | //public $userarray = array("A21568","admin"); |
| 11 | public function sendSmsBasedOnSubDisposition($kstychCall, $clientcode) | 11 | public function sendSmsBasedOnSubDisposition($kstychCall) |
| 12 | { | 12 | { |
| 13 | //$users = $this->userarray; | 13 | //$users = $this->userarray; |
| 14 | //if(in_array(Auth::user()->username , $users)){ | 14 | //if(in_array(Auth::user()->username , $users)){ |
| ... | @@ -16,12 +16,12 @@ class SmsController extends Controller | ... | @@ -16,12 +16,12 @@ class SmsController extends Controller |
| 16 | if( !empty($msgText) ) { | 16 | if( !empty($msgText) ) { |
| 17 | $msgText = $this->fillValuesInTemplate($msgText); | 17 | $msgText = $this->fillValuesInTemplate($msgText); |
| 18 | //Log::info($msgText); | 18 | //Log::info($msgText); |
| 19 | $this->sendSmsRequest($kstychCall, $msgText, $clientcode); | 19 | $this->sendSmsRequest($kstychCall, $msgText); |
| 20 | } | 20 | } |
| 21 | //} | 21 | //} |
| 22 | return; | 22 | return; |
| 23 | } | 23 | } |
| 24 | public function sendSmsRequest($kstychCall, $msgText, $clientcode) | 24 | public function sendSmsRequest($kstychCall, $msgText) |
| 25 | { | 25 | { |
| 26 | //$wakka = new KHRMSLib(); | 26 | //$wakka = new KHRMSLib(); |
| 27 | $url = $this->smsUrl; | 27 | $url = $this->smsUrl; | ... | ... |
-
Please register or sign in to post a comment