Version 0.9.5.2 adds two additional plugin in tools, they are: pvat and xlate. Both new plugin demonstrate how to intercept an incoming SMS and do anything we need with that, and of course returns something we want. First plugin, pvat, will intercept incoming SMS and scan for special format @<username> <messages> and then modify it to become PV <username> <messages>. Once done intercepting, pvat will returns that modified message to core function that actually handle SMS.
For example, a sender sent a message to playSMS 0.9.5.2, a message like this: @anton dude your application works. The plugin will scan and process it, change the message to: PV anton dude your application works. Once modified and returned to core function, the rest of the process is to handle a PV message, that is to save the message in username\’s inbox and forward it to username\’s email, in this case the username is anton.
Second plugin, xlate, will intercept incoming SMS and scan for special format: @<from language>2<to language> <words/sentences>. For example, a sender want to quickly translate \”I love you\” to Italian phrase. In this case sender should send SMS to playSMS 0.9.5.2 like this: @en2it I love you. Once received and intercepted, xlate will utilize Google Translate to translate \”I love you\” to Italian phrase, and returns \”Ti amo\” to sender.
More example to come 🙂
Important changes in playSMS 0.9.5.2 is actually date/time adjustment. A timezone settings is added to this version to overcome problems when an SMS gateway is not in the same location (or timezone) with playSMS. For example, if you use default kannel like from most distros, kannel will handle all date/time as GMT+0 timezone, which mean playSMS will receive SMS in GMT+0 as well. This situation is not what most playSMS users wanted.
Continue reading “playSMS version 0.9.5.2 has been released”