Support forum
Andre du Preez said
The PostReceiveMessage function accepts a messageId, that does not show up anywhere in the database. What is this for?
The message ID for received messages does not really have a function. SMS messages themselves do not have a message ID but some internet based SMS service providers provide a message ID with received messages and it is stored in the Receive Log of Diafaan SMS Server.
The message ID for received messages is not stored in the SQL database. If you have an application in mind where this could be useful then we can add it to a future version of Diafaan SMS Server.
Regards, Henk
Hello Andre,
The SMS system does not support the reply or conversation concepts, each message stands on its own and there is no 100% secure way to connect a response to an earlier message. Normally this is not a problem because SMS messages are meant to be sent from one phone to another and messages can be grouped by sender/receiver number to show them as conversations. But this does not work when received messages could be a response to a previous message from multiple users, as can be the case with Diafaan SMS Server.
The Web Connector in Diafaan SMS Server has an option to forward the received message to the last user that sent a message from the same Web Connector to the same phone number. The Web Connector keeps a list of recipient numbers of previously sent messages and matches the sender number of a received message to a specific user. This is not 100% reliable but it works most of the time. It does not work when the original message is sent from another connector, like an SQL Connector or another Web Connector. The Email Connector has a similar function to forward received SMS messages to a specific email address.
If you want to use another way to forward messages to a specific user you have to implement your own system that stores the recipient number of the outgoing message and matches it with the sender number of a received message to forward it to a specific user.
Regards, Henk
11:01 am
Also while Im on the subject:
The PostReceiveMessage function accepts a messageId, that does not show up anywhere in the database. What is this for?
Kind regards
10:58 am
Hi Henk
Following your advice, I implemented a scripting gateway that handles replies and delivery reports. Thank you very much.
I also use a SQL connector so the replies are stored in the MessageIn table and that's great. My service provider also provides a repliedToMessageId in the POST message that I store in MessagePDU. My thinking is that, in theory, it should make it easy to relate the reply to the original message and the sender of the original message.
I tried adding a userid and username in the UserID field of the reply hoping that the message would show up in the Receive Log or Inbox (when using the web gui), but that does not seem to work the way I hoped.
I also set the option to send replies to the last user that sent a message to that number, but that also did not work.
How do I show replies to the intended user?
Your kind assistance is as always appreciated.
Kind regards
Most Users Ever Online: 529
Currently Online:
1 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 680
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1156
Posts: 3946
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1511