Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Installation steps

This module is to be added to OSTicket system. Kindly follow the next steps to add it:

  1. Download and extract module source code

  2. Drop module directory into OSTicket source code root directory

  3. Make the following changes in the OSTicket source code:

    a. Add this line to the beginning of class.ticket.php file (/osticket/include/class.ticket.php) : include_once(dirname(__FILE__).'/../moceanapi/class/SMSNotification.php');

    b. Add the following functions to the Ticket class in class.ticket.php file:

    function alertUser($status = '') {
        $sms_notification = SMSNotification::getInstance();
        $phone = $this->getPhoneNumber();
        if(empty($status)) {
            $status = $this->getStatus()->getState();
        $replacements = [
            "[last_staff_name]"=>$this->getStaff()->ht["firstname"]." ".$this->getStaff()->ht["lastname"],
        $sms_notification->trigger_status_notification($phone, $status, $replacements);
    function onNewTicketSMSAlert() {
       $sms_notification = SMSNotification::getInstance();
       $status = $this->getStatus();
       $replacements = [
           "[last_staff_name]"=>$this->getStaff()->ht["firstname"]." ".$this->getStaff()->ht["lastname"],
  4. Add $this->alertUser(); to the end of function setStatus before it’s return.

  5. Add below code snippet to the end of function onNewTicket before it’s return.

  1. Add $this->alertUser($isanswered === 1 ? 'answered' : 'unanswered'); to the beginning of function setAnsweredState.
  2. Add $this->alertUser('overdue'); to the end of function markOverdue before it's return.
  3. Add $this->alertUser('notdue'); to the end of function clearOverdue before it's return.
  4. Add $this->alertUser('assigned'); to the end of function assign before it's return
  5. Add $this->alertUser('unassined'); to the beginning of function release
  6. Add $this->alertUser('deleted'); to the end of function delete before it's return
  7. Add $this->alertUser('locked'); to the end of function acquireLock before it's return
  8. Add $this->alertUser("reopened"); to the end of function reopen before it's return
  • In the above steps it was suppose that moceanapi it the name of module directory dropped in the osticket source code.
  • This module uses exactly osticket database and tables, also the database username & password. No need to change anything in the module until and unless you want to customize it

How To Use

Now, if your domain is, you can access module settings in the following link:

  • Please note that it is necessary to have osticket run to be able to access this module. the complete process and module developed based on the PDF you provided and applied to OSticket Try for FREE now. 20 trial SMS credits will be given upon registration. Additional SMS credits can be requested and is subject to approval by MoceanAPI


This is an OS Ticket module to you and your client receive updates on ticket through SMS integration.






No releases published


No packages published

Contributors 4