It is important that you only replace the single line with the new code. You have probably also replaced the next line in the script with the code and that results in the compile error.
To make sure that you only replace the single line in the script you can load the original 'ClickatellCallbackScript.cs' script in an editor like Notepad and replace the line with the new code in the editor. You can then copy and paste the new script in Diafaan SMS Server. When you use an editor like Notepad, changing the script may be easier and more precise since it is easy to select more text than you intend with built-in scripting editor in Diafaan SMS Server.
You do not have to change anything in the resulting script, if you replace the empty string "" with the IP number of Clickatell the script won't work anymore.
I added the new line and get an line 86 } Expected error. In the "" do I put clickatell IP? That is what I have done. Thanks. Can send screen shot to you?
The empty messages are probably caused by HTTP calls to the script that are not originating from Clickatell. The source of these HTTP calls could be a process on your network but it could also be hacking attempts from the Internet.
The 'ClickatellCallbackScript.cs' script does not filter out these invalid HTTP calls but it is not very difficult to add this functionality to the script. You can just replace the line:
PostReceiveMessage(toAddress, fromAddress, messageText, messageType, messageId, sendTime, receiveTime, pdu);
I now have the scripting gateway working. However I still get these odd messages in that are blank. No sender or message. How can I block those? Also is there a way to play a notification that a new message has arrived back? The client has multiple windows open and would have to monitor closely the inbox. A sound would be sweet, but I can't find an option for that. Thanks so much for your help
The 'ClickatellCallbackScript.cs' gateway script in the Diafaan SMS Server Scripting Pack should compile without errors. It is possible that the default script of the Scripting Gateway is not replaced correctly with the 'ClickatellCallbackScript.cs' and that you have left some (or all) code of the default gateway script intact.
Can you try to remove the whole script from the Scripting Gateway with the key commands CTRL-A and DEL in the scripting editor and then copy and past the clean 'ClickatellCallbackScript.cs' script code back to the Scripting Gateway?
Hello, Im a bit new to the software, and need some help from the community. I have a clickatell account setup for all outbound. Its working perfectly. I am now trying to set up inbound. I have added the clickatell script and ran the compile button and get two errors not mentioned in the instructions.
Unexpected preprocessor directive
Type or name space definition, or end of life expected
I need some help if anyone has set this up. I told the client this was possible and bought the basic licenses. Now I just need some quick help..
Thanks so much..
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 417
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 675