[OpenSIPS-Devel] [OpenSIPS/opensips] 23910d: Fix cookie collision when using rtpengine/rtpproxy...

John Burke noreply at github.com
Wed Apr 21 16:21:28 EST 2021


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 23910d1b7df74d707bf7974ba2fad47905aa26d8
      https://github.com/OpenSIPS/opensips/commit/23910d1b7df74d707bf7974ba2fad47905aa26d8
  Author: John Burke <john at voxtelesys.net>
  Date:   2021-04-21 (Wed, 21 Apr 2021)

  Changed paths:
    M modules/rtpengine/rtpengine.c
    M modules/rtpproxy/rtpproxy.c

  Log Message:
  -----------
  Fix cookie collision when using rtpengine/rtpproxy modules

When using Docker, PIDs often are the same between OpenSIPS instances and cannot be used as a good source for cookie prefix. Use prefix with random influence instead.

Fixes #2459

(cherry picked from commit e6cfd6f3c7e358ee9581aa9adca6398f4eead033)


  Commit: 177187c00fb560951cc6b159fc57aff09fb2e42b
      https://github.com/OpenSIPS/opensips/commit/177187c00fb560951cc6b159fc57aff09fb2e42b
  Author: John Burke <john at voxtelesys.net>
  Date:   2021-04-21 (Wed, 21 Apr 2021)

  Changed paths:
    M modules/rtpengine/rtpengine.c
    M modules/rtpproxy/rtpproxy.c

  Log Message:
  -----------
  Instead of summation, use combination schema for cookie: `PID_RAND_SEQN`

(cherry picked from commit cc851498a3d1345cd680e69d18da7303d26bcb06)


Compare: https://github.com/OpenSIPS/opensips/compare/078887fef61f...177187c00fb5



More information about the Devel mailing list