×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    10

    CSIPConnection stays in 'initializing' state. Registering without SIPProfile

    Hi all,

    I'm trying to REGISTER to a SIP server without using SIP Profiles. In that way, the user doesn't have to create a SIP profile before he can use my VOIP application.

    In the Nokia documentation I learned how to do this by performing the following basic steps:
    - Determine a valid IAP id.
    - Create an instance of CSIP.
    - Create an instance of CSIPConnection, while implementing the MConnectionObserver callback methods.
    - Wait until the (SIP)Connection has turned to the state 'EReady'.
    - Create a new RegistryBinding instance and call it's RegisterL() method.

    When running, the WLAN connection is setup. At least, the WLAN indicator in the phone (N95) implicates there is a connection.
    The CSIPConnection instance remains in the state 'initializing' though...
    When trying to peform the RegisterL() method on the RegistryBinding instance, the error -18 (KErrNotReady) is thrown.

    Can anyone shine a little light on this problem?
    I have been strugling with it for days and can't seem to find the answer to this problem in the documentation or this forum.

    Here is a code snippet:

  2. #2
    Registered User
    Join Date
    Aug 2007
    Posts
    19

    Re: CSIPConnection stays in 'initializing' state. Registering without SIPProfile

    The code snippet seems to be missing.
    I might be able to help you if you can attach some parts of your code.

    Basically you should wait until
    MSIPConnectionObserver::ConnectionStateChanged(CSIPConnection::EActive) gets called.
    Note that this callback completes asynchronously
    and it may take several seconds for it to get called
    after calling CSIPConnection::NewL.

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    10

    Re: CSIPConnection stays in 'initializing' state. Registering without SIPProfile

    Hi,

    I finally got it to work.
    I didn't wait for the callback, thought that a couple of 'sleep' statements would do the same. Apparently it didn't.

    Now I wait for the callback (ConnectionStateChanged) to be called with state==EActive. After that I call the REGISTER method of the RegistrationBinding object.

    Now I get the following error: -17712

    What can it be?

  4. #4
    Registered User
    Join Date
    Jul 2007
    Posts
    40

    Re: CSIPConnection stays in 'initializing' state. Registering without SIPProfile

    Hi!

    \epoc32\include\siperr.h

    /** DNS query for the remote address failed */
    const TInt KErrSIPResolvingFailure = -17712;

    tkot

  5. #5
    Registered User
    Join Date
    Dec 2005
    Posts
    10

    Re: CSIPConnection stays in 'initializing' state. Registering without SIPProfile

    Thanks for clearing up;
    This problem now has nothing to do anymore with this topic.

    Grtz Paul.
    Last edited by klakmoes; 2007-10-02 at 08:28.

Similar Threads

  1. Java Application running on WTK but not on S60 SDK
    By roman.benz in forum Mobile Java Tools & SDKs
    Replies: 6
    Last Post: 2009-06-09, 14:38
  2. Exceptions while loading application
    By avinash_rs in forum Mobile Java General
    Replies: 0
    Last Post: 2003-06-09, 10:53

Posting Permissions

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