Wednesday, July 14, 2010

sensr.net now supporting kyivstar sms



At sensr.net we received a request from one of our Ukrainian users asking us to support SMS for his local phone carrier. Luckily we're using a package called sms-fu that makes adding carriers very easy.


Our sms_fu.yml file now has these additional lines, which means our users can select the appropriate Kyivstar email to SMS gateway.
kyivstar-contract:
name: Kyivstar (contract)
value: @sms.kyivstar.net
kyivstar-prepaid:
name: Kyivstar (prepaid)
value: @2sms.kyivstar.net
Of course nothing is as simple as you might expect. We were checking numbers on the user's settings page to make sure the number was legit. Unfortunately, the site was enforcing a US centric format, 212-555-1234. I tried to add a Ukrainian format number and our site rejected it. After changing the model verifier to be more liberal, we then ran our unit tests and found that a few of them failed. We then modified the tests to match the new more liberal phone number format and all is well.

Give sensr.net a try. You can use us to archive, alert, and share your network cameras. Now even from the Ukraine!

Post a Comment