<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 11.01.2022 11:50, Alberto wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANoA6_KTZ-XTCgU9pWg9YDPdH6TZizXbZij9K+Hb9Yvaom-mjw@mail.gmail.com">
<div><br>
</div>
<div>How do I insert values in the kv_store column?</div>
<div>It's easy to use the attr_avp, but I need to store a couple
more values upon registrations and the key-value storage would
be the perfect solution.</div>
</blockquote>
<p><font face="monospace">Hello, Alberto!</font></p>
<p><font face="monospace">The "kv_store" column is for internal
purposes, hence there is no way to READ or WRITE values to it
from the opensips.cfg script.</font></p>
<p><font face="monospace">Regarding attr_avp<sup>[1]</sup>: why not
store your data in JSON format (perhaps using the $json_compact<sup>[2]</sup>)
variable? This way, you can give it structure, using as many
nesting levels as necessary in order to fit all of it.<br>
</font></p>
<p><font face="monospace">[1]:
<a class="moz-txt-link-freetext" href="https://opensips.org/docs/modules/3.3.x/registrar.html#param_attr_avp">https://opensips.org/docs/modules/3.3.x/registrar.html#param_attr_avp</a><br>
[2]:
<a class="moz-txt-link-freetext" href="https://opensips.org/docs/modules/3.3.x/json.html#pv_json_compact">https://opensips.org/docs/modules/3.3.x/json.html#pv_json_compact</a><br>
</font></p>
<p><font face="monospace">Best Regards,</font><br>
</p>
<pre class="moz-signature" cols="72">--
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
</body>
</html>