×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jul 2004
    Posts
    104

    How to count how many SMS actually sent using CSmsClientMtm ?

    Hi all,

    We want to know if there is any way to count how many SMS are actually sent in a long SMS message?



    We used CSmsClientMtm to send SMS. Each SMS should be able to contain 160 characters or 70 UTF8 characters.



    We are using this setting for all messages:

    serviceSettings.SetCharacterSet(TSmsDataCodingScheme::ESmsAlphabetUCS2) ;

    But it seems using our function some messages will send out two messages if there are more than 70 characters. While using the default SMS writer will only send one out.

    But we can’t find any Symbian API to check how many SMSs are actually sent. Is there such API so we can debug easily?

    Thanks,

    Picco

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008
    Posts
    333

    Re: How to count how many SMS actually sent using CSmsClientMtm ?

    you can check the following example.
    http://wiki.forum.nokia.com/index.php/SMS_Operations
    through the following code,you can get the number of sent SMS

    TMsvSelectionOrdering sort;
    sort.SetShowInvisibleEntries(ETrue); // we want to handle also the invisible entries

    CMsvEntry* inboxContext=CMsvEntry::NewL(*iSession,KMsvGlobalInBoxIndexEntryId,sort);
    CleanupStack::PushL(inboxContext);

    CMsvEntrySelection* entries = inboxContext->ChildrenL();
    CleanupStack::PushL( entries );

    TInt msgCount= entries->Count();..

  3. #3
    Regular Contributor
    Join Date
    Jul 2004
    Posts
    104

    Re: How to count how many SMS actually sent using CSmsClientMtm ?

    Thanks for the reply.

    But it seems this code only counts how many messages in a particular folder?

    What I need to know is when I send a long SMS, how many SMS is actually sent from the phone. Like a single long SMS with 200 characters will be broken down to 2 SMS when sending out. I need to somehow check exactly how many SMS are billed by the operator...

    Thanks,

    Picco

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,698

    Re: How to count how many SMS actually sent using CSmsClientMtm ?

    KMsvSentEntryId and ChildrenWithMtmL (with KUidMsgTypeSMS) might be a better choice if you are interested about the number of Sent SMS-s. However the whole concept has a problem: there is a setting "Number of saved messages" in Messaging application (Settings/Other), which controls the number of messages in the Sent folder, and it is not that large by default.
    In particular you can experiment with CSmsPDU::TextConcatenated/NumConcatenatedMessagePDUs (you can get the PDU via the CSmsClientMtm).

Similar Threads

  1. HPSMS Server - Free Nokia CDMA SMS Software
    By hpnasik in forum News and Announcements
    Replies: 2
    Last Post: 2009-02-10, 05:51
  2. Buinding an SMS service
    By hermes_surfer in forum Symbian
    Replies: 11
    Last Post: 2008-09-17, 12:55
  3. SMS Problem
    By GonzalezM in forum Symbian
    Replies: 13
    Last Post: 2008-08-07, 19:42
  4. Need a PHP/HTML script which integrates with SDK and send sms
    By ramanladhani in forum Tools and SDK Feedback (Closed)
    Replies: 2
    Last Post: 2007-01-14, 10:56
  5. Replies: 2
    Last Post: 2002-10-02, 07:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×