×

Discussion Board

Results 1 to 6 of 6

Thread: outgoing sms

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    10

    outgoing sms

    Hi,

    I would like to develope some application which traces outgoing sms. The application will work in background and some AO object will listen on outgoing sms events. Which API should I choose? Is there any available example?


    Regards,

    john

  2. #2
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    185

    Re: outgoing sms

    See FN SMS example v2. By modifying it a little bit you can observe, for example, the sent items.

  3. #3
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    185

    Re: outgoing sms

    One thing to remimber is the log engine. You can use it to retrieve information also. I can't tell you how "realtime" it is but I don't think there's a big time gap for a send SMS to appear in the log.

  4. #4
    Registered User
    Join Date
    May 2005
    Posts
    10

    Re: outgoing sms

    Thanks for quick answer pkosonen. I tried to use log engine with no success. I set variouse gap time for receiving new event in database but still I got nothing.
    I whould like to see the example code which solved my problem using log engine. Outgoing calls mechanism works like charm but at outgoing sms I stack.

    Regards,

    JM

  5. #5
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    185

    Re: outgoing sms

    Hi, FN has a log example
    http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html

    It shows pretty much all log events.

    In my opinion the capability WriteDeviceData is not needed so self signing is enough.

  6. #6
    Registered User
    Join Date
    May 2005
    Posts
    10

    Re: outgoing sms

    Hi again,

    I have noticed two things. I use HandleSessionEventL method for notification of events from a Message Server session. I handle EMsvEntriesMoved, but this event isn't work in emulator. All sent messages are failed and occured at Outbox, that why my solution won't work. How can I configure emulator to emulate sending sms properly? Nevertheless, solution for outgoing sms I metioned isn't good enought becouse when I disable option for leaving sent items my program won't count outgoing sms anymore. As I metioned, I tried to use logview mechanism but doesn't work properly. Below it is some pseudo output code from AO, maybe I do something wrong.


    void
    MyAO::RunL()
    {

    case TNotify:
    {

    TBool bRet = EFalse;
    iAsyncStatus = TViewLog; // informs observer that

    //refreshes the view for the specified recent event list
    TRAPD (err, (bRet =
    iLogViewRecent->SetRecentListL(KLogNullRecentList,iStatus)) );
    if (err == KErrNone && bRet != EFalse)
    {
    SetActive();
    }
    else
    {
    Notify();
    }
    }
    break;

    case TViewLog:

    // check here what event occured in log database and inform observer
    // and change iAsyncStatus to Idle

    break;
    }

    void
    MyAO::Notify()
    {
    if ( IsActive() )
    {
    Cancel();
    }
    iAsyncStatus = TNotify;
    iLogClient->NotifyChange(0, iStatus); // <- I thing the problem is right here in
    // request notification of changes to the
    // Log Engine database. I set first argument to 1000000 as
    // example shown from nokia forum and no success
    SetActive();
    }

    Regards,

    JM

Similar Threads

  1. Trapping incoming sms done, but this affects outgoing ones
    By acelias in forum General Messaging
    Replies: 2
    Last Post: 2009-08-05, 08:52
  2. Replies: 2
    Last Post: 2007-11-10, 13:19
  3. how to track outgoing sms and call
    By gs_cmans in forum Symbian
    Replies: 0
    Last Post: 2006-04-01, 13:47
  4. How can i track Outgoing SMS
    By pankajmahto in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2005-04-20, 08:02
  5. How to trap outgoing SMS event(KMsvSentEntryId)
    By chavasekhar in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-05-22, 16: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
  •