sipservlet-spec
  1. sipservlet-spec
  2. SIPSERVLET_SPEC-32

It is not 100% clear in the documentation whether an empty list for a particular header in B2BuaHelper.createRequest(..., headerMap) will clear that header out.

    Details

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

      Description

      By using the B2BuaHelper.createRequest(..., headerMap) the user can create a new "b2bua:ed" request where system headers such as Route-headers can be overridden. However, the documentation is not really clear what the behavior is when you supply an empty value-list for a particular header. Consider the following example:

      Incoming INVITE which has two route headers like so:

      INVITE sip:alice@example.com SIP/2.0
      ...
      Route: <route 1>
      Route: <route 2>

      If I wanted to use the b2buahelper to create the second leg but do not want to the Route headers to be present in the new request one could assume that the following would work:

      Map<String, List<String>> headerMap = ...
      headerMap.put("Route", new ArrayList<String>());
      SipServletRequest req = helper.createRequest(origRequest, linked, headerMap);

      I would now assume that the previous two routes have been wiped out. It is not clear in the specification that this is what is supposed to happen and at least one container implementation had not implemented it this way.

        Activity

        jonbo372 created issue -
        binod made changes -
        Field Original Value New Value
        Assignee binod [ binod ]
        binod made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0 [ 16851 ]
        Resolution Fixed [ 1 ]
        binod made changes -
        Fix Version/s 2.0-pr [ 16895 ]
        Fix Version/s 2.0 [ 16851 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: