spud5
Tue Aug 1 2006, 21:39
I'm using Skype4COM to log delivery reports for the individual targets in a group message. If I reference SmsTarget with SmsMessage.Price it only shows the cost of the group message (ie. the total cost).
How can I get the individual costs (ie. the cost per target) ?
scendix_
Wed Aug 2 2006, 00:55
do you get SmsMessage.Price BEFORE sending the message?
cold you post some source snippets how you do that? Thanks
Christoph
spud5
Wed Aug 2 2006, 14:23
You should be able to get the price when a target number is added to the message, but I haven't tested this. I would test by making a handler for SmsTargetStatusChanged and check the value of Message.Price when TSmsTargetStatus=smsTargetStatusAcceptable, if that makes sense.
scendix_
Fri Aug 4 2006, 21:52
i tried this:
SmsMessageClass oSMS = new SmsMessageClass();
oSMS.Body = "test";
oSMS.TargetNumbers = "+170336XXXXX"; // with my real callerID
but i get a COMException on the last line :? .
I really would like to show the cost of the SMS to the user BEFORE he sends it...
Christoph
andreskaasik_
Mon Aug 7 2006, 12:58
I am really sorry but it is NOT possible to get the price for each individual SMS message target now. The only number you get is the total price of all targets.
spud5
Mon Aug 7 2006, 13:23
Thanks Andres, I will make an alternative method of calculation until this option is added to Skype4COM.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.