[OpenSIPS-Users] variable interpolation in strings
Kingsley Tart
kingsley at dns99.co.uk
Wed Mar 31 16:34:32 EST 2021
Hi,
I'm using OpenSIPS 3.1.
Why does this code:
$var(oldstr) = "sip:_44*121-1234@";
$var(uriOLD) = "<$var(oldstr)batty.com;user=phone>";
xlog("TEST=<$var(oldstr)batty.com;user=phone>");
xlog("uriOLD=$var(uriOLD)");
Result in these log entries?
TEST=<sip:_44*121-1234 at batty.com;user=phone>
uriOLD=<$var(oldstr)batty.com;user=phone>
ie, why do the two values differ?
Cheers,
Kingsley.
More information about the Users
mailing list