<p>The code to compute the index is repeating in 3 places. It should be made a function. You can add an addition patch to this pull request and I will merge then.</p>

<p>In long term, the list of characters that can be used has to be made a module parameter, for proper flexibility.</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/194#issuecomment-111114625">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZQ8ZnthaReHRsbUKP7FYOtGQwrADks5oSXWggaJpZM4E8COL.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/194#issuecomment-111114625"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>