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
Gateway HTTP CallBack
sp_NewPost Add Reply sp_NewTopic Add Topic
September 4, 2022
5:57 pm
Henk Helmantel
Admin
Forum Posts: 1375
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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.

Regards, Henk

September 4, 2022
2:41 pm
Sarfaraz
Guest
Guests

Hello Henk,

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
Sarfaraz

September 4, 2022
11:14 am
Henk Helmantel
Admin
Forum Posts: 1375
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Sarfaraz,

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.

Regards, Henk

September 3, 2022
2:42 pm
Sarfaraz
Guest
Guests

Hello Henk,

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
Sarfaraz

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 494

Currently Online:
28 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 642

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1067

Posts: 3647

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1375