Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Show replies to the user
sp_NewPost Add Reply sp_NewTopic Add Topic
February 24, 2024
3:34 pm
Henk Helmantel
Admin
Forum Posts: 1502
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

February 24, 2024
3:28 pm
Henk Helmantel
Admin
Forum Posts: 1502
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

February 24, 2024
11:01 am
Andre du Preez
Guest
Guests

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

February 24, 2024
10:58 am
Andre du Preez
Guest
Guests

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

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 677

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1149

Posts: 3928

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1502