The SQL Connector supports a 'Gateway' database field in the 'MessageOut' table where you can put the gateway name, or a list of gateway names separated by semicolons, that can send the message.
For instance, when you want to send a message only with the GSM Modem Gateways 'SIM1' and 'SIM2', you can set the 'Gateway' field of the message to 'SIM1;SIM2'.
Using a separate Connector for each Gateway is the easiest way to set up messages routing in Diafaan SMS Server. But you can also use a script in C#, Visual Basic.NET or PHP to set up a more flexible routing. By default, the Email Connector sets the 'From' field of the message to the email address of the sender of the message and you can use a script to route the messages differently for different 'From' addresses.
You can use a Scripting Gateway with a script in C# or Visual Basic.NET to route the messages and you can also use the HTTP callback functionality in Diafaan SMS Server to call a script on an external web server to change the route of a specific message. Both methods to change the normal routing in Diafaan SMS Server are an advanced feature and require some custom programming.
Also, is there any way to select the gateway using the SQL connector?
So does this mean to say that if I use an 8-port USB Modem, I have to create a separate gateway, and subsequently a separate connector for each port if I want only that SIM to be used?
Diafaan SMS Server does not have a built-in option to route the messages to a specific GSM modem/SIM card depending on the email address. You can set the routing for the Email Connector depending on the destination number of the message in the 'Gateway' settings of the Email Connector. You can find more routing options in the online manual.
The SIM card that received a message can be identified with the phone number of the SIM card. Not every SIM card has stored the phone number but you can override the number from the SIM card with the 'GSMNumber' property in the advanced settings of the GSM Modem Gateway.
If I get something like the 8-port USB modem you guys have listed here, can I change what SIM card is used depending on the email address in the email connector? If not, is there any way at all to select which SIM card is used to send an SMS, and identify which SIM card received the SMS?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 390
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 610