Wednesday, February 3, 2016

Solving the ClickSend message processing mystery

A couple days ago, I was quite baffled as to why one of my programs was not seeing input as it appeared in the ClickSend web app. Today, after perusing my log files, I think I've figured it out.

Some people's phones evidently send a line break at the end of SMS messages. My program looked for keywords in the message, but the line break after the last word made it appear as a word not in the list of keywords. Therefore, it didn't process the message correctly.

I have updated the program to replace CR/LF with spaces before searching for keywords. I will know tomorrow whether that solved the problem.

No comments:

Post a Comment