Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor s_mehdi76's Avatar
    Join Date
    Apr 2008
    Posts
    76
    Hi,
    i have written this piece of code and it working fine , i can capture teh event on call ringing, but now i want to cancel the incoming call before hanging it . so please some one help me.

    void CCallMonitor::RunL()
    {
    if( iLineStatus.iStatus == CTelephony::EStatusRinging ) // {
    if(iLineStatus.iStatus != CTelephony::EStatusDialling)
    {
    if(DALExecutor::IsRestrictedTime())
    {
    Cancel();
    }
    }
    }
    }
    while i written following code in DoCancel()
    void CCallMonitor:oCancel()
    {
    iTelephony->CancelAsync( CTelephony::EVoiceLineStatusChangeCancel );
    }

    please help me
    thanx in advance.

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Check out the API plug-in package, it has some phone client APIs, and one of them has function called Chup() that can terminate any call.

  3. #3
    Regular Contributor s_mehdi76's Avatar
    Join Date
    Apr 2008
    Posts
    76
    please explain in detail, i dont get ur point .
    thanx...
    Quote Originally Posted by symbianyucca View Post
    Check out the API plug-in package, it has some phone client APIs, and one of them has function called Chup() that can terminate any call.

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,680

  5. #5
    Regular Contributor s_mehdi76's Avatar
    Join Date
    Apr 2008
    Posts
    76
    Can some one provide any information related to CTelephony API , that how to cancel incoming call in s60 3rd edition ,
    i have posted my code below
    thanx

  6. #6
    Nokia Developer Moderator Jack Torrance's Avatar
    Join Date
    May 2007
    Posts
    468
    You can't do it with CTelephony you can only end the calls owned by you.

    Cheers,
    Jack

  7. #7
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    hi,

    Most of people do it by just sending a red key event but this is not the right way. You need ETelmultimode api for this.

  8. #8
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    Hi Krish, as mentioned earlier, you can also do it with APIs found from the API Plug-in.

  9. #9
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    Quote Originally Posted by symbianyucca View Post
    Hi Krish, as mentioned earlier, you can also do it with APIs found from the API Plug-in.
    Hi symbianyucca,

    I haven't check that.. i will try with that also. thank you for correcting me.

  10. #10
    Regular Contributor mrtj's Avatar
    Join Date
    Oct 2004
    Posts
    98
    Quote Originally Posted by kkrish View Post
    You need ETelmultimode api for this.
    Hi, could you tell us how to do it with etelmm?
    Thanks,
    J.

  11. #11
    Registered User yogpan's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043
    Hi,
    etelmm.h contains class RPhone which is another way of getting a handle for the Telephony calls. You will need to listen for an incoming call and once u receive a notification you can get the handle of the call through RPhone APIs and then you can play around with the call using that handle.
    You can find more info from this link
    http://wiki.forum.nokia.com/index.php/Call_Handling
    Maximus
    S60 Developer
    Impossible is nothing

Similar Threads

  1. Retrieving incoming data call number in S60 3rd
    By synov in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2008-09-05, 13:43
  2. Replies: 2
    Last Post: 2007-06-26, 09:20
  3. Replies: 2
    Last Post: 2007-05-11, 23:11
  4. how to simulate incoming call event in Emulator?? egent !!
    By wjcrr in forum Series 40 & S60 Platform Feedback Archive
    Replies: 0
    Last Post: 2007-05-11, 03:58
  5. Replies: 3
    Last Post: 2006-12-14, 06:23

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