<p>We do have a strange behavior while using UACreg module and rtpengine.</p>

<p>So far we used uacreg to register to an external pbx and we are using rtpenginde since we do not know if there is NAT on the far side. With an kamailio 4.4.2 there are no problems doing this. Now we tried to update to 4.4.3 and 5 (latest) we do see an issue with this two modules.</p>

<p>Problem we have is on an basic call while DA chellange. By using DA catching from uac module and an updated SDP from rptengine the uac module seems to crash and the DA chellange (unauth) gets forwarded to the calling side instead of answered by the uac Module.</p>

<p>it seems the DA chellange is causeing the problem but only if the original invite was modified by RTP engine.</p>

<p>in the logs i can see this happening:</p>

<pre><code>f94ea564de0806c4a811bce674@xx.xx.120.5:5060  Status: <null> <null> F:user T:123 R:123] Remote asked for authentication
Oct 11 16:02:11 gaudino /usr/sbin/kamailio[8342]: ERROR: <core> [msg_translator.c:417]: clen_builder(): no message body found (missing crlf?)
Oct 11 16:02:11 gaudino /usr/sbin/kamailio[8342]: ERROR: <core> [msg_translator.c:1963]: build_req_buf_from_sip_req(): Error while adjusting Content-Length
Oct 11 16:02:11 gaudino /usr/sbin/kamailio[8342]: ERROR: tm [t_fwd.c:462]: prepare_new_uac(): could not build request
Oct 11 16:02:11 gaudino /usr/sbin/kamailio[8342]: ERROR: tm [t_fwd.c:1723]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches
Oct 11 16:02:11 gaudino /usr/sbin/kamailio[8342]: ERROR: tm [tm.c:1415]: _w_t_relay_to(): ERROR: w_t_relay_to: t_relay_to failed

</code></pre>

<p>When i disable the rtpengine the problem does not occur as well as the kamailio 4.4.2 did not have this issue.</p>

<p>I can provide config, traces and debug logs (via mail) please tell me where to send.</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/819">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZUeWAk0vMbGAF_VlWeZ7NVP6vsyOks5qy5fvgaJpZM4KTq0z">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zb6U6mxEQT6McsbsogFrdIEPvupwks5qy5fvgaJpZM4KTq0z.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/819"></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":"DESCRIPTION","message":"UAC Module Problems when using rtpengine (#819)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/819"}}}</script>