Just a mention,
Fixed in
https://github.com/kamailio/kamailio/issues/3832
All kudos to
https://github.com/space88man
Le 26/04/2024 à 14:58, Ihor Olkhovskyi a écrit :
Hello,
Just to confirm, as I quickly checked into a code of 5.8.x branch,
there were no modification on app_python3 module to comply with
tls_threads_mode mechanism?
Asking this beforehand posting a bug, that if using a quite simple
script into module, with tls_threads_mode = 2 Kamailio just hangs at
the start and become unresponsive.
And by simple I mean something like this
class PyKamailio:
def __init__(self):
self.test = 1
def child_init(self, rank):
"""Executed by app_python module when a new worker process
(child) is initialized by Kamailio."""
return 1
def mod_init():
""" Executed by app_python module when it is initialized by
Kamailio."""
return PyKamailio()
with tls_threads_mode = 1 and 3 it loads, but if add some HTTPS calls
inside the script (even not the calls, but importing the methods, that
are making calls with import), it just start failing on TLS load,
despite that on packets processed (OPTIONS) no python_exec() is
called, just from the fact of having HTTPS calls into Python script.
--
Best regards,
Ihor (Igor)