Support forum
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
10:38 pm
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?
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
7:02 pm
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?
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 HelmantelAdministrators: Henk Helmantel: 1488