Taskprocessor Enquiry

Good day,

I have some questions regarding the output of the “core show taskprocesors” CLI command. From this link “Asterisk Task Processor Queue Size Warnings ⋆ Asterisk” I can see the outline and definition of the 13 main categories, as it were. However when looking at the output of the command in my production environment I see a BUNCH more entries specifically ones labeled similarly to “pjsip/distributor-000000fa” or “pjsip/default-00000015” or "stasis/p:endpoint:PJSIP/-00000031 "

I presume that these are threads from the main task processor, though I’d like to know a bit more i.e. what exactly is creating these threads and how they’re created etc. I was wondering if there was some kind of documentation that goes into more detail on this topic. I’ve tried searching everywhere including both the docs sites and github (to be fair I’ve only really been looking at the comments and haven’t read through the code just yet, thought it best to start here before I dive that deep) but am coming up rather short.

Any help would be greatly appreciated

Modules or core parts of Asterisk create them. Taskprocessors are a generic usable thing by anything in Asterisk. The documentation for the API is here[1]. There is no explicit document or list of everything that is using it. If you have the name you can generally go looking and find where it was created though. For example for PJSIP distributor[2].

[1] https://github.com/asterisk/asterisk/blob/master/include/asterisk/taskprocessor.h
[2] https://github.com/asterisk/asterisk/blob/master/res/res_pjsip/pjsip_distributor.c#L1241

Thanks J

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.