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

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


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8e4794a420dc0aac92bda3d08f53e1bb4c86baaa
      https://github.com/OpenSIPS/opensips/commit/8e4794a420dc0aac92bda3d08f53e1bb4c86baaa
  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.

(cherry picked from commit b003891b468d5730fd68b445331735a92c770bce)





More information about the Devel mailing list