Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor mohhassan's Avatar
    Join Date
    Jun 2008
    Posts
    56
    How to Hang-up all incoming calls in voice line? or stop recived any call or any sms in voice line
    Last edited by mohhassan; 2008-12-29 at 07:53.

  2. #2
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    u can do this by pressing the red key of phone virtually.. the code is below:


    TRawEvent ev1;

    ev1.Set(TRawEvent::EKeyDown, EStdKeyNo);
    UserSvr::AddEvent(ev1); // SwEvent


    User::After(100000);
    UserSvr::AddEvent(ev1); // SwEvent


    User::After(100000);
    UserSvr::AddEvent(ev1); // SwEvent


    TRawEvent ev2;
    ev2.Set(TRawEvent::EKeyUp, EStdKeyNo);
    UserSvr::AddEvent(ev2); // SwEvent


    the Hangup function of ctelephony can also be used, but it only hangsup the call, after receiving the call, not before that, as it requires call id.
    so this method does not works..

    alternatively u can Use hangup function of RMobile API.

    red keey method is successful if u wana try

  3. #3
    Regular Contributor mohhassan's Avatar
    Join Date
    Jun 2008
    Posts
    56
    Thanks.

Similar Threads

  1. Handling incoming calls
    By owensul in forum Symbian C++
    Replies: 6
    Last Post: 2008-09-18, 11:04
  2. Replies: 0
    Last Post: 2008-04-08, 19:33
  3. Replies: 5
    Last Post: 2008-02-20, 09:52
  4. Regarding Incoming Calls
    By tpsriram in forum Mobile Java General
    Replies: 1
    Last Post: 2004-07-28, 23:48
  5. Incoming calls
    By carmelo1966 in forum Symbian C++
    Replies: 0
    Last Post: 2003-09-17, 11:07

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