[SR-Users] Re: How to assign xavp array to htable?

2024-01-26 Thread Henning Westerholt via sr-users
/blog/ Kamailio services – https://gilawa.com > -Original Message- > From: Benoît Panizzon via sr-users > Sent: Freitag, 26. Januar 2024 08:17 > To: Alex Balashov via sr-users > Cc: Benoît Panizzon > Subject: [SR-Users] Re: How to assign xavp array to ht

[SR-Users] Re: How to assign xavp array to htable?

2024-01-25 Thread Benoît Panizzon via sr-users
Hi Alex > sql_xquery("db", "SELECT ...", "stuff"); > > $var(i) = 0; > > while(defined $xavp(stuff[$var(i)])) { > $sht(tbl=>$xavp(stuff[$var(i)]=>id)) = > $xavp(stuff[$var(i)]=>otherval); $var(i) = $var(i) + 1; > } > > etc. Thank you. So there is no 'direct' way I

[SR-Users] Re: How to assign xavp array to htable?

2024-01-25 Thread Alex Balashov via sr-users
> On 25 Jan 2024, at 06:34, Benoit Panizzon via sr-users > wrote: > > Hi List > > Via sql_xquery I get a stacked xavp aka array. > > I would like to store that stacked xavp into a hash table for later usage in > other transactions. Is this > possible? You can always iterate through the