Support forum
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'.
Regards, Henk
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.
Regards, Henk
10:52 am
Also, is there any way to select the gateway using the SQL connector?
10:22 am
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?
Hello Robert,
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.
Regards, Henk
8:26 am
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: 529
Currently Online:
7 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