<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>I am not sure I get the issue here, maybe you can give some
      explicite examples with assignments operations to be able to
      replicate.</p>
    <p>Just be aware, that when you delete an xavp, the list is shifted
      and another xavp can come in the same place (same index).</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 03.05.20 05:56, Sergiu Pojoga wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJZsGCk9NALqv9nfNTnXJ6YJApLqO+KjjwuE5h6TOZ0-iEcgBg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>