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

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


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 060b72b24b1488bbbecb5c1527f13036e34c4582
      https://github.com/OpenSIPS/opensips/commit/060b72b24b1488bbbecb5c1527f13036e34c4582
  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