Can anyone tell me how to track timestamp of the message when it is sent from SMSC to SMS GW?
smsforum.net archive

Can anyone tell me how to track timestamp of the message when it is sent from SMSC to SMS GW?
In principle SM-TP distinguishes only one time stamp. It shall be set only by SC and it shall not get changed along the way - here is what 3GPP 23.040 says:
1) To identify each SMS-DELIVER sent to an MS in a unique way, a time stamp value is included in the field
TP-Service-Centre-Time-Stamp, TP-SCTS, of the SMS-DELIVER. The time stamp gives the time when the
message arrived at the SC with the accuracy of a second. If two or more messages to the same MS arrive at the SC within one second, the SC shall modify the time stamp of those messages in such a way that:
a) all messages to the MS contain different time stamps;
b) the modification of the time stamps is kept to a minimum.
Thanks for your reply.
But I am looking for the timestamp of SMSC so as to save it in database. SO I need to fetch it in my SMS GW.
I am developing GW in java.
Actually the application is like :
When a message/messages need to be sent from SMS GW to SMSC to Mobile,
the client needs to save the timestamp when the message was actually sent by the mobile network.
SMS GW actually updates the main table in DB like changing message status from NEW to SENT and want to save the timestamp also.
How can I handle this please let me know.
Thanks in advance,
Shweta
ok so the SMSGW is from the SMSC point of view the originator of SMS... then you shall try to seek if the protocol between SMSGW and SMSC has an option how to request/obtain this information... I guess you are using SMPP protocol - I quickly check the PDU repositry but could not find how you could get this information... there is an option to use QUERY_SM command, but with this you get in QUERY_SM_RESP final_date only in case SMS was delivered.. so I guess it is not what you want... maybe you can do some work around: after SUBMIT_SM your client sends QUERY_SM command and if the message_state in the QUERY_SM_RESP is ENROUTE you store local client timestamp - this way you roughly get to know the time when SMS was received by SMSC but not yet delivered.. but definitely you would better ask some SMPP expert..
The timestamp when the message was actually sent from SMSC can be fetched by using Delivery reports. You can set the REGISTERED_DELIVERY in SUBMIT_SM as 1. When you get the DELIVER_SM_RESP from SMSC, you would get the done date as parameter in the string passed.
Unfortunately my issue is still unsolved as I need to update the record for each message in db when the message was actually delivered which would require unique key.
I have asked my SMSC team if they can provide me with the same every time the message is delivered. Lets c. Would post here once resolved.
Recent comments
14 hours 59 min ago
15 hours 27 min ago
18 hours 13 min ago
18 hours 42 min ago
18 hours 49 min ago
20 hours 2 min ago
1 day 13 hours ago
1 day 13 hours ago
2 days 6 hours ago
2 days 13 hours ago