<div dir="auto">I'll do that.<div dir="auto">Thanks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 11 Jan 2022, 12:42 Liviu Chircu, <<a href="mailto:liviu@opensips.org">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>On 11.01.2022 11:50, Alberto wrote:<br>
</div>
<blockquote type="cite">
<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 href="https://opensips.org/docs/modules/3.3.x/registrar.html#param_attr_avp" target="_blank" rel="noreferrer">https://opensips.org/docs/modules/3.3.x/registrar.html#param_attr_avp</a><br>
[2]:
<a href="https://opensips.org/docs/modules/3.3.x/json.html#pv_json_compact" target="_blank" rel="noreferrer">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 cols="72">--
Liviu Chircu
<a href="http://www.twitter.com/liviuchircu" target="_blank" rel="noreferrer">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" target="_blank" rel="noreferrer">www.opensips-solutions.com</a></pre>
</div>
</blockquote></div>