[SR-Users] How to delete all values for a certain xavp index

Federico Cabiddu federico.cabiddu at gmail.com
Mon May 11 17:31:15 CEST 2020


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

Cheers,

Federico

On Sun, May 3, 2020 at 5:57 AM Sergiu Pojoga <pojogas at gmail.com> 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
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200511/e214ef34/attachment.html>


More information about the sr-users mailing list