sipservlet-spec
  1. sipservlet-spec
  2. SIPSERVLET_SPEC-19

Clarify doResponse vs. doBranchedRespone handling

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-pr
    • Labels:
      None

      Description

      Clarify what the container returns for a doResponse when a single branch is created one at a time. Should doResponse return the best response or the actual response? Its clear in the JSR that doBranchResponse always returns the actual response. So just clarify what the doResponse returns after reProxying. We had a customer run into this when migrating an application to our container implementation.

        Activity

        Hide
        binod added a comment -

        If I read the 289 spec correctly, doResponse is invoked with the best response.

        <snip from 12.2.4.2 Correlating responses to proxy branches>
        Only after the last branch has received a final response,
        the container must determine the best final response and pass it to the doResponse() method.
        </snip>

        Show
        binod added a comment - If I read the 289 spec correctly, doResponse is invoked with the best response. <snip from 12.2.4.2 Correlating responses to proxy branches> Only after the last branch has received a final response, the container must determine the best final response and pass it to the doResponse() method. </snip>
        Hide
        binod added a comment -

        Would the following text work for clarifying this further?
        <snip>
        If an application resume to proxy requests in the doResponse(), after completion of each round of such re-proxying, container will invoke doResponse() with the best final response of all the previous rounds of proxying.
        </snip>

        Show
        binod added a comment - Would the following text work for clarifying this further? <snip> If an application resume to proxy requests in the doResponse(), after completion of each round of such re-proxying, container will invoke doResponse() with the best final response of all the previous rounds of proxying. </snip>
        Hide
        bpulito added a comment -

        Binod, I think this text takes care of it. Thanks!

        Show
        bpulito added a comment - Binod, I think this text takes care of it. Thanks!
        Hide
        binod added a comment -

        This clarification is now part of 0.8 version distributed.

        https://java.net/projects/sipservlet-spec/downloads/directory/v0.8

        Show
        binod added a comment - This clarification is now part of 0.8 version distributed. https://java.net/projects/sipservlet-spec/downloads/directory/v0.8

          People

          • Assignee:
            binod
            Reporter:
            bpulito
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: