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
Diafaan and HLR
sp_NewPost Add Reply sp_NewTopic Add Topic
August 3, 2018
10:45 am
Henk Helmantel
Admin
Forum Posts: 1517
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

The message ID is generated in the gateway, if you use the Scripting Gateway to send the message then the script must create a unique message ID and use this in the calls to 'PostSendResult' and 'PostSendResultUpdate'.

However, if you use the 'PostDispatchMessage' method in the script it does not make much sense to call the 'PostSendResult' and 'PostSendResultUpdate' methods. The 'PostDispatchMessage' method dispatches the message to another gateway (or a list of gateways) and the gateway that is sending the message is responsible for creating the message ID and post the send result back to the connector.

Regards, Henk

August 3, 2018
12:38 am
Iliyan
Guest
Guests

Hello Henk,

How do we get messageId?
Example:
1. We send message with PostDispatchMessage
2. We send delivery report with PostSendResult (using recordId, and empty messageId)
3. We would like to update status with PostSendResultUpdate, but we can't, as we don't have messageId in OnMessageToSend

July 31, 2018
3:54 pm
Henk Helmantel
Admin
Forum Posts: 1517
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Diafaan SMS Server only routes the delivery reports (DLR) that it receives from the SMS services back to the sender of the message. It does not generate any (intermediate) DLRs itself.

With both options, Diafaan SMS Server will send the delivery reports that it gets back from the iQsim to the original sender of the message. This is independent of the call to the HLR lookup service.

Regards, Henk

July 30, 2018
6:27 pm
ILIYAN
Guest
Guests

Hello Henk,

Thank you for fast response. Tell me just after number lookup can i forward that dlr to sender of message and send message to list of gateways.

Regards, Iliyan

July 30, 2018
2:28 pm
Henk Helmantel
Admin
Forum Posts: 1517
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Iliyan,

Diafaan SMS Server does not have built-in support for HLR lookup services but the basic- and full editions of Diafaan SMS Server offer two possibilities to implement this functionality using a script.

The first method is to use a Scripting Gateway with a C# or Visual Basic.NET script that performs the hlr lookup and then forwards the message to a (list of) other gateway(s) or not.

The second method is to use the HTTP Callback functionality of Diafaan SMS Server to execute a web script or local PHP script that performs the hlr lookup and blocks or approves the message in the result of the script.

Regards, Henk

July 29, 2018
12:18 pm
ILIYAN
Guest
Guests

Hello, we are using trial version of Diafaan and iQsim gsm gateways. We need to use HLR service and forward their delivery reports for messages. Like we receive over smpp message for +31682118182 and we need first to check is that number active or no with API in format https://www.hlrlookup.com/api/hlr/?apikey=uDOS23jfdssdfdf3t5egrdfoqBHa&password=$password&msisdn=$msisdn after their response if receive that number is online and status delivered we wanna send message to one of available gateways if not to send their status undeliverable and not send message to gateway. Is this possible with diafaan and how?

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 681

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1160

Posts: 3961

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1517