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
Send SMS to a number through the same gateway.
sp_NewPost Add Reply sp_NewTopic Add Topic
June 29, 2020
11:31 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Using the MessageLog.sqlite database is not a viable option, but you can create a new database with fields for the destination number and gateway name and use the 'message_out' HTTP callback function in the PHP script to look up the number for each call in the database.

If there is a match, you can set the 'gateway' field in the response. If there is no match, you can assign one of the gateways, add the number/gateway combination to the database and also set the 'gateway' field in the response.

Regards, Henk

June 26, 2020
10:38 pm
Gonzalo L.
Guest
Guests

Perfect Hank, we are currently using the HTTP CALLBACKS to modify the text of the messages by PHP, can you guide me how to use the Database to consult the saved messages? from here? can I do it with the MessageLog.sqlite file?

June 26, 2020
8:02 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Gonzalo,

Diafaan SMS Server does not have a standard function to do this. You can use the routing options to route specific blocks of numbers to specific gateways but there is no function to remember the gateway of each number and use only that gateway to send subsequent messages.

It is possible to use the HTTP callback function for this but that requires some scripting and using a database to store the routing history of each number.

Regards, Henk

June 26, 2020
7:02 pm
Gonzalo L.
Guest
Guests

Hi Henk, how are you? I recently bought the license and I was wondering if there is any option that allows messages to be sent through the same gateway to a number.

For example, if they send 10 sms to the number 1111, I need it to always leave through the same gateway, can I?

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: 672

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1141

Posts: 3899

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1488