These configuration items are available within the sms module:
# Enable property for SMS GET script driver idm.sec.sms.script.get.enabled # # Login that will be used for composes URL with gateway idm.sec.sms.script.get.login # # Password that will be used for composes URL with gatewat idm.sec.sms.script.get.password # # Script that be used for composes URL idm.sec.sms.script.get.scriptCode # # Timeout for comunication with gatewat idm.sec.sms.script.get.timeout # # Phone number that will be used for overriding all recipient number (can be used for testing) idm.sec.sms.script.get.overrideNumber
It is also necessary to define with sender will be used. These are now available:
If you want to set up one of these senders, create new configuration property:
# sender implementation idm.sec.sms.notification-sender.sms.impl=<sender>
More information about this configuration can be found in configuration.
For a composition of URL for a given gateway, create a script from the System category. As parameters add these variables:
For this script is neccessary add these authorities:
import java.net.URLEncoder; import java.nio.charset.StandardCharsets; def messageEncoded = URLEncoder.encode(message, StandardCharsets.UTF_8.name()); def numberEncoded = URLEncoder.encode(number, StandardCharsets.UTF_8.name()); return "https:/something.tld/example_gateway.php?login=" + login + "&password=" + password.asString() + "&message=" + messageEncoded + "&number=" + numberEncoded + "&someTestAttribute=test123";