Closed (fixed)
Project:
SMS Framework
Version:
6.x-1.x-dev
Component:
E-mail Gateway
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
28 Mar 2009 at 23:02 UTC
Updated:
19 Oct 2010 at 10:20 UTC
Jump to comment: Most recent
Comments
Comment #1
mfbSubscribing. FYI, a project I've been working on, Vozmob, has this working in d6 w/ smsframework already, using mailhandler and mailsave to support MMS as well (actual code here).
Comment #2
jordanmagnuson commentedHi, I'm totally new to sms (though not to php, drupal), so please forgive my stupid questions. I'm wanting to set up a site that will process incoming sms messages, and then send dynamic replies back to the originating phone number... will this module you are working on allow me to do that?
I've been looking around for a while trying to figure this whole sms thing out, but it seems that there is currently no supported way to receive sms messages using a drupal site... is this true?
Comment #3
aspope commentedHi David. Yes, SMS Framework is what you need for this.
SMS gateway providers often present HTTP(S) GET and/or POST methods of sending and receiving SMS messages. The SMS Framework provides an abstraction layer for you to interact with many gateways through a common interface, and also provides some gateway-specific translators (Clickatell, Txtlocal at present).
To send a message, you just invoke sms_send() with your fully-formatted mobile number, eg: 447788123123. Note that this must include the country code, and no special chars like "+" or spaces. SMS Framework will use your pre-configured default gateway if you do not specify one on send.
To receive a message, you implement hook_sms_incoming() which will provide you with the sender's mobile number, the message text and an array of extended message data like the number that received the message, a reference code, etc.
Let me know if you need any more assistance, but I'm sure you'll find it pretty straightforward.
~ap
Comment #4
jordanmagnuson commentedThanks for the reply ap. The api does seem straightforward enough... but looking at the supported gateway list, I don't see any D6 supported gateways where incoming messages are supported... that's where I'm confused.
Comment #5
aspope commentedDavid, I see your point. There are two gateway modules that are being reviewed by the project group, that support incoming SMS. You can get them from the posts here:
I would recommend getting the ZIP from the most recent comment post of each.
Let me know if you have any further questions.
~ap
Comment #6
hunmonk commentedmy code for the incoming email gateway has been committed.
@mfb: i think it would be easy enough to also add your work to what i've done, so users would have the option of using either the real-time XML-RPC approach or the mailhandler approach.
this is as far as i'm able to take things at this time, and the functionality is tested and working, so i think we should take any enhancements up in their own issue.
Comment #8
jonmarkgo commentedI would love to see a working version of this, does anyone know if more progress has been made?
Comment #9
schock commentedHey jonmarkgo, we have working incoming sms and mms at http://vozmob.net, using mfb's code: http://dev.vozmob.net/projects/vozmob/repository/entry/html/sites/all/mo...
Comment #10
vishun commentedsubscribing and also re-opening, it seems that this question still lingers and im also interested in helping try to figure out
Comment #11
Anonymous (not verified) commentedfollowing.
Comment #12
hunmonk commentednot sure why this issue has been reopened. the code was committed to add the feature, and it works as advertised -- am i missing something?
Comment #13
Anonymous (not verified) commentedHi hunmonk - Thanks for the reply.
I had originally posted this issue - http://drupal.org/comment/reply/929350 - as a support/documentation request:
vishun noticed the similarities between my post and this thread, so it got moved over here.
Should we pop back to the other issue thread? Or, would you be able to help us out with configuring text replies?
Thanks again for the quick reply!
Comment #14
vishun commentedYes indeed, also I have not been able to figure out how to deal with incoming messages either. I have found this post http://drupal.org/node/363259 but I think part of the confusion, at least for me, is I was expecting to setup something similar to what was required for a Mailhandler / Mailsave setup (which i believe schock may have been trying to link to their integration between SMS framework and Mailhandler / Mailsave) but that link actually doesn't work. I was kinda expecting to fill in an email address, password, etc that it would check and that it could potentially send notifications from, but im also confused as to how it works by just specifying the domain.
Comment #15
hunmonk commentedthis issue was for adding the feature -- if there's some confusion about how to implement the feature, i would either discuss it in the forums, or open a new support request and/or task in this issue regarding help/documentation. it gets to hard to follow issues when they morph from one need to another.
Comment #16
Anonymous (not verified) commentedThanks hunmonk - As you suggest, I've re-opened the support/documentation request. If you or anyone following this knows how to configure the reply-to address using email gateway, please let us know. Even a small nod in the right direction would be much appreciated. Thanks for your help!