changeset 170:646b770eb1c3

Created wiki page for mod_sms_clickatell through web user interface.
author phil.stewart@gmail.com
date Thu, 24 Mar 2011 20:20:15 +0000
parents 799524731e7a
children c9bd647b287d
files mod_sms_clickatell.wiki
diffstat 1 files changed, 42 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mod_sms_clickatell.wiki	Thu Mar 24 20:20:15 2011 +0000
@@ -0,0 +1,42 @@
+#summary XMPP to SMS gateway using the Clickatell API
+#labels Stage-Alpha
+
+= Introduction =
+
+This module provides and SMS gateway component which uses the Clickatell HTTP API to deliver text messages. See clickatell.com for details on their services. Note that at present, this is entirely one way: replies will either go nowhere or as sms to the source number you specify.
+
+= Configuration =
+
+In prosody.cfg.lua:
+
+{{{
+Component "sms.example.com" "sms_clickatell"
+	clickatell_api_id = [api id]
+	sms_source_number = [source number]
+	sms_message_prefix = "some text"
+}}}
+
+The clickatell_api_id is a number which is your Clickatell HTTP API ID. In future this will likely be migrated out of config in to component
+registration.
+
+The sms_source_number is the mobile number you want messages to 'originate' from i.e. where your recipients see messages coming from. This should really be per-user configurable, so again will be moved tp component registration in future. The number should be in international format without leading plus sign, or you can use some other format if clickatell supports it.
+
+The sms_message_prefix is a piece of text you want prefixing to all messages sent through the gateway. For example, I use the prefix "[Via XMPP] " to indicate to recipients that I've sent the message via the internet rather than the mobile network. Since my primary use case for this component is to be able to send messages to people only reachable via mobile when I myself only have internet access and no mobile reception, this option allows me to give a hint to my recipients that any reply they send may not reach me in a timely manner.
+
+= Usage =
+
+Once you've installed and configured, you should be able to use service discovery in your XMPP client to find the component service. Once found, you need to register with the service, supplying your Clickatell username and password (in future service registration will also include the API ID and the source number).
+
+To send text messages to a target number, you need to add a contact in the form of [number]@sms.example.com, where [number] is the mobile number of the recipient, in international format without leading plus sign, and sms.example.com is the name for the component you configured above. For example:
+
+447999000001@sms.yourdomain.com
+
+You should then be able to send messages to this contact which get sent as text messages to the number by the component.
+
+= Compatibility =
+
+||0.7||Works||
+
+= Todo =
+
+  * Move API ID and sms source number out of config and in to component registration
\ No newline at end of file