Outgoing messages trigger a 'message_out' HTTP callback that is sent by the connector. The 'message_out' HTTP call has a 'gateway' parameter if it is set in the message, if the message has an empty gateway parameter it is not used in the HTTP query of the 'message_out' HTTP callback.
In the SQL Connector you can use the 'Gateway' database field to specify which gateways are allowed to send the message. This can only be a subset of the gateways that are set in the routing (Gateways) settings of the connector. For instance, if your SQL Connector can send messages to Gateway1, Gateway2 and Gateway3, you can set the 'Gateway' field of the message to 'Gateway1;Gateway2' so that this specific message can only be sent with Gateway1 or Gateway2. For this message the 'message_out' HTTP callback will also have a 'gateway' parameter that is set to 'Gateway1;Gateway2'.
If the 'Gateway' field in the database is empty, the HTTP callback will not have a 'gateway' parameter for that specific message.
Thanks for the quick turnaround.
We tried using it but looks like the Message In callback is not working. Is the message in callback only for incoming messages or also for the out going messages from that particular gateway? We need to achieve the below please suggest what needs to be done.
We have a SQL Connector in the MessageOut table we setup the Gateway name so the messages are send from that gateway. Before it is actually sent out from that gateway we want to append some data to the TLV parameters hence we are trying to use it from the message in on gateway level. We don't want to do it for all the messages coming in the SQL Connector only for certain messages which are going through that particular SMPP gateway.
Please share your thoughts.
Thanks in Advance
The gateway name of the gateway that received the message is available in the 'source' parameter of the 'message in' HTTP Callback call. The source parameter always contains the name of the gateway or connector that triggers the HTTP callback call.
I have updated the online manual with a correction of the error.
Hope you are doing well.
As per the HTTP CallBack doc it says, The message in callbacks are sent from each individual gateway, just before the message is added to the message queue of Diafaan SMS Server. In this there is no option to find which gateway has made the callback. Is there any parameter which tells us the gateway name.
Please let us know how we know that a particular gateway has made a callback and how can we use this.
Thanks in advance.
Have a great weekend
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 642
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1375