Support forum
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
12:38 am
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
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
6:27 pm
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
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
12:18 pm
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?
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 HelmantelAdministrators: Henk Helmantel: 1517