[OpenSIPS-Devel] [OpenSIPS/opensips] 482e64: Fix building Via Branch in stateless mode

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Jul 11 18:39:25 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 482e643469b351d12418ff54c96beee7b27dca94
      https://github.com/OpenSIPS/opensips/commit/482e643469b351d12418ff54c96beee7b27dca94
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-07-11 (Mon, 11 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




More information about the Devel mailing list