- Edited
I have made a simple method to Misc class to trigger SMS notification to support staff when new ticket is created.
What makes the method ugly is the scheduling, since we have global support service and the SMS needs to be triggered only to the person on duty that time.
Now I'm checking time of day and based on that allow the sending to numbers based on the international prefixes. The numbers are from the mobile phone field of staff table.
Would be nice to have this kind of feature implemented in the osTicket as native. Group info could then include the scheduling information, like group X will receive the messages 09 - 17 and the group Y 17 - 09 etc... And maybe even some special tag for the weekends.
For sending the messages I use Kannel OS SMS Gateway. You can connect mobile phone to that and it will take care of the message sending to mobile phone. The Kannel provides HTTP API so I just open socket and include the destination number, message etc in HTTP GET parameters.