<p>The problem may be earlier in worker_loop():</p>
<p>95 if (parse_from_header(current_job->msg) < 0) {<br>
96 LM_ERR("bad sip message or missing From hdr\n");<br>
97 } else {<br>
98 dmq_node = find_dmq_node_uri(node_list, &((struct to_body*)current_job->msg->from->parsed)->uri);<br>
99 }</p>
<p>The msg has already been cloned and as I understand it, we should not parse a cloned msg since doing so will link pkg structures to shm msg.</p>
<p>As we already pre-parsed the msg prior to cloning it (when adding the job to the worker queue), the parsed from header should already be available to us.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/59#issuecomment-72187202">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZV4YoqhsOGu2EQcdiRsuqGmqRNshks5nm2B-gaJpZM4DY1s8.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/kamailio/kamailio/pull/59#issuecomment-72187202"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>