×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    216

    Red face Etel Client Faul 8

    hi all
    what this Error ?
    my code is to answer data call
    Code:
             iServer.Connect();
    	 if (iServer.LoadPhoneModule(_L("phonetsy")) != KErrNone)
    	 {
    	 return;
    	 }
    	 iServer.GetPhoneInfo(0, phoneInfo);
    	 iPhone.Open(iServer, phoneInfo.iName);
    	 iPhone.EnumerateLines(iNumberLines);
    	 FoundLine = EFalse;
    	 for (TInt a = 0; !FoundLine && a < iNumberLines; a++)
    	 {
    	 iPhone.GetLineInfo(a, lineInfo);
    	 if (lineInfo.iLineCapsFlags & RLine::KCapsData)
    	 FoundLine = ETrue;
    	 }
    	 iLine.Open(iPhone, lineInfo.iName);	 
    	 
    	 call_name =_L("data call");	 
    	 iLine.NotifyIncomingCall(iStatus, call_name); 
    	 
    	 
    	 SetActive();	 
    	 iCall.OpenExistingCall(iLine, call_name);
    	 iCall.AnswerIncomingCall(iStatus);
    	 SetActive();
    	 RCall::TCommPort iCommPort;
    	 iCall.LoanDataPort(iStatus, iCommPort);
    	 SetActive();
    	 
    	 RCommServ iCommServer;
    	 RComm iComm;
    	 iCommServer.Connect();
    	 iCommServer.LoadCommModule(iCommPort.iCsy);
    	 TCommConfig config;
    	 iComm.Open(iCommServer, iCommPort.iPort, ECommShared);
    	 iComm.Config(config);
    	 config().iTerminatorCount = 0;
    	 iComm.SetConfig(config);
    when I executing app I see this message "Application close : data call : Etel Client Faul:8"
    please help me

  2. #2
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: Etel Client Faul 8

    some similar discussion, might help:
    http://www.newlc.com/topic-4111

  3. #3
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    216

    Re: Etel Client Faul 8

    thanks vasant21 , but this discussion does not help me can you tell me more about this error ?
    thank you a lot

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,698

    Re: Etel Client Faul 8

    Learn about active objects. There is no such thing as
    Code:
    DoSomething(iStatus,...);
    SetActive();
    DoSomethingElse(iStatus,...);
    SetActive();
    ...
    After passing iStatus to an asynchronous service provider, and issuing a SetActive, you should simply return from your method. Further steps should occur in your RunL method.
    Also note that local variables must not be used in asynchronous requests handled by active objects: when your method returns, the asynchronous request is just going to be handled by the server, so its arguments should not go out of scope. This is especially true for the server session.

    Check http://wiki.forum.nokia.com/index.ph..._in_Symbian_OS and the related links as a first approach to Active Objects, practically the above code should appear:
    Code:
    void CSomethingActive::StartDoingThings()
    {
        iFirstServiceProvider.DoSomething(iStatus,iArgument1,iArgument2);
        SetActive();
        iWhatIAmDoing=EFirstServiceProviderIsDoingSomething;
    }
    
    void CSomethingActive::RunL()
    {
        if(iStatus!=KErrNone)
        {
            DoSomeErrorHandling();
        }
        else
        {
            switch(iWhatIAmDoing)
            {
            case EFirstServiceProviderIsDoingSomething:
                DoSomethingElseStillWithFirstServiceProvider();
                break;
            case EFirstServiceProviderIsDoingSomethingElse:
                DoSomethingWithSecondServiceProvider();
                break;
            case ESecondServiceProviderIsDoingSomething:
                ShowCompleteDialogToUser();
                break;
            }
        }
    }
    
    void CSomethingActive::DoSomethingElseStillWithFirstServiceProvider()
    {
        iFirstServiceProvider.DoSomethingElse(iStatus,iArgument3);
        SetActive();
        iWhatIAmDoing=EFirstServiceProviderIsDoingSomethingElse;
    }
    
    void CSomethingActive::DoSomethingWithSecondServiceProvider()()
    {
        iSecondServiceProvider.DoSomething(iStatus,iArgument4);
        SetActive();
        iWhatIAmDoing=ESecondServiceProviderIsDoingSomething;
    }
    
    void CSomethingActive::ShowCompleteDialogToUser()
    {
        ...
    }
    iFirstServiceProvider and iSecondServiceProvider are usually Connect()-ed in the ConsturctL, and also note that every argument is iArgument, thus everything is member variable.

  5. #5
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    216

    Re: Etel Client Faul 8

    thank you wizard_hu ,
    I read about active Object in Symbian OS and rewrite my code
    Code:
    #include "CallEngine.h"
    #include <aknnotewrappers.h>
    
    CCallEngine::CCallEngine() :
    	CActive(EPriorityStandard) // Standard priority
    	{
    	}
    
    CCallEngine* CCallEngine::NewLC()
    	{
    	CCallEngine* self = new ( ELeave ) CCallEngine();
    	CleanupStack::PushL(self);
    	self->ConstructL();
    	return self;
    	}
    
    CCallEngine* CCallEngine::NewL()
    	{
    	CCallEngine* self = CCallEngine::NewLC();
    	CleanupStack::Pop(); // self;
    	return self;
    	}
    
    void CCallEngine::ConstructL()
    	{
    	User::LeaveIfError(iTimer.CreateLocal() ); // Initialize timer
    	CActiveScheduler::Add( this); // Add to scheduler
    	}
    
    CCallEngine::~CCallEngine()
    	{
    	Cancel(); // Cancel any request, if outstanding
    	iTimer.Close(); // Destroy the RTimer object
    	// Delete instance variables if any	
    	}
    
    void CCallEngine::DoCancel()
    	{
    	iTimer.Cancel();
    	}
    
    void CCallEngine::StartL(TTimeIntervalMicroSeconds32 aDelay)
    	{
    	Cancel(); // Cancel any request, just to be sure
    	iState = EUninitialized;
    	iTimer.After(iStatus, aDelay); // Set for later
    	SetActive(); // Tell scheduler a request is active
    	}
    
    void CCallEngine::RunL()
    	{
    	switch(iState)
    		{
    		case EDailing:
    		  _LIT(KHelloWorldText, "Call sauccess !!");
    		  CAknConfirmationNote * note = new(ELeave) CAknConfirmationNote();
    		  note->ExecuteLD(KHelloWorldText); 	
    		 break;
    		case EAnswering:
    			iCall.OpenExistingCall(iLine, call_name);
    		    iCall.AnswerIncomingCall(iStatus);
    		    
    		 break;
    		}
    	iTimer.After(iStatus, 1000000); // Set for 1 sec later
    	SetActive(); // Tell scheduler a request is active
    	}
    
    TInt CCallEngine::RunError(TInt aError)
    	{
    	return aError;
    	}
    void CCallEngine::DailCall(TDesC &number)
    	{	 
    	 iState = EDailing;	 
    	 iServer.Connect();
    	 if (iServer.LoadPhoneModule(_L("phonetsy")) != KErrNone)
    	  {
    	 	 //do nothing
    	  }
    	 iServer.GetPhoneInfo(0, phoneInfo);
    	 iPhone.Open(iServer, phoneInfo.iName);
    	 iPhone.EnumerateLines(iNumberLines);
    	 FoundLine = EFalse;
    	 for (TInt a = 0; !FoundLine && a < iNumberLines; a++)
    	  {
    	 iPhone.GetLineInfo(a, lineInfo);
    	 if (lineInfo.iLineCapsFlags & RLine::KCapsData)
    	 FoundLine = ETrue;
    	  }
    	 iLine.Open(iPhone, lineInfo.iName);
    	 //Establishing Call
    	 _LIT(cname,"data call");
    	 call_name = cname;
    	 iCall.OpenNewCall(iLine,call_name);	 
    	 iCall.Dial(iStatus,number);	 	 
    	}
    void CCallEngine::AnswerCall()
    	{
    	 iState = EAnswering;
    	 call_name =_L("data call");	 
         iLine.NotifyIncomingCall(iStatus, call_name); 
         SetActive();
    	}
    and still my application closed with "ETel Client Faul 8"
    error occur when call CCallEngine::AnswerCall() function ,,, call working success
    can you tell me what the solution ? what ERROR is that ??
    thank you a lot ....
    Last edited by rokroff; 2008-07-28 at 11:21.

  6. #6
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    216

    Re: Etel Client Faul 8

    Error exactly on [red] NotifyIncomingCall [/red]
    asynchronous requests to ETel
    what can i do ?
    Last edited by rokroff; 2008-07-28 at 12:23.

  7. #7
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    216

    Re: Etel Client Faul 8

    no answer

  8. #8
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: Etel Client Faul 8

    Thats wrong again, timer was taken just only for example which acts as a asynchronous request provider (issuer), you dont need to have timer in your case, also you again do the same things, re-issue more than one asynchronous requests at a time, so delete code related to timer and make sure that you issue one asynchronous request at a time.

    Are you working for Pre 3rd edition sdk's? If you are working for 3rd edition better use CTelephony instead.


    PS: if you are trying to answer data call, it might not work on 1st edition, its a known issue reported:
    http://wiki.forum.nokia.com/index.ph..._Core_ETEL_API

  9. #9
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    216

    Re: Etel Client Faul 8

    thank you vasant21 ,
    I am using nokia 6120 classic S60 3rd and Carbide IDE , but I Can't using CTelephony to Establish Data Call as I know , can you tell me the solution ? example code maybe very clear
    thank you a lot

  10. #10
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: Etel Client Faul 8

    Quote Originally Posted by rokroff View Post
    thank you vasant21 ,
    I am using nokia 6120 classic S60 3rd and Carbide IDE , but I Can't using CTelephony to Establish Data Call as I know , can you tell me the solution ? example code maybe very clear
    thank you a lot
    Here is one good example:
    http://www.symbian.com/developer/tec...gdatacall.html

    I have never tried Data call, it may work on 6120 as its Symbian OS v9.2 [S60 3rd Edition, Feature Pack 1] but data call using CTelephony is definitely deprecated and will be removed in near future.

    PS: CTelephony should not be be used for data calls it has been deprecated, so i guess you can go for Etel API but its not public and you need some partnering with symbian.

Similar Threads

  1. Etel Client Faul 8
    By jack44 in forum Symbian
    Replies: 3
    Last Post: 2008-07-28, 17:31
  2. Error at application launch...Etel Client Faul - 28
    By yogesh14 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-12-14, 16:20
  3. Getting IMSI...Etel Client Faul 8 error??
    By liafail in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-12-14, 03:01
  4. etel client faul 8 ....
    By marycore in forum Symbian
    Replies: 0
    Last Post: 2004-11-12, 05:16
  5. Error Code : Etel Client Faul Reason :- 28
    By verris in forum Symbian
    Replies: 2
    Last Post: 2002-12-09, 04:44

Posting Permissions

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