That's a good point.
No, but you can add the number of message parts to one of the status parameters, for instance the StatusText parameter. Then you at least have the information about the number of message parts available in the send log.
So there is no way of updating the MessageParts parameter when receiving the delivery report (as explained in my other thread about our setup)?
As our provider does the splitting into messages server-side, we get the message parts back after the sms is already sent (in the delivery report).
The 'PostSendResultUpdate' method cannot be used to change any of the message parameters in the send log, only the status parameters StatusCode, StatusText, ErrorCode and ErrorText can be updated with the 'PostSendResultUpdate' method.
Thanks for your reply.
I tried and indeed it does work in PostSendResult, like you say, but I now realised I am not getting the messageparts in the POST reply, but I get them in a seperate POST that I receive on my httpserver, meaning I want to update an exisiting entry's messageparts in PostSendResultUpdate. In here, this does not seem to work... The value in the DB does not change
You are on the right track but you have to add the MessageParts property to the message packet in the 'PostSendResult' method, otherwise Diafaan SMS Server does not know which message the MessageParts property refers to.
In the standard Scripting Gateway script you can change the 'PostSendResult' method header to:
string statusText, string errorCode, string errorText, bool sendStatusRequest, int messageParts)
And add the following line in the 'PostSendResult' method (after line 116 in the standard script):
We have an lesser known provider in use to which we use a scripting gateway to POST our messages. In the return from the POST request, we can receive how many parts our message was split into (Our provider handles splitting, encoding and stuff serverside).
How can I use this information to tell diafaan how many messageparts it should log to MessageLog?
My initial guess was to do something like:
Hashtable messagePacket = new Hashtable();
(simplified), where host is the IScriptHost object and messageparts is a string containing the number of part (hoping SQL server handles changing this string to an integer).
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 597
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1263