<p>I think escape.user is trying to follow the SIP grammar/constraints for username, or at list it should. For db operations, maybe escape.common or sql transformation are more suitable.</p>

<p>At the end, the code can be patches, probably it's about lifting some restrictions there.</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 or <a href="https://github.com/kamailio/kamailio/issues/549#issuecomment-204304439">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZfIVi5um-Oan2j4t3ceAt8RZs8mCks5pzNVsgaJpZM4H3OnX.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/549#issuecomment-204304439"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>