The source code for the script is valid, I have just tested it to be sure that it works with the latest version of Diafaan SMS Server and it should work without any changes to the source of the script.
If the text file is deleted it means that the script is sending a message to the send queue of Diafaan SMS Server, not necessarily a message that can be sent out with one of the gateways but the message must at least be visible as a sent or failed message in the send log of Diafaan SMS Server.
I am using Scripting Connector C# with the sample code BasicTextInputAndOutput.cs to handle the sending/receiving of SMS messages via input and output txt-files. When I add a txt-file to the out-folder, the file is deleted almost immediately, so I assume that it is processed by the enabled script. Nevertheless I don't receive an SMS-message and I also cannot find any logging about it.
I checked the sourcecode and I see that the host var is initialized as null. Do I have to change this value to have the SMS messages effectively sent ?
I've solved my problem. It was caused by a bad copy. Not all original lines of the default code were removed before copying the new code.
I'm preparing the migration from our old DIAFAAN Oproep voor Netwerken installation to SMS server.
I have installed DIAFAAN SMS Server and want to send SMS messages, triggered by input files, and start postmessage processes triggered by output files.
I have activated Scripting connector for C# code and copied the code from the default script BasicTextInputAndOutput in the Editor of SMS server without changing the code.
Compile gives some errors on IScript and IScriptHost.
I do not succeed to Activate the script because of the errors.
How can I solve this ?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 597
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1263