.NET Components for Mobility

CallDetails.Outgoing is always set to true??

Last post 08-08-2008 3:58 AM by PeterFoot. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-07-2008 7:49 PM

    CallDetails.Outgoing is always set to true??

     Hi Peter,

    I am evaluating version 3.2 of InTheHand on Windows Mobile 5 Smartphone device and came across what I think is a bug unless I am missing something.

    When accessing CallDetails from CallHistory, the value of CallDetails.Outgoing is always returned as 'true', even for incoming calls. At the same time CallDetails.CallType is correctly set for Incoming or Outgoing depending on the call.

    Initially, I was trying to use the code:

    CallDetails cdt;

    bool Incoming;

    if (cdt.Outgoing)
                        Incoming = false;
                    else
                        Incoming = true;

    But this doesn't work.

    I can do a workaround by using CallType but why CallDetails.Outgoing is always set to 'true' ? I can see that this value is taken directly from iom, so may be it an issue with Microsoft...

    I am using Orange SPV c600 with Windows Mobile 5, AKU 2 & CF2 SP2

     

    Regards,

    Andreiaf

  • 08-08-2008 3:58 AM In reply to

    Re: CallDetails.Outgoing is always set to true??

    I can duplicate this on a Smartphone device. I will need to do further tests to see if it is specific or affects other device types too. I would suggest always using the CallType to detect direction e.g.

     switch(cdt.CallType)

    {

       case CallType.Incoming:

       case CallType.Missed:

          Incoming = true;

          break;

       case CallType.Outgoing:

          Incoming = false;

          break;

    }

     

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
Page 1 of 1 (2 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.