Hi list,
I have two doubts about selects framework that I wanted to clarify if
possible:
- How do I interpolate a select inside enclosed quotes? i.e.
xlog("channels count for carlos: $sel(cnxcc.channels[carlos].count)");
The parameter "carlos" cannot be resolved and Kamailio fails to start
during pvar's fixup.
Currently, I'm working around this using the following construction:
$var(c) = @cnxcc.channels["carlos"].count;
xlog("channels count for carlos: $var(c)");
- How do I dynamically tell to a module the parameter from which I want to
know its channel count? i.e.
$var(user) = "carlos";
if (@cnxcc.channels[$var(user)].count > 10) {
xlog("too many channels");
}
Is this possible at all?
Thanks in advance,
--
Carlos
http://caruizdiaz.com
+595981146623