[OpenSIPS-Devel] [OpenSIPS/opensips] d65f37: [dispatcher] Improve probing by sending the probs ...

Bogdan Andrei IANCU noreply at github.com
Tue Jan 31 07:56:20 UTC 2023


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d65f37ed01a8cc0ef4aa42ea64e3263755ea8925
      https://github.com/OpenSIPS/opensips/commit/d65f37ed01a8cc0ef4aa42ea64e3263755ea8925
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-01-31 (Tue, 31 Jan 2023)

  Changed paths:
    M modules/dispatcher/dispatch.c

  Log Message:
  -----------
  [dispatcher] Improve probing by sending the probs outside locking

Collect the data under locking, move the OPTIONs probing outside the locking, to be sure that any potential blocking on SIP level sending is not leading to lock starvation.
Simialar to 4c7a7a83f93b18eefe4de1fe13c67f9d7561e6a3 (drouting)
Related to #2438

(cherry picked from commit 8139e2799ee8d39e9cc99a189f2b2baa2eb0c39d)


  Commit: 9705834ab26619a1712cbe6f1fed6988c150804a
      https://github.com/OpenSIPS/opensips/commit/9705834ab26619a1712cbe6f1fed6988c150804a
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-01-31 (Tue, 31 Jan 2023)

  Changed paths:
    M modules/dispatcher/dispatch.c

  Log Message:
  -----------
  [dispatcher] fix chaining and freeing of probing packs

Some probing packs may be freed before ending circulating the list (if the prob sending fails), so we need to take care of the linking.

(cherry picked from commit c6bcd8435c5b3a648efc28a7173a43653257eb40)


  Commit: 596755f0ec3ae1de27f74c9cb644b491ed86467b
      https://github.com/OpenSIPS/opensips/commit/596755f0ec3ae1de27f74c9cb644b491ed86467b
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-01-31 (Tue, 31 Jan 2023)

  Changed paths:
    M modules/dispatcher/dispatch.c
    M modules/dispatcher/dispatch.h

  Log Message:
  -----------
  [dispatcher] Fix hackish extraction of TO URI upon pinging

Better use the URI stored in callback params, rather then using the hackish way of extracting the URI from the T-stored To hdr.

This is a side effect of 9af1926
Reported by @denyspozniak
Closes #3000

(cherry picked from commit e7aeb9723c70e57b472293027135fd2e80d461d9)


Compare: https://github.com/OpenSIPS/opensips/compare/5ba5059247cf...596755f0ec3a



More information about the Devel mailing list