the '+ ' is for concatenation of the 2 strings and $var(z) prints correctly in the log <br><br><div class="gmail_quote">On Sun, Feb 6, 2011 at 5:45 PM, Duane Larson <span dir="ltr"><<a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><p>Why do you have the + outside of the quotation marks when you are declaring var(z). Wonder if that is your issue. What is the output for your xlog that shows what varz is?</p>
<p>Sent from Droid</p><div><div></div><div class="h5">
<div class="gmail_quote">On Feb 6, 2011 7:37 PM, "Nigel Daniels" <<a href="mailto:nigel.daniels@connectandsell.com" target="_blank">nigel.daniels@connectandsell.com</a>> wrote:<br type="attribution">> 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<br>> uri, state 0 parsed: <$var> (4) / <$var(z)> (7)<br>> Feb 7 01:28:18 opensips /sbin/opensips[26561]: ERROR:core:do_action: bad<br>
> uri <$var(z)>, dropping packet<br>> Feb 7 01:28:18 opensips /sbin/opensips[26561]: ERROR:core:parse_uri: bad<br>> uri, state 0 parsed: <$var> (4) / <$var(z)> (7)<br>> Feb 7 01:28:18 opensips /sbin/opensips[26561]:<br>
> 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<br>
> failed<br>> <br>> <br>> My guess is that my syntax is incorrect or that this is not possible , any<br>> help is appreciated<br>> <br>> -- <br>> Nigel<br></div>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Nigel Daniels<br>Network & Systems Administrator <br>ConnectAndSell inc.<br>(650)-533-2542 <br><br>