Re: [OpenSIPS-Users] Formating issue for string that contains pv

2022-10-11 Thread Serdar GUCLUER

Hi Liviu,

I tried /s.eval/ transformation for opensips 3.3.1 and it worked, thanks 
for your helping.


Serdar



Hi Serdar,

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.


[1]: https://www.opensips.org/Documentation/Script-Tran-3-4#s.eval

Best regards,



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Formating issue for string that contains pv

2022-10-10 Thread Serdar GUCLUER

Hi All,

In my situation, i want to format string which contains 
pseudo-variables. These string are stored in db and cached with 
"cache_table" module.


I tried it like that;

$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) 
***");

but noting is changed,

*** Value: r-uri: $ru | Formatted Value:  r-uri: $ru ***

Where am i doing wrong?
Thanks in advance.

Serdar
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users