| fakesms server |
[Apr. 5th, 2006|06:37 pm] |
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) |
|
|
| Comments: |
![[User Picture]](http://l-userpic.livejournal.com/9624370/1571) | From: evan 2006-04-06 03:26 am (UTC)
| (Link)
|
![[User Picture]](http://l-userpic.livejournal.com/54541970/2) | From: brad 2006-04-06 05:07 pm (UTC)
| (Link)
|
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.
![[User Picture]](http://l-userpic.livejournal.com/43796384/9882077) | 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? | (Link)
|
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?
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. | |