What this solution does
The askaron.sms module allows you to select an SMS sending service in the main module settings and test functionality without actual message delivery. The standard Bitrix 'Message Service' module (messageservice) must be installed for proper operation.
The module is primarily designed for debugging site functionality without real SMS transmission and for enabling SMS sending capabilities in 1C-Bitrix for legacy extensions that do not support this natively. The module itself does not send messages; instead, it acts as an intermediary utilizing the capabilities of other modules and provides an additional administrative interface.
With this module, you can:
- enable or disable SMS sending (important for test sites);
- log messages to a file;
- record sent and unsent SMS entries in the event log;
- specify a custom SMS sending function if one was previously used on the site;
- switch between third-party modules for SMS delivery.
Supported third-party modules:
SMS4B (rarus.sms4b)
SMSC.RU (smsc.sms)
SMSBiz (bizsolutions.sms)
SMS Notifications (bxmaker.smsnotice)
SMS sending capability from custom code or modules:
The "Askaron SMS Sending Function" module provides a method for sending messages via the Askaron service. To use it, the module must be loaded via \Bitrix\Main\Loader::includeModule.
Example of the send method call:
\Askaron\Sms\Send::send( "79000000000", "Hello World!" );
The method returns true on successful delivery or false if an error occurs. Some third-party modules allow displaying an error text description after a failed SMS send.
This functionality is used in the "Free Space and Backup Control" module to send notifications when disk space is exhausted or when a backup process completes with an error.
For the “SMS sending function. Askaron” module, General iT can perform installation, configuration and a functional check in your project.