Sipgate SMS Plugin
Dependency :
compile ":sipgate:1.0.2"
Summary
A plugin, which provides an easy way to send SMS via the XMl-RPC API of the SMS-Gateway, sipgate.de, sipgate.com
Installation
grails install-plugin sipgate
Edit account-data-placeholders in 'conf/Config.groovy'
grails.plugins.sipgate.username = 'YOUR_USERNAME' grails.plugins.sipgate.password = 'YOUR_PASSWORD'//According to E.164, e.g. '4922112345678' grails.plugins.sipgate.phoneNumber = 'YOUR_PHONE'
Description
Overview
This plug-in allows you to send SMS via the SMS-Gateway sipgate.de (Germany) or sipgate.com (US) or http://www.sipgate.co.uk/. There might be even more Gateways for other countries available. Check out the sipgate-Homepages. You can send the SMS worldwide. Check out the transfer-charges depending on the given registration-country.Usage
- First of all, you have to have a sipgate user account with a username/password.
- Make sure you have a 'conf/Config.groovy' file, which can hold your sipgate-account-data.
- Install plugin
- Be aware that sipgate has updated it's security policies. If you get a 403 ERROR in your logs, go to the sipgate homepage and generate a new password.
Edit account-data-placeholders in 'conf/Config.groovy'
grails.plugins.sipgate.username = 'YOUR_USERNAME' grails.plugins.sipgate.password = 'YOUR_PASSWORD'//According to E.164, e.g. '4922112345678' grails.plugins.sipgate.phoneNumber = 'YOUR_PHONE'
Inject the 'sipgateService' and send a SMS
def sipgateServicedef phoneNumber = '4917712345678' //phoneNumber according to E.164 specification //working alternative: def phoneNumber = '+1-719-555-1234'def result = sipgateService.sendSMS(phoneNumber, 'This is my Text to send!')result? println 'Sending Successful': println 'Sending failed'
Release 1.0.2
- improved Install.groovy with more checks
- Sipgate phoneNumber must be given in Config.groovy in order to set the 'addressor' (the API-Call is done right, but right now sipgate has problems using this API-Call. So you will still have 'sipgate' as addressor. When the Sipgate-Server-API works again, this should automatically work.
Release 1.0.1
- broken, use 1.0.2 instead
Release 1.0.0
- Service can send SMS
- Default sender in SMS is called 'sipgate'