×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Location
    India
    Posts
    123

    block incoming call without ringing

    hi,

    I have done an application in which i reject incoming calls from numbers added to the list.

    But the problem is when someone calls on blocked number phone it can hear one or two rings then call is canceled . But i want this should not happen .it should directly cancel the blocked number without ringing.

    So is this possible using native code ??

    Regards,

    Vishal

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: block incoming call without ringing

    And what are you using now?

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: block incoming call without ringing

    And what are you doing between getting the call event and the hang-up ?

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: block incoming call without ringing

    Quote Originally Posted by vishalrocks101 View Post
    hi,

    I have done an application in which i reject incoming calls from numbers added to the list.

    But the problem is when someone calls on blocked number phone it can hear one or two rings then call is canceled . But i want this should not happen .it should directly cancel the blocked number without ringing.

    So is this possible using native code ??

    Regards,

    Vishal
    yes it is possiable check the Symbian.C++ forum section there it has been discussed so many times.

  5. #5
    Regular Contributor
    Join Date
    Feb 2009
    Location
    India
    Posts
    123

    Re: block incoming call without ringing

    hi,

    What i have done is I have used qt mobile extension telephony api , In which I get status of line for incoming call . And if incoming number matches the number in my blocked List then I have used native code to simulate red key as below.

    void ReceiveCall::handleStatusChange(XQTelephony::LineStatus status, QString number)
    {

    if (status == XQTelephony::StatusRinging)
    {
    if(number == "+91 blocked number")
    {


    TRawEvent lEventDown;
    lEventDown.Set(TRawEvent::EKeyDown, EStdKeyNo);
    UserSvr::AddEvent(lEventDown);
    User::After(100000);
    TRawEvent lEventUp;
    lEventUp.Set(TRawEvent::EKeyUp, EStdKeyNo);
    UserSvr::AddEvent(lEventUp);

    }


    }

    }

    So the above code rejects call for that number but blocked caller can hear two to three rings then his call is rejected.
    But i don't want even one ring Directly disconnect.I have tried connecting and connected state but it does't work.

    Regards,
    Vishal

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: block incoming call without ringing

    Donot know if Qt Experts will agree with me or not. But if you are using a Qt UI application your application will get the event some time after the actuall ringing state.

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: block incoming call without ringing

    most often the problem I have seen is that there are plenty of unnessessary processing between getting the state and figuring out that it should be hangup, so the logic in general is rather important..

  8. #8
    Regular Contributor
    Join Date
    Feb 2009
    Location
    India
    Posts
    123

    Re: block incoming call without ringing

    ok so is this the right native code i am using for hangup ??


    TRawEvent lEventDown;
    lEventDown.Set(TRawEvent::EKeyDown, EStdKeyNo);
    UserSvr::AddEvent(lEventDown);
    User::After(100000);
    TRawEvent lEventUp;
    lEventUp.Set(TRawEvent::EKeyUp, EStdKeyNo);
    UserSvr::AddEvent(lEventUp);

  9. #9
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: block incoming call without ringing

    please check the older discussions, the key-event thing for hang-up is really bad workaround in general.

  10. #10
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: block incoming call without ringing

    Quote Originally Posted by loanttp View Post
    Hi,

    Anybody can help us?
    Have you considered on the searching option ?

Similar Threads

  1. How to block incoming call
    By sumit.ece in forum Symbian
    Replies: 2
    Last Post: 2010-06-08, 20:21
  2. block incoming call
    By billqu in forum Symbian
    Replies: 8
    Last Post: 2008-03-18, 19:31
  3. How to reject incoming call while ringing
    By sriramadasu in forum Symbian
    Replies: 5
    Last Post: 2007-10-05, 07:28
  4. How to get the incoming call number before ringing
    By sriramadasu in forum Symbian
    Replies: 1
    Last Post: 2006-06-17, 11:41
  5. Replies: 0
    Last Post: 2005-05-18, 13:28

Posting Permissions

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