Example #1
0
 $Meeting_Hosted_By = trim($arrSchDtls[0]['nick_name']);
 if (trim($Schedule_Status) == "0") {
     //Meeting Status = 0 then Update to 3 (Cancelled)
     $New_Schedule_Status = '3';
     $Current_GMT_Datetime = GM_DATE;
     try {
         $arrCancelSchedule = cancelSchedule($strScheduleId, $New_Schedule_Status, $Current_GMT_Datetime, $strCanReason, $objDataHelper);
     } catch (Exception $a) {
         throw new Exception("Error in cancelSchedule." . $a->getMessage(), 4102);
     }
     $strCancelStatus = trim($arrCancelSchedule[0]['@result']);
     if ($strCancelStatus == 1) {
         //Cancel Status is 1 (Success) then reduce the number of consumed_session.
         $Type = "S";
         try {
             $arrUpdConSession = updConsumedSessions($Subscription_Id, $User_Id, $Type, $objDataHelper);
         } catch (Exception $a) {
             throw new Exception("Error in updConsumedSessions." . $a->getMessage(), 4103);
         }
         $strUpdConStatus = trim($arrUpdConSession[0]['@result']);
         if ($strUpdConStatus == 1) {
             try {
                 $arrClSubDtls = getClSubInfoFromUserOrderId($UserOrder_Id, $objDataHelper);
             } catch (Exception $e) {
                 throw new Exception("createSchedule.php : updConsumedSessions Failed : " . $e->getMessage(), 1137);
             }
             $strClSubId = $arrClSubDtls[0]['client_subscription_id'];
             $strClientId = $arrClSubDtls[0]['client_id'];
             $Type = "S";
             try {
                 $updSession = updClientConsumedSessions($strClSubId, $strClientId, $Type, $objDataHelper);
Example #2
0
 } catch (Exception $e) {
     throw new Exception("Error in getLMInstanceByClientId." . $a->getMessage(), 312);
 }
 $LMInstanceURL = $meetingInstanceDtls[0]["rt_server_name"];
 if (strlen($LMInstanceURL) > 0) {
     $meetingInstance = $LMInstanceURL;
     $meetingAttendeePWD = ATTENDEE_PWD;
     $meetingModeratorPWD = MODERATOR_PWD;
     try {
         $scheduleID = insScheduleDetails($schID, $strCK_user_id, $gmTime, $localTime, $meeting_title, $timezone, $gmt, $meetingAttendeePWD, $meetingModeratorPWD, $voiceBridgeToken, $inviteesCnt, $meetingRecoding, $maxSessionsMinutes, $meetingInstance, $subscriptionId, $meeting_agenda, $objDataHelper);
     } catch (Exception $e) {
         throw new Exception("createSchedule.php : scheduleDetails Failed : " . $e->getMessage(), 1132);
     }
     $type = "A";
     try {
         $updSession = updConsumedSessions($subscriptionId, $strCK_user_id, $type, $objDataHelper);
     } catch (Exception $e) {
         throw new Exception("createSchedule.php : updConsumedSessions Failed : " . $e->getMessage(), 1137);
     }
     if ($updSession[0]["@result"] == 1 && $planType == "S") {
         try {
             $arrClSubDtls = getClSubInfoFromUserOrderId($userorderId, $objDataHelper);
         } catch (Exception $e) {
             throw new Exception("createSchedule.php : getClSubInfoFromUserOrderId Failed : " . $e->getMessage(), 1137);
         }
         $strClSubId = $arrClSubDtls[0]['client_subscription_id'];
         $strClientId = $arrClSubDtls[0]['client_id'];
         $type = "A";
         try {
             $updSession = updClientConsumedSessions($strClSubId, $strClientId, $type, $objDataHelper);
         } catch (Exception $e) {