<p>Search<br>
How can I use a pseudovariable or a avp </p>
<p>on the mailing list.</p>
<p>I just did a search of "rewriteuri" and the last one on Nabble talks about your issue.</p>
<p>Sent from Droid</p>
<div class="gmail_quote">On Feb 6, 2011 7:55 PM, "Nigel Daniels" <<a href="mailto:nigel.daniels@connectandsell.com">nigel.daniels@connectandsell.com</a>> wrote:<br type="attribution">> the '+ ' is for concatenation of the 2 strings and $var(z) prints correctly<br>
> in the log<br>> <br>> On Sun, Feb 6, 2011 at 5:45 PM, Duane Larson <<a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>> wrote:<br>> <br>>> Why do you have the + outside of the quotation marks when you are declaring<br>
>> var(z). Wonder if that is your issue. What is the output for your xlog<br>>> that shows what varz is?<br>>><br>>> Sent from Droid<br>>> On Feb 6, 2011 7:37 PM, "Nigel Daniels" <<a href="mailto:nigel.daniels@connectandsell.com">nigel.daniels@connectandsell.com</a>><br>
>> wrote:<br>>> > 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<br>>> 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 ,<br>>> any<br>>> > help is appreciated<br>>> ><br>>> > --<br>
>> > Nigel<br>>><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">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>><br>>><br>> <br>> <br>> -- <br>> Nigel Daniels<br>> Network & Systems Administrator<br>> ConnectAndSell inc.<br>> (650)-533-2542<br></div>