Receive sms

Receive sms SearchSearch
Author Message
RED
Unregistered guest
Posted on Friday, January 02, 2004 - 02:30 pm:   

1. Receiving sms seems to work fine, but how to process received sms messages stored in SMS-IN folder?
Are there any examples in php available about receiving and processing it, just to get started?
2. The next question is that I seem to receive sms in three different formats: .sms , .sar and .in??
How to handle that?
thanx in advance.
RED
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1503
Registered: 10-2002
Posted on Monday, January 05, 2004 - 03:39 pm:   

Hi RED,

I don't have any good examples in this area.

I can say that usually you are not processing files directly from the SMS-IN directory (although you can, if that is easier for you to work with).

Instead, you configure a command (usually an HTTP URL) that gets called every time NowSMS receives a message. NowSMS then calls that URL, passing you information about the message. So your PHP script just needs to parse the parameters that are passed (and the parameter names and format are your choice).

If you are going to work against the files in the SMS-IN directory directly, then I will explain the .SMS, .SAR and .IN files ...

The files are initially received as ".IN" files. It is recommended that you do not perform any processing against these files, as NowSMS will perform some additional processing.

If the message is part of a multipart message, it will get renamed with a ".SAR" extension. The message will stay in this state until the remaining parts of the multipart message are received.

When the message is ready to be processed, it then gets renamed with the ".SMS" extension.
Anonymous
 
Posted on Saturday, February 14, 2004 - 09:55 am:   

Hi
what about file's still have in the extension (.IN or .SAR)

Thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1903
Registered: 10-2002
Posted on Wednesday, February 18, 2004 - 07:50 pm:   

Hi,

A ".IN" file means that it has not yet been processed by the "2-way" command facility.

A ".SAR" file indicates that we have received a partial segment of a concatenated message.

A concatenated message is when a single logical SMS message is sent over multiple physical SMS messages to overcome SMS size limitations. Until all parts of the concatenated message are received, NowSMS will store the parts with a ".SAR" extension.

-bn
joseph
New member
Username: Android16

Post Number: 2
Registered: 03-2004
Posted on Thursday, March 04, 2004 - 12:13 pm:   

hi, can i receive long message via HTTP? say 4,800 sms characters? im using a nokia 9210 communicator to send sms to a wavecom device modem. i already use the vbscript to hold the paramter but it does not accept the message as a whole, rather its concatenated via 160 characters.
pls. help, any suggestions?

ty

Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1963
Registered: 10-2002
Posted on Thursday, March 04, 2004 - 07:49 pm:   

Hi Joseph,

You posted the same question in another thread, and I responded there:

http://support.nowsms.com/discus/messages/1/1901.html

-bn