×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Feb 2006
    Location
    Jakarta, Indonesia
    Posts
    80

    Question State before EStatusRinging in incoming call

    Hi all,

    I want to intercept incoming call BEFORE the ringing tone is played. Is it possible?

    If I track the state change in CTelephony, the first state of incoming call event is EStatusRinging and the phone is ringing.
    Is there any way to intercept before ringing? Any idea?

    Many thanks in advance.


    Halim

  2. #2
    Registered User
    Join Date
    Oct 2007
    Posts
    178

    Re: State before EStatusRinging in incoming call

    Does EStatusConnecting help?

  3. #3
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: State before EStatusRinging in incoming call

    Hi

    Use the following link it will help u.

    http://developer.uiq.com/devlib/uiq_...%2ehowToAnswer

  4. #4
    Regular Contributor
    Join Date
    Feb 2006
    Location
    Jakarta, Indonesia
    Posts
    80

    Re: State before EStatusRinging in incoming call

    Thank you for the link.
    But my problem is: i want to intercept it before the phone is ringing.

    If I use iStatus == CTelephony::EStatusRinging, the phone has already been ringing.


    Quote Originally Posted by aamitgupta View Post
    Hi

    Use the following link it will help u.

    http://developer.uiq.com/devlib/uiq_...%2ehowToAnswer

  5. #5
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: State before EStatusRinging in incoming call

    Hi
    Hope this will help and i is working for me.

    Code:
    void CCallInterceptor::RunL()
    {
        	if(iStatus.Int() != KErrNone)
        	{
        	    return;
        	}
           switch(iState)
           {
      	case EWaiting:
    	{
    		// answer the call
    		iState = EAnswering;
    		StartL();
    		break;
    	}
    	case EAnswering:               
    	{
    		iState = EWatching;
    		StartL();
    		break;
    	}
    					
    	case EConnected:
    	{
    	       iState = EWatching;
    	       StartL();
    		break;
    	}	
          }
    }		
    
    					
    
    void CCallInterceptor::StartL()
    {
    	switch(iState)
    	{
    	case EWaiting:
    	{
    	
               User::LeaveIfError
                             (iTel->GetLineStatus
                          (CTelephony::EVoiceLine,iCallStatusPckg));
               iTel->NotifyChange( iStatus,CTelephony::
                            EVoiceLineStatusChange,iCallStatusPckg );
    			SetActive();
    			}
    			break;
    		case EAnswering:
    {
    			iTel->AnswerIncomingCall(iStatus,iCallId,CTelephony::EVoiceLine);
    
    				SetActive();
    }
    break;
    }

  6. #6
    Regular Contributor
    Join Date
    Feb 2006
    Location
    Jakarta, Indonesia
    Posts
    80

    Re: State before EStatusRinging in incoming call

    yeah.. but it's not what i'm looking for.
    Thanks anyway

    Quote Originally Posted by aamitgupta View Post
    Hi
    Hope this will help and i is working for me.

    Code:
    void CCallInterceptor::RunL()
    {
        	if(iStatus.Int() != KErrNone)
        	{
        	    return;
        	}
           switch(iState)
           {
      	case EWaiting:
    	{
    		// answer the call
    		iState = EAnswering;
    		StartL();
    		break;
    	}
    	case EAnswering:               
    	{
    		iState = EWatching;
    		StartL();
    		break;
    	}
    					
    	case EConnected:
    	{
    	       iState = EWatching;
    	       StartL();
    		break;
    	}	
          }
    }		
    
    					
    
    void CCallInterceptor::StartL()
    {
    	switch(iState)
    	{
    	case EWaiting:
    	{
    	
               User::LeaveIfError
                             (iTel->GetLineStatus
                          (CTelephony::EVoiceLine,iCallStatusPckg));
               iTel->NotifyChange( iStatus,CTelephony::
                            EVoiceLineStatusChange,iCallStatusPckg );
    			SetActive();
    			}
    			break;
    		case EAnswering:
    {
    			iTel->AnswerIncomingCall(iStatus,iCallId,CTelephony::EVoiceLine);
    
    				SetActive();
    }
    break;
    }

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-08-07, 12:23
  3. Replies: 2
    Last Post: 2007-06-26, 09:20
  4. Replies: 2
    Last Post: 2007-05-11, 23:11
  5. Incoming call, 7650 and iPAQ
    By paller in forum Bluetooth Technology
    Replies: 0
    Last Post: 2003-03-19, 08:14

Posting Permissions

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