/[drupal]/contributions/modules/smsgateway/README.txt
ViewVC logotype

Contents of /contributions/modules/smsgateway/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sat Oct 29 18:04:51 2005 UTC (4 years ago) by therave
Branch: MAIN
CVS Tags: DRUPAL-4-7--1-0, DRUPAL-4-7--1-1, DRUPAL-4-6--1-0, DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-4-6, DRUPAL-4-7
Changes since 1.1: +21 -17 lines
File MIME type: text/plain
Removed debugging of incoming message text and updated documentation.
1 $Id: README.txt,v 1.1 2005/10/22 22:24:14 therave Exp $
2
3 SMSGateway
4 ----------
5
6 This is a module that allows the sending/receiving of SMS messages from/to a
7 Drupal website. You need an account with a SMS Service Provider to make this
8 work.
9
10 Currently the system only provides support for the Clickatell Service Provider
11 and only for HTTP/HTTPS protocol message sending. See Gateway Services below for
12 more details.
13
14 This module only has configuration, logging and self-test functionality. In
15 order to use it as part of your site, you need to adapt your own modules.
16
17 To send a message, call the 'smsgateway_sendmessage' function, with the
18 destination telephone number and the message body text as parameters.
19 The function returns an array with the response from the Service Provider
20 Gateway in the 'response' key, the string used to contact the gateway in the
21 'connectstring' key (used for debugging) and the balance at the start of the
22 transmission under the 'initialbalance' key.
23
24 To send more than one message at a time, call the 'smsgateway_sendmessageset'
25 function, with an array of messages keyed by unique ID (used for tracking the
26 responses) and subarray with the destination number in 'destination_number' and
27 the text of the message in 'message_body'.
28 The function returns an array with the string used to contact the gateway in the
29 'connectstring' key (used for debugging), the balance at the start of the
30 transmission under the 'initialbalance' key and the response from the Service
31 Provider Gateway for each message under the uid key provided.
32
33 The message reception requires requires 'anonymous user' access to be set for
34 the 'receive sms message' permission. Modules that wish to be informed of a
35 newly arrived message should implement the 'smsgateway_newmessage' hook and
36 process the array passed as a parameter with the message parts in the following
37 fields:
38 'account_id' the ID of the account that the message was received on
39 'sender_number' the telephone number of the message sender
40 'destination_number' the telephone number that the message was sent to
41 'timestamp' the timestamp placed on the message
42 'charset' optional character set information for the message body
43 'header' any additional header information
44 'body' the body of the message - the message text
45
46
47 Gateway Services
48 ----------------
49
50 Clickatell - http://www.clickatell.com/
51
52 This provides a good value range of services for low-medium volumes of messages.
53 Registration is straightforward - for the HTTP/S service go to:
54 http://www.clickatell.com/central/login.php?prod_id=2
55 and fill out the form. Currently they give 10 free credits on registration.
56
57 To Do
58 -----
59
60 Add support for the Clickatell bulk message sending to improve the speed of
61 sending multiple messages. Currently the smsgateway_sendmessageset method logs
62 in once, but sends the actual messages using the single message-send protocol.
63
64 Add filtering support for SMS logs and support for autodeletion after a defined
65 period.
66
67 Add support for alternative Service Providers.
68
69 Add support for other protocols, notably the XML method supported by
70 Clickatell.
71
72
73 Special Thanks
74 --------------
75
76 Aleksandar Markovic for providing the Clickatell Service Provider API.
77 http://sourceforge.net/projects/sms-api/
78
79 iMustard.com - http://www.imustard.com - for sponsoring this module.
80
81 --
82 David Hamilton <david dot hamilton at jiffle dot net>

  ViewVC Help
Powered by ViewVC 1.1.2