Re: Sending SMS with Rails?

Guido Sohne
Sat, 17 Dec 2005 23:54:59 -0000

Correct. See http://www.windclimber.net/linux/gsm-modem.pcgi for
details on how to do this.

-- G.

On Dec 17, 2005, at 11:48 PM, Joshua Sierles wrote:

> Most SMS gateways let you specify the ''sender'' number,
meaning you can
> rig things so a regular phone can receive messages, instantly
> available via a serial connection to a server. There are a number of
> phones/GSM modems that can be configured for a high send/receive rate
> and may a cheaper alternative to paying for each incoming message (the
> way Clickatell and friends work).
>
> Joshua Sierles
>
> On 12/18/05, Guido Sohne
<guido.sohne-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> Here''s some code I use to send SMS via ClickaTell.
You''ll need to
>> setup and
>> listen on a callback if you want notifications ...
>>
>> From what you want to do, it appears you want to handle INCOMING sms.
>> ClickaTell can let you know that via the callbacks.
>>
>> -- G.
>>
>>   # API format for clickatell
>>   #
>>   #
>> http://api.clickatell.com/http/sendmsg?
>> api_id=xxxx&user=xxxx&password=xxxx&to=xxxx&text=xxxx
>>
>>   def notifyViaSMS(number, message, api, user, password)
>>     result = nil
>>     message = CGI.escape message
>>     request >>
"/http/sendmsg?api_id=#{api}&user=#{user}&password=#{password}&to=#
>> {number}&text=#{message}&from=Rails"
>>
>>     logger "creating SMS thread"
>>     Thread.new(request, number, message) { |r,n,m|
>>       Net::HTTP.start( ''api.clickatell.com'', 80 ) {
|http|
>>         result = http.get(r).body
>>         logger "ClickaTell: #{n}, #{m} => #{result.resp}, #
>> {result.body}"
>>       }
>>     }
>>   end
>>
>>
>>
>> On Dec 3, 2005, at 12:52 AM, eduard wrote:
>> Jim,
>>
>>  I built an application (zaptxt.com) that does exactly what
you''re
>> trying to
>> do, so it''s possible.  Let me know if you still have
questions.
>>
>>  eduard
>>
>> On 10/10/05, Jim Jeffers
<rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote:
>>> I just want the user to be able to send SMS to the system where it
>>> will then identify their account via the phone number the SMS was
>>> received from and add the note to their account.. possibly follow
up
>>> by having the system send a confirmation SMS back.
>>>
>>> - Jim
>>>
>>> On Oct 10, 2005, at 1:27 AM, Francois Paul wrote:
>>>
>>>> Yes, this is possible.
>>>>
>>>> Infact I''ve been working on a sms system for managing
two-way
>>>> marketting/survey campaings.
>>>> I should have version 1 up and running soon.
>>>> If you send me your requirements I can also provide you with
api
>>>> support when i go live.
>>>>
>>>> Jim Jeffers wrote:
>>>>
>>>>
>>>>> Is it also possible to setup a rails application to receive
and
>>>>> process SMS messages based on the phone number they are
received
>>>>> from?
>>>>>
>>>>> - Jim
>>>>>
>>>>> On Oct 9, 2005, at 3:15 PM, Chris Cothrun wrote:
>>>>>
>>>>>
>>>>>> On 10/9/05, Jim Jeffers
<rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote:
>>>>>>
>>>>>>
>>>>>>> Hey guys,
>>>>>>>
>>>>>>> Is it possible to send SMS messages (reminders) to
a
>>>>>>> cellphone with
>>>>>>> rails?  How would you do something like that?  Is
it possible to
>>>>>>> setup an Action Mailer to accomplish this?
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> Many cellphone providers provide an email to SMS
gateway of
>>>>>> sorts, you
>>>>>> can simply email messages to the cellphone
>>>>>>
>>>>>> Here is a list I found somewhere:
>>>>>>
>>>>>> Sprint:
10-digit-number-jdSDcPZFiz+YLwXevFGzQBwHaTl2S5le@public.gmane.org
>>>>>> Verizon:
10-digit-nmber-UBU8Z7KHsBUAvxtiuMwx3w@public.gmane.org
>>>>>> AT&T:
10-digit-number-flG1MjnlNUnTZtABQjzpHg@public.gmane.org
>>>>>> T Mobile:
10-digit-number-aj8q72DIn+rR7s880joybQ@public.gmane.org
>>>>>> Nextel:
10-digit-number-jdSDcPZFiz9V41kd8zv9Y1aTQe2KTcn/@public.gmane.org
>>>>>> Cingular:
10-digit-number-dXm3NGhN7Uvmny37yzbR5jGyq/o6K9yX@public.gmane.org
>>>>>> Alltel:
10-digit-number-uPkaz0FUOsYLnKnQRNZS0dBPR1lH4CV8@public.gmane.org
>>>>>>
>>>>>> --
>>>>>> - Chris
>>>>>> _______________________________________________
>>>>>> Rails mailing list
>>>>>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>>>>>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Rails mailing list
>>>>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>>>>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>>>>
>>>>>
>>>> _______________________________________________
>>>> Rails mailing list
>>>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>>>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Rails mailing list
>>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>>
>>
>> _______________________________________________
>> Rails mailing list
>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>> _______________________________________________
>> Rails mailing list
>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>>
>>