Hi Ilie,
On Wed, Jul 10, 2019 at 03:13:25PM +0100, Ilie Soltanici wrote:
I tried also:
*$var(account)="" + "$(au{s.select,0,-}{s.toupper})-$(au{s.select,1,-})";*
I assume the hyphen (`-`) between $(au{s.select,0,-}{s.toupper}) and $(au{s.select,1,-}) is meant to be a string literal.
If so, try this but without encapsulating the transformations in quotes, i.e.:
$var(account) = "" + $(au{s.select,0,-}{s.toupper}) + "-" + $(au{s.select,1,-});
You might also get a cleaner result out of:
https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables#s_format_-_eva...
-- Alex