How to use Submit Multi method?
Moderator: alt
How to use Submit Multi method?
Hi everyone
I submit messages with SubmitAsync(sms) method.I have thread and inside while(true) I get top 20 messages from database and submit them but thread sleeps 1 second in every submit.So Is there any way to submit all messages at once?I heard there is some method as Submit_Multi and I don't know how to use it.
Any help would be appreciated.Thanks
I submit messages with SubmitAsync(sms) method.I have thread and inside while(true) I get top 20 messages from database and submit them but thread sleeps 1 second in every submit.So Is there any way to submit all messages at once?I heard there is some method as Submit_Multi and I don't know how to use it.
Any help would be appreciated.Thanks
-
- Posts: 1
- Joined: Fri Aug 21, 2009 10:13 pm
- Location: Russia
How to use Submit Multi method
Dear All Im a new user and still no idea how it will be work i mean i have add some pics but i dont know my pictures can see others. many thanks
Surangaj
Surangaj
Hi alt;
I mentioned that I have used SubmitAsync(sms) method.First I'm defining SubmitSm and SubmitSm[]. I put every SubmitSm to array with null message contents.Last in foreach I set array's short message and SubmitAsync(Submit[] sm).
And here I have questions;
1.Is Submit Multi implemented last version(9/9/2009)?
2.In one go Does a Submit Multi counts as 1 tps on SMSC side?
Regards,
Gökay Kaya
I mentioned that I have used SubmitAsync(sms) method.First I'm defining SubmitSm and SubmitSm[]. I put every SubmitSm to array with null message contents.Last in foreach I set array's short message and SubmitAsync(Submit[] sm).
And here I have questions;
1.Is Submit Multi implemented last version(9/9/2009)?
2.In one go Does a Submit Multi counts as 1 tps on SMSC side?
Regards,
Gökay Kaya
Hi alt,
In foreach I add DestinationAddress to List of DestinationAddresses.
After foreach my code is like that;
List<SubmitMulti> sMulti = SmscSpeaker.PrepareSubmit(SubmitMode.ShortMessage, Convert.ToByte(5), Convert.ToByte(0), srcAddr, msisdnList, DataCodings.UCS2, message);
SmscSpeaker.SubmitAsync(sMulti);
Is here any mistake?
Thanks
In foreach I add DestinationAddress to List of DestinationAddresses.
After foreach my code is like that;
List<SubmitMulti> sMulti = SmscSpeaker.PrepareSubmit(SubmitMode.ShortMessage, Convert.ToByte(5), Convert.ToByte(0), srcAddr, msisdnList, DataCodings.UCS2, message);
SmscSpeaker.SubmitAsync(sMulti);
Is here any mistake?
Thanks