Hello,
just for completeness, the htable module also offers the possibility to read values (at
startup and/or triggered from a command) from a database. Especially for values that did
not change to often this is a good option.
Cheers,
Henning
--
Henning Westerholt –
-----Original Message-----
From: Benoît Panizzon via sr-users <sr-users(a)lists.kamailio.org>
Sent: Freitag, 26. Januar 2024 08:17
To: Alex Balashov via sr-users <sr-users(a)lists.kamailio.org>
Cc: Benoît Panizzon <benoit.panizzon(a)imp.ch>
Subject: [SR-Users] Re: How to assign xavp array to htable?
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 missed. Ok, I'll find a way around
;-)
--
Mit freundlichen Grüssen
-Benoît Panizzon- @ HomeOffice und normal erreichbar
--
I m p r o W a r e A G - Leiter Commerce Kunden
______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00
CH-4133 Pratteln Fax +41 61 826 93 01
Schweiz Web
http://www.imp.ch
______________________________________________________
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send
an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe: