Getting sent time of received SMS

Getting sent time of received SMS SearchSearch
Author Message
Andrew
New member
Username: Norcis

Post Number: 1
Registered: 06-2014
Posted on Tuesday, June 10, 2014 - 11:46 am:   

Is it possile to get sent time from inboud SMS messages, using GSM modem (not time when NowSMS received it, but when customer sent it)? This data is encoded in SMS and somehow needed to be get when processing 2-way SMS to filter receiving delayed SMS (e.g. operator delayed SMS for 2 hours and it should be processed differently based on sent time).
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4923
Registered: 08-2008
Posted on Tuesday, June 10, 2014 - 02:09 pm:   

Hi,

Only with a GSM modem (and not with the Android modem), as other interfaces typically do not report this information. See the list of replaceable parameters available in 2-way commands here: http://www.nowsms.com/doc/2-way-sms-support

--
Des
NowSMS Support
Andrew
New member
Username: Norcis

Post Number: 3
Registered: 06-2014
Posted on Wednesday, June 11, 2014 - 05:57 am:   

Documentation says: @@MSGTIME@@ - Time at which the message was received by NowSMS in HHMMSS format.

What I understand from it, that @@MSGTIME@@ will not be set with sent time reported by GSM modem, but only time when it was processed by NowSMS?

Could you check and confirm it? It's little hard to test delayed SMS so need to know does NowSMS has such functionality before trying.}
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4929
Registered: 08-2008
Posted on Wednesday, June 11, 2014 - 02:56 pm:   

Hi Andrew,

Sorry, I thought that page had been updated.

When SMS messages are received via a dedicated (non-Android) GSM modem, NowSMS preserves the SMSC time stamp, and returns this time value for the 2-way command place holders @@MSGDATE@@ and @@MSGTIME@@.

This applies to all versions since 2011.11.14.

--
Des
NowSMS Support