Re: [SR-Users] rewriteuri and append_branch with variables

2011-05-07 Thread alex pappas
Many thanks Ovidiu, I will try that and get back to the community. Regards Alex On Sat, May 7, 2011 at 11:16 PM, Ovidiu Sas wrote: > Just set the RURI to the value that you want and then call append_brach(). > Everything that's in RURI will be appended as a new branch. > > After that, reset

Re: [SR-Users] rewriteuri and append_branch with variables

2011-05-07 Thread Ovidiu Sas
Just set the RURI to the value that you want and then call append_brach(). Everything that's in RURI will be appended as a new branch. After that, reset the RURI to it's original value: revert_uri(). Regards, Ovidiu Sas On Sat, May 7, 2011 at 12:37 PM, alex pappas wrote: > Hi, > Thanks for the

Re: [SR-Users] rewriteuri and append_branch with variables

2011-05-07 Thread alex pappas
Hi, Thanks for the replay. I already tried the $ru with $var and it works fine but the main problem is the append_branch. I'm trying to create a redirect function with the append_branch dynamically filled in. Any suggestion on that? Thanks Alex On Fri, May 6, 2011 at 6:31 PM, Iñaki Baz Castil

Re: [SR-Users] rewriteuri and append_branch with variables

2011-05-06 Thread Iñaki Baz Castillo
2011/5/6 alex pappas : > I'm trying the following and i get error: > > $var(new_uri) = "sip:" +$avp(s:term_prefix) +$rU +"@" +$avp(s:gw_address); > > rewriteuri=($var(new_uri));  OR append_branch($var(new_uri)); > > But it seems that it does not like the variable. The documentation says that > rewr

[SR-Users] rewriteuri and append_branch with variables

2011-05-06 Thread alex pappas
Dear All, I'm trying the following and i get error: $var(new_uri) = "sip:" +$avp(s:term_prefix) +$rU +"@" +$avp(s:gw_address); rewriteuri=($var(new_uri)); OR append_branch($var(new_uri)); But it seems that it does not like the variable. The documentation says that rewriteuri get a string so i