×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    1

    Need help with S60 3rd edition SIP API CSIPRegistrationBinding class

    hi all,

    I have to develop a sip client software based on N80 system using the SIP APIs offered by S60 3rd edition. Since It isn't suitable to use the "CSIPProfile" and "CSIPProfileRegistry", I tried the "CSIPregistrationBinding"class follow the SDK offered example below, but no packet was send out.

    //copy from the sdk refrence begin
    CSIPregistrationBindingThe SIP Client API is initiated by creating the CSIP and CSIPConnection objects:

    iSIP = CSIP::NewL(KAppUid, *iMySIPObserver);
    iConnection = CSIPConnection::NewL(*iSIP, KIapIdentifier,
    *iMyConnectionObserver);

    In order to publish a user’s SIP contact address, a SIP registration is created. This requires an AOR, a contact to be registered and in this example also CSIPRefresh is created to cause the registration to be automatically refreshed by the SIP stack.

    In the example below, localhost indicates the request for the SIP stack to replace it with a local address; i.e. sip:user@localhost means that the SIP stack will replace localhost with the local IP address.

    CSIPToHeader* aor = CSIPToHeader:ecodeL(_L8("sip:user@remote.registrar"));
    CleanupStack::PushL(aor);
    CSIPAddress* addr = CSIPAddress:ecodeL(_L8("sip:user@LOCALHOST"));
    CleanupStack::PushL(addr);
    CSIPContactHeader* contact = CSIPContactHeader::NewL(addr);
    CleanupStack::Pop(addr);
    CleanupStack::PushL(contact);
    CSIPRefresh* refresh = CSIPRefresh::NewLC();
    iRegistration = CSIPRegistrationBinding::NewL(*iConnection, aor, contact, refresh);
    CleanupStack::Pop(3); //refresh, contact, aor

    Once CSIPRegistrationBinding has been created, a REGISTER transaction can be initiated.

    iRegisterTransaction = iRegistration->RegisterL();
    //copy end


    I found out that the server's IP and port was not set, but I search the APIs and didn't find a solution.

  2. #2
    Registered User
    Join Date
    Jun 2007
    Posts
    13

    Re: Need help with S60 3rd edition SIP API CSIPRegistrationBinding class

    Hi man , it's me.
    Have you got any help on the problem? I've tried this method too, but doesn't work. it seems the SIP High level API only support Profile-Associate method to do SIP register.

Similar Threads

  1. S60 API Partnering Program
    By Nokia Ron in forum News and Announcements
    Replies: 9
    Last Post: 2008-04-16, 18:28
  2. Replies: 1
    Last Post: 2007-04-27, 13:29
  3. Replies: 4
    Last Post: 2007-03-02, 00:15
  4. Replies: 0
    Last Post: 2006-08-17, 10:36
  5. S60 2nd OR 3rd edition for new software development
    By patil_ruturaj in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-06-30, 09:30

Posting Permissions

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