<p></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aalba6675/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aalba6675">@aalba6675</a>: thanks for taking care of it! Rank>0 means that it is a SIP worker process (one that handles incoming sip traffic), but kamailio config parts can be executed with SIP messages by other processes, for example the main timer process does the retransmission and may execute a <code class="notranslate">failure_route</code> block.</p>
<p dir="auto">I would not worry about no-fork mode, that is not fully functional anyhow (e.g., not tcp support) and not sure if anyone still tests with that mode.</p>
<p dir="auto">If the function has to be executed in children processes, then the ranks PROC_MAIN, PROC_INIT and PROC_POSTCHILDINIT have to be skipped -- some details about ranks in the code at:</p>
<ul dir="auto">
<li><a href="https://github.com/kamailio/kamailio/blob/c37ccdc6e3bad0af4644941a872f510c51936c58/src/core/sr_module.h#L144">https://github.com/kamailio/kamailio/blob/c37ccdc6e3bad0af4644941a872f510c51936c58/src/core/sr_module.h#L144</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3125#issuecomment-1152262315">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLFDDEWEWY6FZ7A273VOMRKPANCNFSM5XHWESZA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZJAXI7LDE4NJZYFEKTVOMRKPA5CNFSM5XHWESZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOISXCBKY.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3125/1152262315</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3125#issuecomment-1152262315",
"url": "https://github.com/kamailio/kamailio/issues/3125#issuecomment-1152262315",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>