<div><div dir="auto">Perfect, thanks Alex!</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 5 Oct 2019 at 03:20, Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div 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" target="_blank">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 <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"></div></blockquote></div></div><div dir="auto"><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" 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>
</div></blockquote></div></div><div dir="auto"><div><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>Kamailio (SER) - Users Mailing List</span><br><span><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a></span><br><span><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br></div></blockquote></div></div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><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>