[OpenSIPS-Users] Rewrite Username in URI when using userloc

2011-05-19 Thread Spencer Thomason
Hello all, I'm using Opensips in between several Freeswitch and Asterisk boxes (each with multiple DIDs) and my ITSP's proxies. The local IP PBXs register to Opensips and inbound routing is done via the userloc module. The problem I have is that I need to send in incoming INVITE to the origina

Re: [OpenSIPS-Users] Rewrite Username in URI when using userloc

2011-05-19 Thread Dave Singer
Spencer, Looks like you just need to move $rU=$oU; into branch_route[2] Note that in failure route it will be reset to what it was before changes done in branch route so you may want to do it in main route and in branch route. Dave On Thu, May 19, 2011 at 4:02 PM, Spencer Thomason wrote: > Hello

Re: [OpenSIPS-Users] Rewrite Username in URI when using userloc

2011-05-20 Thread Spencer Thomason
Thanks Dave, What I ended up with was setting a flag in the userloc related block and then if that flag is set I set $rU=$oU in the branch route as well. That solved it :-) On May 19, 2011, at 9:24 PM, Dave Singer wrote: > Spencer, > Looks like you just need to move $rU=$oU; into branch_route