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.
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?
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.
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: 494
Currently Browsing this Page:
Guest Posters: 575
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1188