Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User relliott97's Avatar
    Join Date
    Nov 2004
    Posts
    25
    Hello,

    A SIP:INVITE message is received by the emulator and the MSIPConnectionObserver::IncomingRequest (CSIPServerTransaction *aTransaction) method is invoked.

    In turn I send a 200 OK message back to the server as follows:

    CSIPRequestElements const *reqElems = aTransaction->RequestElements();
    if (reqElems->Method() == KMethodINVITE)
    {
    if (aTransaction->ResponseAllowed())
    {
    CSIPResponseElements *resElems = CSIPResponseElements::NewLC(200, _L8("OK"));
    aTransaction->SendResponseL(resElems);
    }
    }

    The problem is that the Contact attribute is missing from the 200 OK. The server receives the message, reports an error indicating the missing contact attribute and fails to send the ACK back to the emulator.

    I investigated the Chipflip app and the 200 OK messages all seem to contain the contact attirbute!

    Any Nokia SIP Stack gurus out there?

    Thanks,
    Rob.

  2. #2
    Registered User randhawp's Avatar
    Join Date
    Mar 2003
    Location
    Leh, Ladhak.
    Posts
    41
    The transaction needs to be associated with the dialog that was initially created.
    USe CSIPInviteDialogAssoc (transaction) to get the context of the dialog.
    Let me know how you go.

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