Many thanks Ovidiu,<br><br>I will try that and get back to the community.<br><br>Regards<br>Alex<br><br><br><br><div class="gmail_quote">On Sat, May 7, 2011 at 11:16 PM, Ovidiu Sas <span dir="ltr"><<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Just set the RURI to the value that you want and then call append_brach().<br>
Everything that's in RURI will be appended as a new branch.<br>
<br>
After that, reset the RURI to it's original value: revert_uri().<br>
<br>
Regards,<br>
<font color="#888888">Ovidiu Sas<br>
</font><div><div></div><div class="h5"><br>
On Sat, May 7, 2011 at 12:37 PM, alex pappas <<a href="mailto:rebel.pappas@gmail.com">rebel.pappas@gmail.com</a>> wrote:<br>
> Hi,<br>
> Thanks for the replay.<br>
> I already tried the $ru with $var and it works fine but the main problem is<br>
> the append_branch.<br>
><br>
> I'm trying to create a redirect function with the append_branch dynamically<br>
> filled in.<br>
><br>
> Any suggestion on that?<br>
><br>
> Thanks<br>
><br>
> Alex<br>
><br>
><br>
> On Fri, May 6, 2011 at 6:31 PM, Iņaki Baz Castillo <<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>> wrote:<br>
>><br>
>> 2011/5/6 alex pappas <<a href="mailto:rebel.pappas@gmail.com">rebel.pappas@gmail.com</a>>:<br>
>> > I'm trying the following and i get error:<br>
>> ><br>
>> > $var(new_uri) = "sip:" +$avp(s:term_prefix) +$rU +"@"<br>
>> > +$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<br>
>> > that<br>
>> > rewriteuri get a string so i don't understand why does not work<br>
>><br>
>> 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>
>><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>
><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>
><br>
><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>
</div></div></blockquote></div><br>