Hi Federico, So I thought too, mentioned in my 1st post.
But after assigning $null, the xavp contains the following Contact (reference to only the RUIDs): $xavp(tm_contacts[0]) = $null => ulcx-5e88a468-587c-3 $xavp(tm_contacts[1]) = $null => ulcx-5e88a468-587c-3 & ulcx-5e88a468-587c-2 $xavp(tm_contacts[3]) = $null => empty On Mon, May 11, 2020 at 11:34 AM Federico Cabiddu < [email protected]> wrote: > 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 >
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
