<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><tt>Hi Kirill,</tt></p>
    <p><tt>The current way to achieve this would be to your map as a json
        string (using the $json variable), attached to the "%ip" key,
        using the cachedb_local module. This solution has an added
        encoding/decoding overhead, but it gets the job done quickly and
        intuitively.<br>
      </tt></p>
    <p><tt>Best regards,</tt><br>
    </p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 07.03.2018 08:21, Kirill Galinurov
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPDUut_2sT5i=bm8PN3mB0CAwQM3_AJ2vX=5rwCUBk3dxNBaLA@mail.gmail.com">
      <div dir="ltr">Hi. we need some module to store some keys like 
        %ip -> { port => 15643,
        <div>                                                           
                                            username => 'test',</div>
        <div>                                                           
                                            domain => 'test',</div>
        <div>                                                           
                                            auth_count => '2'}</div>
        <div>to do  protect against dictionary attacks. Like in
          Kamaillio.</div>
        <div>What is the best module to do this in   Opensips ?</div>
        <div><br>
          <div><br>
            <div> </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>