<p>I don't think is correct what you did - while iterating through all the chars of the username, it exits with error if any char is not digit -&gt; if it is before OR after the set of digits (in the ascii array). <br>
So it is an "OR" and not an "AND" . A digit cannot be before 0 AND after 9 in the same time :) .<br>
Can you print "c" in the "if" here:<br>
   <a href="https://github.com/OpenSIPS/opensips/blob/2.1/modules/uri/checks.c#L354">https://github.com/OpenSIPS/opensips/blob/2.1/modules/uri/checks.c#L354</a><br>
(before the return -1).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/762#issuecomment-172577012">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcifxopfexpacCon0ROkm1skWRrbe9ks5pbQnYgaJpZM4HG2RL.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/OpenSIPS/opensips/issues/762#issuecomment-172577012"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>