<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Kamailio has inconsistent interpolation behaviour; static string assignment values are not interpolated.<div><br></div><div>So, this won’t work:</div><div><br></div><div>$var(x) = “$var(y)abc”;</div><div><br></div><div>But this will:</div><div><br></div><div>$var(x) = $var(y) + “abc”;</div><div><br></div><div>Also see:</div><div><br></div><div><a href="https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables#s_format_-_evaluate_dynamic_format">https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables#s_format_-_evaluate_dynamic_format</a></div><div><br></div><div>— Alex<br><br><div dir="ltr">—<div>Sent from mobile, with due apologies for brevity and errors.</div></div><div dir="ltr"><br><blockquote type="cite">On Oct 4, 2019, at 9:45 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hello guys,<div><br></div><div>I'm storing some data in an htable, like so:</div><div><br></div><div><font face="monospace">$var(http_query) = "/default/en_US/send.html?u=user&p=pass&l=$var(next_channel)&n=$var(to)&m=$var(message)";</font><br></div><div><br></div><div>then i need to store it:</div><div><br></div><div><font face="monospace">$sht(http_requests=>$http_req_id) = $var(http_query);</font><br></div><div><br></div><div>But what's stored is the actual vars, not the the values, it's stored like:</div><div><br></div><div><font face="monospace">sh store: /default/en_US/send.html?u=user&p=pass&l=$var(next_channel)&n=$var(to)&m=$var(message)</font><br></div><div><br></div><div>Why is that? shouldn't the vars be parsed?</div><div><br></div><div>Thanks</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div></div></div>
<span>_______________________________________________</span><br><span>Kamailio (SER) - Users Mailing List</span><br><span>sr-users@lists.kamailio.org</span><br><span>https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</span><br></div></blockquote></div></body></html>