<div dir="ltr">@Federico<br><div><br></div><div>Just to clarify, noticed a small diff in your suggested expression:</div><div><br></div><div>$(xavp(tm_contacts)[0]) = $null; # results in error in cfg "Can't get from cache: $(xavp(tm_contacts)[0])"</div><div><br></div><div>$xavp(tm_contacts[0]) = $null; # no errors, but still unexpected values<br></div><div><br></div><div>Thanks.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 11, 2020 at 11:41 AM Sergiu Pojoga <<a href="mailto:pojogas@gmail.com">pojogas@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Federico,<br><div><br></div><div>So I thought too, mentioned in my 1st post.</div><div><br></div><div>But after assigning $null, the xavp contains the following Contact (reference to only the RUIDs):<br><br>$xavp(tm_contacts[0]) = $null => ulcx-5e88a468-587c-3<br>$xavp(tm_contacts[1]) = $null => ulcx-5e88a468-587c-3 & ulcx-5e88a468-587c-2<br>$xavp(tm_contacts[3]) = $null => empty<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 11, 2020 at 11:34 AM Federico Cabiddu <<a href="mailto:federico.cabiddu@gmail.com" target="_blank">federico.cabiddu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>shouldn't it be</div>$(xavp(tm_contacts)[0]) = $null; ?<div><br><div><div>Cheers,<br></div><div><br></div><div>Federico</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 3, 2020 at 5:57 AM Sergiu Pojoga <<a href="mailto:pojogas@gmail.com" target="_blank">pojogas@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi there,<br><div><br></div><div>For some reason I can't figure this seemingly simple Subj, may be someone can help.</div><div><br></div><div>In my particular case, trying to delete Contact[0] from the xavp storing Contacts after t_load_contacts()</div><div><br></div><div>$xavp(tm_contacts[0]) = $null;<br></div><div><br></div><div>Above results in all but the latest added value being deleted. Assigning $null to index[1] results in all but the latest 2 being delete and so on.<br></div><div><br></div><div>Thanks.</div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
</blockquote></div>