Hi,
shouldn't it be
$(xavp(tm_contacts)[0]) = $null; ?

Cheers,

Federico

On Sun, May 3, 2020 at 5:57 AM Sergiu Pojoga <[email protected]> wrote:

> Hi there,
>
> For some reason I can't figure this seemingly simple Subj, may be someone
> can help.
>
> In my particular case, trying to delete Contact[0] from the xavp storing
> Contacts after t_load_contacts()
>
> $xavp(tm_contacts[0]) = $null;
>
> 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.
>
> Thanks.
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [email protected]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to