×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    40

    GetRemotePartyInfo returns nothing

    Hi all,

    I am using RAdvGsmCall::GetRemotePartyInfo to do caller id but the returned values seem to be empty. Anyone can help? Below are the codes I am using. Thanks.


    Code:
    TInt error;
    error = call.OpenExistingCall(line, lineInfo.iNameOfLastCallAdded);
    RAdvGsmCall::TRemotePartyInfo remotePartyInfo;
    error = call.GetRemotePartyInfo(remotePartyInfo);
    
    remotePartyName = remotePartyInfo.iName;
    remotePartyNumber = remotePartyInfo.iNumber.iTelNumber;

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    try this:

    TName callName;
    RLine::TLineInfo lineInfo;
    RAdvGsmCall::TRemotePartyInfo RemotePartyInfo;
    iLine.GetInfo(lineInfo);
    callName.Copy(lineInfo.iNameOfCallForAnswering);

    iCall.OpenExistingCall(iLine, callName);
    iCall.GetRemotePartyInfo(RemotePartyInfo);

    yucca

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    40
    thanks a lot yucca.

    thanks to your advice i've now been able to retrieve the caller's number but the remotePartyInfo.iName is still coming in blank eventhough i've got the caller's name and number in the address book? any idea why that happens? is there any other way around this other than to search the address book for the number and retrieve the name associated with that number?

    thanks

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    to be fully honest I don't really know. anyway the API is non-public, so if it doesn't work, then it doesn't. And if the contacts DB query is enough fast for your purpose, I would go with it and not waist too much time figuring out RAdvGsmCall.

    yucca

Posting Permissions

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