<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 10.10.2022 12:43, Serdar GUCLUER
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:810e4b53-a397-a03d-7add-795984355d66@netgsm.com.tr">
      <p>In my situation, i want to format string which contains
        pseudo-variables. These string are stored in db and cached with
        "cache_table" module.</p>
      <p>I tried it like that;</p>
      <pre>$avp(value) = $sql_cached_value(caching_name:column_name:key);
pv_printf($var(formatted_value), $sql_cached_value(caching_name:column_name:key));
xlog("L_INFO", "*** Value: $avp(value) | Formatted Value: $var(formatted_value) ***");
</pre>
    </blockquote>
    <p><font face="monospace">Hi Serdar,</font></p>
    <p><font face="monospace">I remember that at some point, there was
        some support for string evaluation added as part of the {s.eval}
        transformation[1].  Unfortunately, I don't recall an equivalent
        function, so you may have to play around with the transformation
        only.<br>
      </font></p>
    <p><font face="monospace">[1]:
        <a class="moz-txt-link-freetext" href="https://www.opensips.org/Documentation/Script-Tran-3-4#s.eval">https://www.opensips.org/Documentation/Script-Tran-3-4#s.eval</a></font></p>
    <p><font face="monospace">Best regards,</font></p>
    <p></p>
    <pre class="moz-signature" cols="72">-- 
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a>
OpenSIPS Summit 2022 Athens, Sep 27-30 | <a class="moz-txt-link-abbreviated" href="http://www.opensips.org/events">www.opensips.org/events</a></pre>
  </body>
</html>