<p>Hi,</p>
<p>I'm trying to apply this patch against the 5.0.4 source release and I'm getting the following errors:</p>
<p>patch -p1 < dmq_usrloc.patch</p>
<pre><code>patching file src/modules/dmq_usrloc/usrloc_sync.c
Hunk #1 FAILED at 323.
Hunk #2 succeeded at 412 (offset 37 lines).
Hunk #3 succeeded at 434 (offset 38 lines).
Hunk #4 FAILED at 649.
Hunk #5 FAILED at 686.
Hunk #6 succeeded at 551 (offset -181 lines).
</code></pre>
<p>I downloaded the commit with ".patch" added to the end url into the above mentioned dmq_usrloc.patch file.</p>
<p>I must be missing something here, I just cannot see what it is. Any thoughts?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1299#issuecomment-342507471">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZcrQdDPNc96-KZUIumj0dMS3VVlPks5s0G-HgaJpZM4QPgdU">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZduLwA61sCdYmjX8mmYPCOG7lZ_7ks5s0G-HgaJpZM4QPgdU.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/issues/1299#issuecomment-342507471"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@00Asgaroth00 in #1299: Hi,\r\n\r\nI'm trying to apply this patch against the 5.0.4 source release and I'm getting the following errors:\r\n\r\npatch -p1 \u003c dmq_usrloc.patch\r\n```\r\npatching file src/modules/dmq_usrloc/usrloc_sync.c\r\nHunk #1 FAILED at 323.\r\nHunk #2 succeeded at 412 (offset 37 lines).\r\nHunk #3 succeeded at 434 (offset 38 lines).\r\nHunk #4 FAILED at 649.\r\nHunk #5 FAILED at 686.\r\nHunk #6 succeeded at 551 (offset -181 lines).\r\n```\r\nI downloaded the commit with \".patch\" added to the end url into the above mentioned dmq_usrloc.patch file.\r\n\r\nI must be missing something here, I just cannot see what it is. Any thoughts?"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1299#issuecomment-342507471"}}}</script>