×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    128

    Get Incoming call number

    Hi ,
    I have an application that listen to the incoming call and hung up it.But, I neet also to store this call.
    Now i am able to listen and hangup the call
    please help me how to detect tne call number??.
    I use ETEL.lib for S60 2nd.

    Thanks

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Get Incoming call number

    I'm not sure you can get it with the public ETel API' you need to use CTelephony or be a Symbian partner memeber to get the ETelMM API's which allow you to get the call info
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    35

    Re: Get Incoming call number

    Hi !

    Use that ..................
    iTelephoneNumber.Zero();
    CTelephony::TCallInfoV1 callInfoV1;
    CTelephony::TCallInfoV1Pckg callInfoV1Pckg( callInfoV1 );
    CTelephony::TCallSelectionV1 callSelectionV1;
    CTelephony::TCallSelectionV1Pckg callSelectionV1Pckg( callSelectionV1 );
    CTelephony::TRemotePartyInfoV1 remotePartyInfoV1;
    CTelephony::TRemotePartyInfoV1Pckg remotePartyInfoV1Pckg( remotePartyInfoV1 );
    callSelectionV1.iLine = CTelephony::EVoiceLine;
    callSelectionV1.iSelect = CTelephony::EInProgressCall;
    iTelephony->GetCallInfo( callSelectionV1Pckg, callInfoV1Pckg, remotePartyInfoV1Pckg );
    return iTelephoneNumber;


    ravi

  4. #4
    Registered User
    Join Date
    Feb 2008
    Posts
    35

    Re: Get Incoming call number

    Hi !

    U can get call info , what u need to proper handling Linestatus .


    ravi

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

    Re: Get Incoming call number

    hi use the following to get the incoming call no.:



    CTelephony::TRemotePartyInfoV1 RemInfoUse;
    CTelephony::TCallInfoV1 CallInfoUse;
    CTelephony::TCallSelectionV1 CallSelectionUse;

    CallSelectionUse.iLine = CTelephony::EVoiceLine;
    CallSelectionUse.iSelect = CTelephony::EInProgressCall;

    CTelephony::TRemotePartyInfoV1Pckg RemParty(RemInfoUse);
    CTelephony::TCallInfoV1Pckg CallInfo(CallInfoUse);
    CTelephony::TCallSelectionV1Pckg CallSelection(CallSelectionUse);

    iTelephony->GetCallInfo(CallSelection,CallInfo,RemParty);

    CallerNumber.Copy(RemInfoUse.iRemoteNumber.iTelNumber);

    CallerNumber is a TBuf type which stores the incoming call no.

  6. #6
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: Get Incoming call number

    Hi,

    Try to use the following code for fetching caller number in ETEL.

    First, Open the call ,Get call name. Then,


    RMobileCall::TMobileCallInfoV1 callInfo;
    RMobileCall::TMobileCallInfoV1Pckg callInfoPckg(callInfo);

    m_currentCall.GetMobileCallInfo(callInfoPckg);

    TBuf8<20> aCallNumber;
    aCallNumber.Copy(callInfo.iRemoteParty.iRemoteNumber.iTelNumber);

    Regards,
    Sumit

Similar Threads

  1. Replies: 0
    Last Post: 2007-12-31, 11:26
  2. Replies: 2
    Last Post: 2007-05-11, 23:11
  3. How to get the incoming call number before ringing
    By sriramadasu in forum Symbian
    Replies: 1
    Last Post: 2006-06-17, 11:41
  4. Error while accepting an incoming call
    By yogesh14 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-03-23, 03:55
  5. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52

Posting Permissions

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