<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Kirill!<br>
      <br>
      You can use the attr_avp [1] in the registrar module to attach the
      value to the contact. You could do something like:<br>
    </tt><br>
    <tt>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      modparam("registrar", "attr_avp", "$avp(attr)")<br>
      ...<br>
      if (is_method("REGISTER")) {<br>
          $avp(attr) = $hdr(CUSTOM_HEADER);<br>
          save("location");<br>
          exit;<br>
      }<br>
      <br>
      After that, you will be able to see the attribute in the MI
      commands output.<br>
      <br>
      [1]
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id293909">http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id293909</a><br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 12/22/2016 09:43 AM, Denis wrote:<br>
    </div>
    <blockquote cite="mid:1146031482392633@web40j.yandex.ru" type="cite">
      <div>Hello</div>
      <div> </div>
      <div><a moz-do-not-send="true"
          href="http://www.opensips.org/Documentation/Script-CoreVar-2-2">http://www.opensips.org/Documentation/Script-CoreVar-2-2</a></div>
      <div>3.91</div>
      <div> </div>
      <div>-- </div>
      <div>С уважением, Денис.</div>
      <div>Best regards, Denis</div>
      <div> </div>
      <div> </div>
      <div> </div>
      <div> </div>
      <div> </div>
      <div>22.12.2016, 10:28, "Kirill Galinurov"
        <a class="moz-txt-link-rfc2396E" href="mailto:k.galinurov@gmail.com"><k.galinurov@gmail.com></a>:</div>
      <blockquote type="cite">
        <div>Hi All. I need to store some additional info about user
          from custom sip header in Register request. How i can do it?
          Can i get this info later from ul_dump or ul_show_contact
          command ? </div>
        ,
        <p>_______________________________________________<br>
          Users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
          <a moz-do-not-send="true"
            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></p>
      </blockquote>
      <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>