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