×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    69

    Problem in monitoring CTelephony::EInProgressCall

    Hi,

    In my application, I am monitoring status of all calls (incoming/outgoing/missed) using CTelephony.
    I have used 1 flag(TBool iIsIncoming) for distinguishing incoming call and outgoing call and set it value as ETrue at CTelephony::EStatusRinging, So whenever call has been disconnected then control goes to Telephony::EStatusDisconnecting and here as per value of iIsIncoming I came to know its direction(incoming/outgoing).
    But problem is that for missed call and rejected call control goes to Telephony::EStatusDisconnecting and in both cases value of iIsInComing is ETrue. In these scenario, is there any other approach to distinguish between missed and rejected call.

    I hope this describes my problem briefly. Any pointer regarding the same will be highly appreciable.

    Thanks in advance.

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,089

    Re: Problem in monitoring CTelephony::EInProgressCall

    May be you might be need to montior the missed calls, and whenevr ther's a missed call, take another variable and make it value ETrue, and now check in the disconnecting status that if that new variable is ETrue, then make your Isincoming variable as EFalse else if the call is rejected then vice versa.For missed Call monitoring follow the link below:

    http://wiki.forum.nokia.com/index.ph...t_missed_calls

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: Problem in monitoring CTelephony::EInProgressCall

    maybe you should have isOutGoing variable instead, and set it ETrue when the status is dialing.. Then I suppose it would work correctly.

  4. #4
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    69

    Re: Problem in monitoring CTelephony::EInProgressCall

    Thanks vineet and Symbianyucca,

    But I m not using approach of CLogClient, because if user has disabled call log(Goto: Log then settings, edit list box and set "No log") then we can not get the details of any call.

    And if I use flag for outgoing call then also case will be conflicting for:
    1. Termination of incoming call without recieving it.
    2. Termination of missed call.
    Or may be I am not getting you Symbianyucca, Can you please give some detail description?

  5. #5
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Problem in monitoring CTelephony::EInProgressCall

    Hi,

    Might be you are not effectivtly using the variable. Set the varible where you are getting the call number for incoming and outgoing and you must ensure there is only one place where you can set the value for this vraible that if the gettting incoming call number is from outgoing/incoming.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Problem in monitoring CTelephony::EInProgressCall

    Quote Originally Posted by shrawan0786 View Post
    Thanks vineet and Symbianyucca,

    But I m not using approach of CLogClient, because if user has disabled call log(Goto: Log then settings, edit list box and set "No log") then we can not get the details of any call.

    And if I use flag for outgoing call then also case will be conflicting for:
    1. Termination of incoming call without recieving it.
    2. Termination of missed call.
    Or may be I am not getting you Symbianyucca, Can you please give some detail description?
    i suggest you log all events from the sequence you can know which is missed call and which is call not attended.

  7. #7
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    69

    Re: Problem in monitoring CTelephony::EInProgressCall

    I think, may be there are some confusion in our understanding, Sorry for not posting proper description from my side.

    There may be 5 cases for monitoring call:
    1. Receive incoming call for some time.
    2. Receive a call and end it immediate (duration approx 0 Sec).
    3. Make an outgoing call.
    4. Missed call.
    5. Cut/Reject incoming call.

    First 4 cases are working fine, and i m setting iIsConnected=ETrue; in CTelephony::EStatusConnected:
    But when we disconnect the call for 5th case then control goes to :
    Code:
    //Set the call direction
    //Failed: Set direction=missed call if user rejected the incoming call, 
    //else working fine.
    if(remotePartyInfoPkg().iDirection==CTelephony::EMobileTerminated)
    {
    	if((callInfoPkg().iDuration.Int()==0) && (!iIsConnected))
    		iCallLogEntry->iCallDirection = CMyCallLogEntry::ECallMissed;
    	else
    		iCallLogEntry->iCallDirection = CMyCallLogEntry::ECallIn;
    }
    else if(remotePartyInfoPkg().iDirection==CTelephony::EMobileOriginated)
    {
    	iCallLogEntry->iCallDirection = CMyCallLogEntry::ECallOut;
    }
    it found missed call even if we have rejected incoming call.

    I hope this time I am able to describe my problem...

Similar Threads

  1. Problem with CAknDoubleStyleListBox with a CAknSearchField
    By jjig in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-17, 00:58
  2. SyncML link problem
    By samuel_ in forum Symbian
    Replies: 4
    Last Post: 2009-03-27, 08:02
  3. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  4. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  5. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

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