title: How to provision a test user in kamailio?
body: <p>I have just (for the first time) compiled and installed kamailio, following <a href="http://www.kamailio.org/wiki/" rel="nofollow">this</a> guide. For configuration, I am following the documentation <a href="http://www.kamailio.org/wiki/" rel="nofollow">here</a></p>
  
  <p>I am trying to test a new SIP user. I have created it with:</p>
  
  <pre><code>» kamctl add test testpasswd
  </code></pre>
  
  <p>The user is there: </p>
  
  <pre><code>» kamctl db show subscriber
  |----+----------+--------------------+------------+---------------+----------------------------------+----------------------------------+------|
  | id | username | domain             | password   | email_address | ha1                              | ha1b                             | rpid |
  |----+----------+--------------------+------------+---------------+----------------------------------+----------------------------------+------|
  |  5 | test     | tethys.wavilon.net | testpasswd |               | 5cf40781f33c6f43a26244046564b67e | eb898de815bc16092e4c2e8c04bfe188 | NULL |
  |----+----------+--------------------+------------+---------------+----------------------------------+----------------------------------+------|
  </code></pre>
  
  <p>I try to connect with my sip client, and the registration times out (<code>Request Timeout (408)</code>). I have tried to verify what is going on by doing:</p>
  
  <pre><code>» kamailio -l &lt;my-ip&gt; -E -ddddd -D 1
  </code></pre>
  
  <p>And I see lots of messages, one of them interesting:</p>
  
  <pre><code>0(15818) DEBUG: auth [api.c:86]: pre_auth(): auth:pre_auth: Credentials with realm '&lt;my-ip&gt;' not found
  </code></pre>
  
  <p>But I do not know how to solve this problem. How can I verify what credentials associated to realm <code>&lt;my-ip&gt;</code> are configured? What is a "realm"? I do not find any beginners guide for <code>kamailio</code>. Is there a simple how-to on how to setup a simple <code>kamailio</code> configuration?</p>