Hi,<br>Thanks for the replay.<br>I already tried the $ru with $var and it works fine but the main problem is the append_branch.<br><br>I&#39;m trying to create a redirect function with the append_branch dynamically filled in.<br>
<br>Any suggestion on that?<br><br>Thanks<br><br>Alex<br><br><br><div class="gmail_quote">On Fri, May 6, 2011 at 6:31 PM, Iņaki Baz Castillo <span dir="ltr">&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;</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;">2011/5/6 alex pappas &lt;<a href="mailto:rebel.pappas@gmail.com">rebel.pappas@gmail.com</a>&gt;:<br>

<div class="im">&gt; I&#39;m trying the following and i get error:<br>
&gt;<br>
&gt; $var(new_uri) = &quot;sip:&quot; +$avp(s:term_prefix) +$rU +&quot;@&quot; +$avp(s:gw_address);<br>
&gt;<br>
&gt; rewriteuri=($var(new_uri));  OR append_branch($var(new_uri));<br>
&gt;<br>
&gt; But it seems that it does not like the variable. The documentation says that<br>
&gt; rewriteuri get a string so i don&#39;t understand why does not work<br>
<br>
</div>You are not passing a string to erwriteuri() function, but a<br>
pseudo-variable containing a string as value. It&#39;s not the same (not<br>
at least in kamailio/sip-router configuration DSL language).<br>
<br>
However you can use:<br>
<br>
  $ru = $var(new_uri);<br>
<br>
as $ru pseudo-variable (request URI) does allow dynamic assignement.<br>
<font color="#888888"><br>
--<br>
Iņaki Baz Castillo<br>
&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</font></blockquote></div><br>