Processing Binary SMS Messages in NowSMS IN

Processing Binary SMS Messages in NowSMS IN SearchSearch
Author Message
Edsel Ryan
New member
Username: Jarmundsaxtorm

Post Number: 3
Registered: 07-2006
Posted on Tuesday, July 18, 2006 - 03:28 pm:   

I need help. When i look into the NowSMS IN log files, some are tagged as "binary" and some are "text". I believe my program cannot handle those tagged as "binary". My question is

1. Does NowSMS convert those binary messages into text when using the @@SENDER@@ and @@FULLSMS@@??

2. If not, how can i convert it to text?

Please reply Thanks!
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6236
Registered: 10-2002
Posted on Wednesday, July 26, 2006 - 07:19 pm:   

Hi,

It depends on whether those messages are truly binary ... or whether they are actually a text format with some binary attributes.

What is the DCS value? If it is 0 or 8, then these messages are actually a text format with some binary attributes.

In those cases, NowSMS will process the messages, converting them into text for @@FULLSMS@@. (If DCS is 8, then this indicates that it is a Unicode message, and NowSMS will convert to UTF-8 before connecting to your command. If DCS is 0, then this suggests that the message contains some EMS attributes, and NowSMS will strip those attributes and just pass the text to your command.)

If the message is truly binary, NowSMS won't pass it to a 2-way command, unless the command is HTTP based and includes @@BINARY@@ somewhere in the command. (If the command is not HTTP based, or @@BINARY@@ is not in the command string, then the message file will be left behind in the SMS-IN directory.) See http://support.nowsms.com/discus/messages/485/624.html and/or http://support.nowsms.com/discus/messages/1/12414.html.

-bn