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

Bogdan Andrei IANCU noreply at github.com
Tue Jan 31 08:43:00 UTC 2023


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 1461263f0552566f689818fcd8f71972ae1dfe8a
      https://github.com/OpenSIPS/opensips/commit/1461263f0552566f689818fcd8f71972ae1dfe8a
  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)
(cherry picked from commit d65f37ed01a8cc0ef4aa42ea64e3263755ea8925)
(cherry picked from commit 322e9b962cc17198933def85cdb23672e35f505a)


  Commit: 26661fda37a35591765e2e9c79b516bd0227149b
      https://github.com/OpenSIPS/opensips/commit/26661fda37a35591765e2e9c79b516bd0227149b
  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)
(cherry picked from commit 9705834ab26619a1712cbe6f1fed6988c150804a)
(cherry picked from commit da15ab3ae4fed8c5c3bd1db0e1675f2e44f1969c)


  Commit: b66b74b43439248ef4ac09641dacee019124635e
      https://github.com/OpenSIPS/opensips/commit/b66b74b43439248ef4ac09641dacee019124635e
  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)
(cherry picked from commit 596755f0ec3ae1de27f74c9cb644b491ed86467b)
(cherry picked from commit fff1381a10658519623512bbdcf6beced770f3a8)


Compare: https://github.com/OpenSIPS/opensips/compare/263afc9a022a...b66b74b43439



More information about the Devel mailing list