/**
  * This method finally sends the sms to the number
  * Before this call please verify that the message number or message body
  * are valid, otherwise this method will not send the sms
  * @param $p_num
  */
 function sendSms($p_num)
 {
     $this->recipient = $p_num;
     if ($p_num != null && !empty($p_num) && $this->msgBody != null && !empty($this->msgBody)) {
         $res = file_get_contents($this->_getSmsUrl());
         if (!empty($res)) {
             SmsLogs::createLog($p_num, $res, $this->_parseXML($res) ? SmsLogs::SMS_LOG_CATEGORY_SUCCESS : SmsLogs::SMS_LOG_CATEGORY_FAILURE);
         } else {
             SmsLogs::createLog($p_num, $res, SmsLogs::SMS_LOG_CATEGORY_FAILURE);
         }
     }
 }