[OpenSIPS-Devel] [OpenSIPS/opensips] b00389: b2b_entities: add more entropy to from_tag generation

Răzvan Crainea noreply at github.com
Mon Dec 5 11:48:39 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b003891b468d5730fd68b445331735a92c770bce
      https://github.com/OpenSIPS/opensips/commit/b003891b468d5730fd68b445331735a92c770bce
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2022-12-05 (Mon, 05 Dec 2022)

  Changed paths:
    M modules/b2b_entities/client.c

  Log Message:
  -----------
  b2b_entities: add more entropy to from_tag generation

The initial from-tag generation cosisted of an md5 hash over the From
URI. Thus, if you would have generating client requests to the same
entity (such as a media server), you would always get the same from-tag
for all those requests.
The current patch adds more entropy when generating the from_tag, such
as the current timestamp (expressed in milliseconds) along with the
process pid.





More information about the Devel mailing list