Has anyone managed to interface Moodle with SMS, the cell phone text messaging service. There is considerable use of it in the UK and many of our tutors want to be able to contact their students in this way.
Looks great. Do you know the status of the project, is it production ready? I'm very much looking forward to be able to implement something like this.
And here it is! The first version of SMS library for Moodle.
- Janne -
I apologise for this blatant commercial approach!
I represent a text messaging company, 2sms. We have been asked by a UK customer to add SMS to Moodle. Might you consider adding the 2sms SMS web services at http://www.2sms.com/WebServices/1.2/SMSService.asmx?WSDL to your project. Could we work together to build something for the community. While we are a commerical organisation, we could conceptually pass some sales revenue back to Moodle to help support them.
I have developed an integration of Moodle with SMS services. Basically, for now it works with 2 activity modules: forums and choice.
1. Forum module
The administrator or teacher can decide to send a post also via SMS; the SMS is sent only to subscribed users.
3. Choice module
The administrator or teacher can send an SMS to all users who answered a choice question. (We need this one as we use choice for exam subscription, and we like to have the possibility to communicate just-in-time the room and eventual changes in time or date)
I attach a sample of both interfaces.
If you need more info, I can write more.
Yes of course. I have an SMS provider who provides me with a gateway where I pass all the data for SMS post.
Basically, after collecting and cleaning up all the relevant data (students' phone numbers, the text message to send) I pass it to the SMS provider via a fsocket with somethin like this:
$qs = array();
foreach ($smsfields as $k => $v)
$qs = $k.'='.urlencode($v);
$qs = join('&', $qs);
$errno = $errstr = '';
$host='***.***.com'; // I'm hidding here the SMS provider's address
if ($fp = @fsockopen($host, 80, $errno, $errstr,30))
fputs($fp, "POST ".$url." HTTP/1.0\r\n");
fputs($fp, "Host: ".$host."\r\n");
fputs($fp, "User-Agent: PHP/".phpversion()."\r\n");
fputs($fp, "Content-Length: ".strlen($qs)."\r\n");
fputs($fp, "Connection: close\r\n");
$content = '';
$content .= fgets($fp, 1024);
print "<br><br><b>SMS status: " . preg_replace("/^.*?\r\n\r\n/s", '', $content) . "</b>";
If you need me to comment more on this, let me know.
By SMS. I pay 0,045 per each SMS.
This means if I have 50 students subscribed for a forum, and I decide to send an SMS, I pay 2,25.
It's not much, it depends how and what are you using it for .
Besides, maybe in your country there are cheaper providers and better pricing schemes for mass-smsing.
It sound to me like we should urgently (unless I have missed it and we already have) define an interface standard in Moodle for sending (and perhaps for receiving) SMS.
I am thinking of a function call of the form
sendsms($providername, $phonenumbers, $message);
This then forwards the call to a function called send() in a file called
something like sms.php in a folder called $providername in rather the same way that many other exntensible parts of Moodle are handled.
This way, we can each add a module for the sms service provider we use, and module writers can link to SMS through a common interface.
Yes, a root folder seems the obvious place. That's where /rss is.
In hindsight, perhaps there should have been a moodle/interfaces folder to contain rss, sms etc.
I'm not sure that is something you can standardise. As far as I know, different "SMS providers" offer different protocols and ways to send data to their service: some offer just a http access, others use Web services, etc.
So, yes, you can have a proto of the function you suggest, but what's inside pretty much depends on the carrier you're using.
Receiving SMS is a completely different issue. Here you don't need to use an SMS provider. A specific modem is just enough (in poor words: a mobile-phone connected to a server). Then you need to workout the protocol between the modem and the server, but it all depends on what kind of interactivity do you need.
can you tell me your sms provider's name? Is it an Italian Provider?
I'm interested in this solutions for my FaD applications.
2way text messaging can be done one of two ways.
1. GSM modem hanging out the back of a PC. Pay around Euro 100 for a decent one. It will require a SIM card, and a pricing plan. The 2way routing will be to/from the cell phone number of the SIM card. This option is cheap, but slow and unreliable. Commercial service. www.2sms.com or one of our competitors http://www.2sms.com/info.aspx?section=competitors
Expect to pay around Euro 0.10 per message. You can pay less, but you will be using Economy routes (e.g. seriously unreliable).
The reply piece can be done using a 'virtual long number', e.g. a cell phone number that is internet based. You need to choose one with the same country code as your message recipients, otherwise international rates apply. Monthly rental on these numbers ranges from Euro 20 a month for UK numbers to more than Euro 100 a month for some countries.
Code for sending SMS. It varies between suppliers, but a full list of code for the 2sms service is at http://www.2sms.com/software.aspx?Section=Developers incl code for
Web services at http://www.2sms.com/software.aspx?section=WebService and XML gateway at http://www.2sms.com/software.aspx?section=XMLGateway
Even if you don't want to consider a commerical service, drop questions in this thread or at www.2sms.com/forum and I'll try and answer them.
I declare an interest as a commerical SMS provider, working for www.2sms.com.
The interconnect fee that all suppliers face for delivery into the UK is 3p per message. This is what the carriers charge at the wholesale rate. It is true that you can get 'lowe' than this rate if you use a SIM card and a GSM modem, but your throughput will be about 1 message per second. Fine for small batches of messages, but not good for an emergency broadcast. You will also need to be aware of 'fair usage' policies.
If you are looking for reliable non GSM modem delivered messages, with audit trail, ISO27001 certification, and a SLA, then expect to pay in excess of 5p per message. Any less, and the risk truely is in the price, for all but small volume traffic.
(We have some USA University comments at www.2sms.blogspot.com that may be of interest.)
I need your help.
Can you describe the steps I have to do to get this image (module / block) in my moodle?
Now it's me who's late in answering.
If you're still interested, the above code worked for Moodle 1.5, but with few little adaptations, including the hook with the new 1.7+ role-based permission system, it runs (happily) on 1.8 and 1.9.
If you’re still interested, I can provide more information.
(sms gateway and mobile marketing solution sprovider)
228 Park Avenue S
Wapframe is one of the best text messsaging or text voting Mobile Site Builder company and provide too latest and user friendly mobile application.
E-goi has just lunch a Plugin that send email and SMS notifications or campaigns. Take a look it could be useful: http://moodle.org/mod/data/view.php?d=13&rid=4673
Hi everybody, i have a question, i have add a block that allows teachers and administrators to send SMS or notification to one students or group or all class directly from the Moodle course page.
Also i add one block as online Journal allows students to publish thier work online. this block include upload file, authors names and also review proccess is included to make moodle journal like any other online journals which allows the students and the instructors to share thier work with world wide network.is this consider as a contribution? im mean for my project as student or can i take any recommendation form here which can support me in my final presentation?