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'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"><<a href="mailto:ibc@aliax.net">ibc@aliax.net</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;">2011/5/6 alex pappas <<a href="mailto:rebel.pappas@gmail.com">rebel.pappas@gmail.com</a>>:<br>
<div class="im">> I'm trying the following and i get error:<br>
><br>
> $var(new_uri) = "sip:" +$avp(s:term_prefix) +$rU +"@" +$avp(s:gw_address);<br>
><br>
> rewriteuri=($var(new_uri)); OR append_branch($var(new_uri));<br>
><br>
> But it seems that it does not like the variable. The documentation says that<br>
> rewriteuri get a string so i don'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'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>
<<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>><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>