Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User mgaia's Avatar
    Join Date
    Jul 2004
    Posts
    5
    i am trying to set up a session between different instances of the emulator. I proceed as follows:

    iSIP = CSIP::NewL(iUid, *this);
    iProfileRegistry = CSIPProfileRegistry::NewL(*iSIP, *this);

    // Get the default profile.
    iProfile = iProfileRegistry->DefaultProfileL();

    // The client asks the API to enable the retrieved profile for its use.

    TInt status = iProfileRegistry->EnableL(*iProfile, *this);

    if (status == KErrNone)
    {
    // get the SIP connection used by the profile
    iConnection = iProfileRegistry->ConnectionL(*iProfile);

    // create a SIP dialog for sending an INVITE;
    iSIPInviteDialogAssoc = CreateSIPInviteDialogAssoc();

    // Continue session establishement using the SIP Client API
    iSIPClientTransaction = iSIPInviteDialogAssoc->SendInviteL();
    }
    else //KErrPending
    {
    // wait for the profile to be registered before using it further
    }


    the registration is successful, but the call "iConnection = iProfileRegistry->ConnectionL(*iProfile)" fails with the error KErrAlreadyExists. Any ideas as to what could be wrong ? i have tried directly using the construction CSIPConnection::NewL but to no avail.

    the default profile is the same as the one used by the example warships program which runs correctly.

  2. #2
    Regular Contributor jrantam's Avatar
    Join Date
    Jun 2004
    Posts
    53
    There is an example program in SIP plugin 1.0 documentation. May be that can help...

  3. #3
    Registered User mgaia's Avatar
    Join Date
    Jul 2004
    Posts
    5
    yes i know, this code extract is from the same programmer's guide.but it doesnt seem to work, even though the example warships program works fine.

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