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.
How do we get messageId?
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.
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.
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.
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: 494
Currently Browsing this Page:
Guest Posters: 583
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1204