I tried the fallowing and $var(z) looks<br> $var(x)=$tu;<br> $var(y) = $(var(x){s.select,1,-});<br> $var(z) = "sip:"+$var(y);<br> xlog("$var(z)");<br> rewriteuri("$var(z)");<br>
<br>This is what I get in the log <br><br>Feb 7 01:28:18 opensips /sbin/opensips[26561]: ERROR:core:parse_uri: bad uri, state 0 parsed: <$var> (4) / <$var(z)> (7)<br>Feb 7 01:28:18 opensips /sbin/opensips[26561]: ERROR:core:do_action: bad uri <$var(z)>, dropping packet<br>
Feb 7 01:28:18 opensips /sbin/opensips[26561]: ERROR:core:parse_uri: bad uri, state 0 parsed: <$var> (4) / <$var(z)> (7)<br>Feb 7 01:28:18 opensips /sbin/opensips[26561]: ERROR:core:parse_sip_msg_uri: bad uri <$var(z)><br>
Feb 7 01:28:18 opensips /sbin/opensips[26561]: ERROR:tm:new_t: uri invalid<br>Feb 7 01:28:18 opensips /sbin/opensips[26561]: ERROR:tm:t_newtran: new_t failed<br><br><br>My guess is that my syntax is incorrect or that this is not possible , any help is appreciated<br clear="all">
<br>-- <br>Nigel <br><br>