[OpenSIPS-Devel] [OpenSIPS/opensips] 9f7977: Fix building Via Branch in stateless mode

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Jul 15 11:19:50 CEST 2016

  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 9f79778febd6a8f12b43280da89897c864db70d3
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-07-15 (Fri, 15 Jul 2016)

  Changed paths:
    M forward.c

  Log Message:
  Fix building Via Branch in stateless mode

Instead of copying the branch value from a previous statefull Via header (which may lead to overflow as OpenSIPS has a maximum value for the built branch), we generate a new branch value based on the previous Via branch - in this way, we have full controll over the length of the resulting Branch and we also inherit the uniqueness of the branch value (from the prev Via hdr).

Reported by Gupta, Rahul and Elliott, Ray

(cherry picked from commit 482e643469b351d12418ff54c96beee7b27dca94)

More information about the Devel mailing list