Hi,
Robin Vleij wrote:
Hi!
I'm running into a little problem using the prefix() function. According
to the docs I can only use strings as prefixes and this works fine
everywhere in our config.
Now I'm trying to do something like this:
prefix($avp(s:t_prefix));
Customer should be able to choose their own prefixes for certain types
of traffic. We get a custom prefix in from the PSTN gateways, where we
want to then replace that "internal" prefix (strip(4)) with a
configurable prefix. Why can't we use variables in the prefix function?
I could try to use $ru = $avp(s:t_prefix) + $original_ru or something,
but on a short try-run this didn't seem as easy as that.
prefix() function takes only static string as parameter. The equivalent
with variables is:
$rU = $avp(s:t_prefix) + $rU;
Regards,
Ramona
Any ideas or anyone doing something like this?
/robin
--
Elena-Ramona Modroiu
http://www.asipto.com
http://www.rosdev.ro