[Twisted-Python] SMS sending with Python
Hi, my name is Daniel from Spain, and this is my first post here ;-) I've been looking for something in twisted that allows me to send SMS messages through a server, but got no luck until the moment. Could anyone give me a clue to begin? Thank you in advance, Daniel
What is your SMS provider? What protocols are they using? Is it SMPP, CIMD2,
CSP?
On Dec 18, 2007 4:51 PM, Daniel Marfil
Hi, my name is Daniel from Spain, and this is my first post here ;-) I've been looking for something in twisted that allows me to send SMS messages through a server, but got no luck until the moment. Could anyone give me a clue to begin?
Thank you in advance,
Daniel
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
You can just send emails to most providers
http://en.wikipedia.org/wiki/SMS_gateways
(section "Email to SMS")
I am not sure you even need Twisted for that, you could just have a for loop
sending emails I suppose...
From: twisted-python-bounces@twistedmatrix.com
[mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Alvin Delagon
Sent: Tuesday, December 18, 2007 1:22 AM
To: Twisted general discussion
Subject: Re: [Twisted-Python] SMS sending with Python
What is your SMS provider? What protocols are they using? Is it SMPP, CIMD2,
CSP?
On Dec 18, 2007 4:51 PM, Daniel Marfil
So far there's no free available SMS Gateway protocol implementation in
python if you search through the net (there is one called pySMPP but isn't
maintained anymore. You can download it to have an idea).
I strongly recommend twisted-python in writing an SMS gateway
implementation. It's a very powerful tool once you tame it as long you have
in-depth understanding of what protocol you're going to implement (kudos to
twisted-python developers). :)
Just some advice to help you get going:
CIMD2 (Nokia)- can be implemented by twisted.protocols.basic.LineReceiver
CSP (Terabyte)- is just an exchange of http posts so it can be implemented
by twisted.web
SMPP (mBlox)- is packet based twisted.internet.protocol.Protocol + struct
will do the trick.
Some telcos might provide a different protocol though but these three are
the popular ones.
On Dec 18, 2007 6:01 PM, Alec Matusis
You can just send emails to most providers http://en.wikipedia.org/wiki/SMS_gateways (section "Email to SMS")
I am not sure you even need Twisted for that, you could just have a for loop sending emails I suppose...
From: twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Alvin Delagon Sent: Tuesday, December 18, 2007 1:22 AM To: Twisted general discussion Subject: Re: [Twisted-Python] SMS sending with Python
What is your SMS provider? What protocols are they using? Is it SMPP, CIMD2, CSP?
On Dec 18, 2007 4:51 PM, Daniel Marfil
wrote: Hi, my name is Daniel from Spain, and this is my first post here ;-) I've been looking for something in twisted that allows me to send SMS messages through a server, but got no luck until the moment. Could anyone give me a clue to begin? Thank you in advance,
Daniel
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Thank you very much for your help, Alvin and Alec, I've been having a look at your links and looks like a great starting point ;-) Alvin Delagon escribió:
So far there's no free available SMS Gateway protocol implementation in python if you search through the net (there is one called pySMPP but isn't maintained anymore. You can download it to have an idea).
I strongly recommend twisted-python in writing an SMS gateway implementation. It's a very powerful tool once you tame it as long you have in-depth understanding of what protocol you're going to implement (kudos to twisted-python developers). :)
Just some advice to help you get going: CIMD2 (Nokia)- can be implemented by twisted.protocols.basic.LineReceiver CSP (Terabyte)- is just an exchange of http posts so it can be implemented by twisted.web SMPP (mBlox)- is packet based twisted.internet.protocol.Protocol + struct will do the trick.
Some telcos might provide a different protocol though but these three are the popular ones.
On Dec 18, 2007 6:01 PM, Alec Matusis
mailto:matusis@yahoo.com> wrote: You can just send emails to most providers http://en.wikipedia.org/wiki/SMS_gateways (section "Email to SMS")
I am not sure you even need Twisted for that, you could just have a for loop sending emails I suppose...
From: twisted-python-bounces@twistedmatrix.com mailto:twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Alvin Delagon Sent: Tuesday, December 18, 2007 1:22 AM To: Twisted general discussion Subject: Re: [Twisted-Python] SMS sending with Python
What is your SMS provider? What protocols are they using? Is it SMPP, CIMD2, CSP?
On Dec 18, 2007 4:51 PM, Daniel Marfil
mailto:dmarfil@citic.es> wrote: Hi, my name is Daniel from Spain, and this is my first post here ;-) I've been looking for something in twisted that allows me to send SMS messages through a server, but got no luck until the moment. Could anyone give me a clue to begin? Thank you in advance,
Daniel
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com mailto:Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com mailto:Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
------------------------------------------------------------------------
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Tue, 2007-12-18 at 09:51 +0100, Daniel Marfil wrote:
Hi, my name is Daniel from Spain, and this is my first post here ;-) I've been looking for something in twisted that allows me to send SMS messages through a server, but got no luck until the moment. Could anyone give me a clue to begin?
In the US at least you can send SMS messages using AIM (so, using the twisted.words.protocols.oscar module), though that means less control over formatting. And they'll stop accepting messages if you send too many, probably. For personal use, however, and assuming it works in Spain, that's an easy way to go (send a message to +<countrycode><phonenumber>, e.g. +15551234567)
On Tue, 18 Dec 2007 09:51:40 +0100
Daniel Marfil
Hi, my name is Daniel from Spain, and this is my first post here ;-) I've been looking for something in twisted that allows me to send SMS messages through a server, but got no luck until the moment. Could anyone give me a clue to begin?
Well, I'd try sending SMS via web - through an official web gate. Some networks have simple web pages, thus they allow you to send SMS by simply sending a GET or POST request via HTTP. Some networks, instead, use some complicated javascript as a mean of security by obscurity (captcha included) - http://sms.idea.pl, for example - I'd try PBP (Python Browser Poseur; http://pbp.berlios.de ) or twill or similar utilities. PBP uses Twisted. ... but, Twisted supports serial ports, so feel free to plug in your phone and hack :) -- m
participants (5)
-
Alec Matusis
-
Alvin Delagon
-
Daniel Marfil
-
Itamar Shtull-Trauring
-
Michał Pasternak