Please see in http://www.kamailio.org/wiki/cookbooks/4.2.x/pseudovariables
$_s(format) - Evaluate dynamic format
*$_s(format)* - returns the string after evaluating all pseudo-variables in
format
$var(x) = "sip:" + $rU + "@" + $fd;
# is equivalent of:$var(x) = $_s(sip:$rU@$fd);
BR
Hello;
it works both ways. Could you explain what i did here?
$rU=*$_s*($avp(i:69)$rU);
$rU=*$_s*($avp(s:69)$rU);
Thanks.
--
View this message in context:
http://sip-router.1086192.n5.nabble.com/Kamailio-V4-2-5-append-prefix-to-Request-Uri-problem-tp138258p138277.html
Sent from the Users m
Hi,
Try to use:
$rU=$_s($avp(69)$rU);
BR
Julia
On Fri, May 29, 2015 at 12:13 PM, Yasin CANER
wrote:
> Hello;
> i try to append prefix to $rU like below in Kamailio V4.2.5 . i get
> error even if i set string value. it works only when i append like that
> $rU="3002"+$rU;
>
> -
Hello;
i try to append prefix to $rU like below in Kamailio V4.2.5 . i
get error even if i set string value. it works only when i append like
that $rU="3002"+$rU;
- 1 test
$var(prefix)=$avp(s:69);
$rU=$var(prefix)+$rU;
-FAILED
-2 test
$rU=$avp(s:69