?

Log in

No account? Create an account
fakesms server - brad's life [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

fakesms server [Apr. 5th, 2006|06:37 pm]
Brad Fitzpatrick
[Tags|, , ]

The cool thing about having an extensible Jabber server/baseclass is that I can crank out crazy Jabber servers in minutes.

For testing LJ's upcoming SMS integration, we needed a way for developers to pretend they were sending and getting SMSes from their developer LJ installs. Also, non-technical employees needed to test, so command-line clients are out. Web stuff is too painful async. Working with carriers/SMS aggregators is 10x more painful than all that combined.

Solution? Jabber server, of course.

I forgot about this until I got a Google News Alert about it:
http://cvs.livejournal.org/browse.cgi/livejournal/bin/fakesms-djabberd

Users log in with username of 5551212 (or whatever phonenumber) and a password of "smstest" (arbitrary), then it's like they have that cellphone, from LJ's point of view.

Here's the server:
http://cvs.livejournal.org/browse.cgi/livejournal/bin/fakesms-djabberd?rev=1.3

The only new code are the two FakeSMS modules:
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/DJabberd/Delivery/FakeSMS.pm?rev=1.1
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/DJabberd/RosterStorage/FakeSMS.pm?rev=1.1

First one delivers messages into LJ (misc/fakesms.bml endpoints, only enabled for developers), and the other one just puts the sms@$SERVER item into users' rosters, to ease testing.

(SMS from LJ to Jabber is handled by the LJ code when $IS_DEV_SERVER)
LinkReply

Comments:
From: evan
2006-04-06 03:26 am (UTC)
(A Google search on [djabberd] brings up friends pages (like http://argv.livejournal.com/friends). Weren't those supposed to be noindex'ed or robotsed out?)
(Reply) (Thread)
[User Picture]From: tijuanacartel
2006-04-06 10:15 am (UTC)
So um, whats your jid?
(Reply) (Thread)
[User Picture]From: brad
2006-04-06 05:07 pm (UTC)
Heh, I'm not actually using Jabber yet. Eventually I will be... it'll be brad@fitzpat.com most likely. But there's no Jabber server running there yet.
(Reply) (Parent) (Thread)
[User Picture]From: levisu
2006-04-07 08:29 pm (UTC)

10 million users! Can We celebatte it by start a new permanent account sales for 24 hours?

10 million users! That's a milestone.
I remember how itues celebated their approaching to 100 million songs, 1 billion songs. It's like a festival.
Can We celebatte the great 10 million users by start a new permanent account sales for 24 hours after we reach the 10 millionth?
God, I wish I had a permanent account!
I wouldn't wish I live for ever cause I only can have one wish.
So I wish I have a permanent account even if you set the price of $200. It's like buying a diamond, permanent and forever.
But when and how I can have this festival?
(Reply) (Thread)
[User Picture]From: haircute
2006-04-08 08:39 am (UTC)
Brad,

This is a great idea and I am super enthused about all the new LJ implemants you and your awesome team are creating. I think this is going to be a shiny and new era for LJ.
(Reply) (Thread)