The plugin provides the ability to send SMS messages over several protocols. Submitting can be done using the API for simple process change handler.
Configuration has to be done depending of using provider.
Required parameters:
sms:type=mts
sms:login=<login>
sms:password=<password>
Optional (with default values):
sms:shortcode=bgerp.org
sms:url=http://mcommunicator.ru/M2M/m2m_api.asmx/SendMessage
Required parameters:
sms:type=tele2
sms:login=<login>
sms:password=<password>
Optional (with default values):
sms:shortcode=bgerp.org
sms:url=https://newbsms.tele2.ru/api/?operation=send
Required parameters:
sms:type=smsc
sms:login=<login>
sms:password=<password>
Optional (with default values):
sms:url=https://smsc.ru/sys/send.php
It is now possible to send messages in the doExpression script of a simple event handling.
onProcessEvent.1.events=statusChanged
onProcessEvent.1.doExpression=<<END
// phone process paramId 86
phone = processParam.getParamPhoneNoFormat(86);
if (phone) {
sms.sendSms(phone, "Your appeal is registered with a number " + process.getId());
}
END
SMS class object org.bgerp.plugin.msg.sms.ExpressionObject with API functions is provided by the plugin.