Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User Poyo_shiu's Avatar
    Join Date
    Jan 2005
    Posts
    10
    Hi, all

    In S60 3rd SDK, it suggests us using CTelephony class instead of ETel.
    All functions (except how to reject a call) provided by CTelephony have described detailed in 3rd SDK help.

    But I can find a proper way to reject a call using CTelephony.(Currently, I only can answer the incoming call and then hangup immediately.)

    Anyone has suggestion?

    Thanks,

    //Poyo

  2. #2
    Registered User rahul_symbian's Avatar
    Join Date
    Feb 2006
    Posts
    19
    hi Poyo,
    did u manage to Reject incoming call using CTelephony?

    am using CTelephony::Hangup(iStatus, callId) while there is an incoming call, but what will be the value of iCallId ??

    regard,
    Rahul

  3. #3
    Registered User Poyo_shiu's Avatar
    Join Date
    Jan 2005
    Posts
    10
    The value of iCallId is assigned after u answer the incoming call.

    I only can answer the incoming call(get the iCallId) and then hangup immediately. (May not a prepery way)

    Or using RCall in ETel core API to reject the incoming call. (ETel core API have been marked as deprecated in FP2, but the deprecated API are still supported)

    Currently, I answer & hangup incoming call & get callerid information using CTelephony. But reject incoming call using RCall. :~~~

    //Poyo

  4. #4
    Regular Contributor Wah's Avatar
    Join Date
    Mar 2003
    Posts
    55
    hi poyo,

    How you know the callid when call is ringing? Can RLine::NotifyIncomingCall() get the callid when incoming call is ringing but not connect?

    Regards
    Wah

  5. #5
    Registered User david.caabeiro's Avatar
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678
    No, you need to answer the call first.

  6. #6
    Regular Contributor template60's Avatar
    Join Date
    Feb 2005
    Posts
    328
    Hi, this works pretty well for me:

    TRawEvent ev1;
    ev1.Set(TRawEvent::EKeyDown, EStdKeyNo);
    UserSvr::AddEvent(ev1); // SwEvent
    User::After(100000);
    TRawEvent ev2;
    ev2.Set(TRawEvent::EKeyUp, EStdKeyNo);
    UserSvr::AddEvent(ev2); // SwEvent

  7. #7
    Registered User rahulm's Avatar
    Join Date
    Jul 2007
    Posts
    37
    Quote Originally Posted by Poyo_shiu View Post
    Hi, all

    In S60 3rd SDK, it suggests us using CTelephony class instead of ETel.
    All functions (except how to reject a call) provided by CTelephony have described detailed in 3rd SDK help.

    But I can find a proper way to reject a call using CTelephony.(Currently, I only can answer the incoming call and then hangup immediately.)

    Anyone has suggestion?

    Thanks,

    //Poyo
    Hi Poyo_shiu,

    I'm also using CTelephony to detect and reject incoming call. I managed to detect call but facing problem with rejecting it. Code which I written for that is:

    void CCallObserver::ListenForIncomingCall()
    {
    // hfxPutLogMessageL(_L8("Before NotifyChange()"));
    iTelephony->NotifyChange(iStatus,CTelephony::EVoiceLineStatusChange, *iCallStatusPkg);
    // hfxPutLogMessageL(_L8("After NotifyChange()"));
    SetActive();
    // CActiveScheduler::Start();
    }

    void CCallObserver::RunL()
    {
    hfxPutLogMessageL(_L8("In RunL()"));

    if(iStatus == KErrNone)
    {
    ///Get call status
    CTelephony::TCallStatus callStatus = (*iCallStatusPkg)().iStatus;

    switch(callStatus)
    {
    case CTelephony::EStatusRinging:
    {
    //TBDA:
    TBuf8<KMaxLogMessageLength> szLog;
    szLog.Copy(_L8("Call detected.."));
    hfxPutLogMessageL(szLog);

    //Reject call
    switch(iState)
    {
    case EAnswering:
    {
    hfxPutLogMessageL(_L8("Before answering call.."));
    iTelephony->AnswerIncomingCall(iStatus,iCallId);
    hfxPutLogMessageL(_L8("After answering call.."));
    szLog.Zero();
    szLog.Copy(_L8("Call Id:"));
    szLog.AppendNum(iCallId);
    iState = EHanging;
    break;
    }
    case EHanging:
    {
    hfxPutLogMessageL(_L8("Before Hanging call.."));
    iTelephony->Hangup(iStatus,iCallId);
    hfxPutLogMessageL(_L8("After Hanging call.."));
    if(iStatus == KErrNone)
    {
    hfxPutLogMessageL(_L8("Call rejected.."));
    }
    break;
    }

    default:
    break;
    }

    break;
    }
    default:
    break;
    }

    ListenForIncomingCall();
    }
    }

    Here I can detect call. In order to hangup call using CTelephony we need callid, which can be retrived from AnswerIncomingCall() fun of CTelephony. Thatswhy, here as soon as cll is detected I answers it and then hangup the call. But problem is that app. answers call and device get hanged. Even I can't restart it.
    Execution control does not reaches in EHangin case, where I'm hanging up the call. Could u tel me in detail, how u managed to reject call plz. ?

    I'm wainting for ur reply...

    Thanks
    Rahul

Similar Threads

  1. Replies: 31
    Last Post: 2008-02-13, 16:45
  2. Reject Incoming Call and CActive
    By shereen_shaaban in forum Symbian C++
    Replies: 3
    Last Post: 2006-12-18, 10:16
  3. Error while accepting an incoming call
    By yogesh14 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-03-23, 03:55
  4. How to reject incoming call?
    By yinjialiang in forum Symbian C++
    Replies: 3
    Last Post: 2003-11-17, 05:51
  5. Which function can be used to reject an incoming call?
    By yinjialiang in forum Symbian C++
    Replies: 0
    Last Post: 2003-11-17, 01:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved