Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor marycore's Avatar
    Join Date
    Mar 2003
    Posts
    101
    Hi all
    I want to make a call for symbian ver 9.1 by using CTelephony API,

    Here is the simple code:




    CDialler::CDialler(): CActive(EPriorityStandard), iTelephony(NULL)
    {

    }


    void CDialler::ConstructL()
    {
    iTelephony = CTelephony::NewL();
    }


    CDialler::~CDialler()
    {
    Cancel();
    delete iTelephony;
    }


    void CDialler::SomeFunction()
    {


    CActiveScheduler::Add(this);
    CTelephony::TTelNumber telNumber(KTheNumber);
    CTelephony::TCallParamsV1 callParams;
    callParams.iIdRestrict = CTelephony::ESendMyId;
    CTelephony::TCallParamsV1Pckg callParamsPckg(callParams);
    iTelephony->DialNewCall(iStatus, callParamsPckg, telNumber, iCallId);

    SetActive();
    }

    void CDialler::RunL()
    {
    if(iStatus==KErrNone)
    {

    }
    }

    void CDialler:oCancel()
    {
    iTelephony->CancelAsync(CTelephony::EDialNewCallCancel);
    }

    =======
    and I call the method in this way:

    CDialler* iDialer = new (ELeave) CDialler();
    CleanupStack::PushL(iDialer);
    iDialer -> ConstructL();
    iDialer -> SomeFunction();
    CleanupStack::Pop(iDialer);

    but no event without any error messages occures!
    what should I do?

    tnx

  2. #2
    Nokia Developer Champion xhsoldier's Avatar
    Join Date
    May 2006
    Location
    Beijing,China
    Posts
    1,190
    pls look at the memory management and cleanupstack in sdk
    we do not call constructl directly
    and often using NewL or NewLC instead of new (ELeave) for AO

  3. #3
    Regular Contributor marycore's Avatar
    Join Date
    Mar 2003
    Posts
    101
    thanks for your reply,
    I change the code to this:

    CDialler* CDialler::NewLC()
    {
    CDialler* self = new( ELeave ) CDialler;
    CleanupStack::PushL( self );
    self->ConstructL();
    return self;
    }


    and change the caller to this:

    CDialler* dlg = CDialler::NewLC();
    CleanupStack::Pop();
    dlg->SomeFunction();


    but still It doesn't make any call without any error!
    where is my problem?

  4. #4
    Super Contributor eswar_illuri's Avatar
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704
    Hi MaryCore,

    do like this,

    void CDialler::SomeFunction()
    {


    CActiveScheduler::Add(this);
    CTelephony::TTelNumber telNumber(KTheNumber);
    CTelephony::TCallParamsV1 callParams;
    callParams.iIdRestrict = CTelephony::ESendMyId;
    CTelephony::TCallParamsV1Pckg callParamsPckg(callParams);
    iTelephony->DialNewCall(iStatus, callParamsPckg, telNumber, iCallId);

    SetActive();
    //iWait is CActiveSchedulerWait
    if ( iWait.IsStarted() == (TInt)ETrue )
    {
    return;
    }
    else
    {
    iWait.Start();
    }
    }

    or check IsvTelCallApp example in sdk example.


    regards,
    eswar

  5. #5
    Regular Contributor marycore's Avatar
    Join Date
    Mar 2003
    Posts
    101
    Dear eswar,
    thanks, but the problem has not been solved!
    and also I couldn't find the IsvTelCallApp example... .
    I am using 3rd edition SDK. and the self signed sis file!

  6. #6
    Super Contributor eswar_illuri's Avatar
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704
    Hi MaryCore,

    IsvTelCallApp example is in S60Ex folder in your 3rd edition SDK, Check it.

    regards,
    eswar

  7. #7
    Regular Contributor marycore's Avatar
    Join Date
    Mar 2003
    Posts
    101
    Hi Eswar
    I found that example and built it.
    after making a signed sis file I get this error during the installation:
    "Required Application access not granted"

    where is the problem reason?

  8. #8
    Super Contributor eswar_illuri's Avatar
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704
    Hi,

    For this application u need developer certificate. And remove the capabilities ReadDeviceData and WriteDeviceData from .mmp file. For Developer Certificate register in www.symbiansigned.com

    regards,
    eswar

  9. #9
    Regular Contributor marycore's Avatar
    Join Date
    Mar 2003
    Posts
    101
    it means that self signed sis files can't work?

  10. #10
    Super Contributor eswar_illuri's Avatar
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704
    Hi,

    Yes. Because self signed doesn't support some of the capabilities related to CTelephony. Check all the capabilities listed in the mmp file.

    regards,
    eswar

Similar Threads

  1. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 29
    Last Post: 2008-06-30, 11:47
  2. Reject incoming call using CTelephony?
    By Poyo_shiu in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2008-05-01, 15:28
  3. How to make a 3G phone call?
    By Comatose51 in forum Symbian C++
    Replies: 0
    Last Post: 2003-09-25, 04:08
  4. Put Call On hold Using ETel API
    By sailaja_v_s in forum Symbian C++
    Replies: 0
    Last Post: 2003-08-16, 21:57
  5. Microcontroller(8051) to control the mobile to make a call
    By Raymondhui in forum General Development Questions
    Replies: 0
    Last Post: 2003-04-08, 11:29

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