space88man created an issue (kamailio/kamailio#4213)
### Description During GIL refactoring as part of enablement of free-threading in Python: - app_python3s 62b4ee4 - app_python3 0ffe157
an incorrect storage specifier was used to save PyThreadState.
This result in deadlock in the KEMI modules
This issue is a placeholder for the correct threading fix for `threads_mode = 1`
Note that `threads_mode = 0` (the default) is the original threading model
### Reference See gh #4153
space88man left a comment (kamailio/kamailio#4213)
- closing with commits to master and 6.0; reopen if you encounter deadlocks with cfgengine python - verification `threads_mode = 1`: - kamailio routing should work without deadlocks - start some python threading objects in the load script — these should be observed to make progress
Closed #4213 as completed.