We have not tested the Portech MV-374 with Diafaan SMS Server, only the Portech MV-370, and I can't give you much information about the use of the Portech MV-374 device.
In general, Diafaan SMS Server must be able to log in to the Portech modem with a telnet connection and send AT commands to use the device. Your log shows that the telnet connection to port 8023 does not give a 'login' response when Diafaan SMS Server opens the connection. You can try to use a telnet program like PuTTY to set up manual connections to the Portech MV-374 modem ports to see which ports work and whether opening multiple concurrent connections to the device work as well as a single connection.
Thank you so match for your answers, the script works very well. -_-
I have change (",") by (";") on the script
I have use 2 colums in my CSV file(A and B) because it is already with semicolon format.
Result: The script sent all of the sms in the csv file using the 8123 port of my prothech MV-374 gateway whitch support 2 modules=4 SIM cards .
Furthermore, when i want use the 8023 port (second port), by adding another GSM modem, i receive the following message by "show logs":
- Open port: TCP/IP:115200,n,8,1:10.43.11.203:8023
- Port closed
Do you now how i can send the sms using two port together ? in order to use 4 SIM cards.
Thank you for your reply
The most likely reason for this behavior is that the format of the CSV file is not what the script expects. Each line in the CSV file should contain
two fields, separated by comma's. The first field is the destination number and the second field is the text of the message. The field should be quoted if it contains reserved characters like the comma or a new line character. E.g.:
Your post suggests that you use the semicolon (';') as the field separator. It is possible to use the semicolon but you'll have to change line 47 of the script to 'parser.SetDelimiters(";");' to change the field separator character.
I have tested the SendMessagesFromCSVFile.cs script.
The script removes the CSV file but don't send the messages list to the recipients (column 1: mobile numbers;column 2: corresponding text message).
Thank you for your help
Thanks Henk. I will try this solution.
Using an SQL Connector with a multi-user database like Microsoft SQL Server (Express) or MySQL is the best way to send different messages to a list of numbers with Diafaan SMS Server. The SQL Connector will read the records from the database, remove the records and send the messages one by one with the GSM modem or SMPP connection.
There is another solution if you really want to use a .CSV file, but it requires using (and perhaps changing) a C# script:
I have added a script to the Scripting Pack for Diafaan SMS Server that reads in a .CSV file from a specific location and sends a message for each row in the .CSV file.
To use the script, add a new Scripting Connector, replace the default script with the 'SendMessagesFromCSVFile.cs' script from the Scripting Pack and (optionally) change the 'csvFileName' parameter in the script to the full path and file name you want to use. You can then take a .CSV file, move or copy it to the specified location and the script will automatically read the information from the file, remove the file and send the messages.
How should I send different messages to multiple users? Can we develop an SQL connector to fetch from tables and send by SMS. Is there any better solution than this?
Diafaan SMS Server does not have an import feature to import a list of messages from a .CSV file and put them in the message queue.
Can I give a input as CSV which has one column contact info (Mobile number) and next column have the messages to send. Is it possible to load and send in single shot?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 474
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 852