<p>Given that there are multiple Route sets , each with one param , check_route_param() function fails to search the proper param.s string . <br>
The condition params.s[0]!=';'  holds false and it stops the loop only when it encounters another ";" character which is not part of the Route header .</p>

<p>Eg: (these are not actual Route params, but this is what it is printing instead - this is part of my INVITE, and these headers are above Route ):<br>
rr [loose.c:985]: check_route_param(): params are <;spi-s=424238335#015#012Require: sec-agree#015#012Proxy-Require: sec-agree#015#012Cont></p>

<p>This patch is a functional workaround. <br>
Note I have also seen there routed_params.s not pointing to the actual params , so perhaps there might be another issue before reaching this code.   </p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/663'>https://github.com/kamailio/kamailio/pull/663</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>rr: fix Route param search in check_route_param()</li>
  <li>Merge remote-tracking branch 'upstream/master' into fix-check_route_param</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/663/files#diff-0">modules/rr/loose.c</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/663.patch'>https://github.com/kamailio/kamailio/pull/663.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/663.diff'>https://github.com/kamailio/kamailio/pull/663.diff</a></li>
</ul>

<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/pull/663">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZaDW6QPF6IclJ7VhCh_2z_whfNFcks5qJWoGgaJpZM4Iv45j">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZfWRNVF1iJ9UDx94eCLr6gvweTu6ks5qJWoGgaJpZM4Iv45j.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/663"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>