[OpenSER-Users] Preserving domain name on route()

Christian Schlatter cs at unc.edu
Wed Nov 14 17:50:30 CET 2007


Daniel Corbe wrote:
> So, externally I'm using DNS SRV records to get traffic to my proxy 
> server.  Once it hits my proxy server though, I want to preserve the 
> domain name portion of the URI, but still route the traffic around from 
> server to server.  
> 
> Currently I'm using rewritehostport to forward traffic onto another box. 
>  This of course changes the field I'm interested in preserving. Is there 
> another way to route traffic around?  

Both t_relay() and forward() allow to specify a destination address that 
is different from the request URI. Have a look at the examples in

http://www.openser.org/docs/modules/1.2.x/tm.html#TRELAY-1

That should leave your R-URI intact.

/Christian

> 
> The only other option I see is to use 1 set of SRV records externally 
> and another set of SRV records internally.
> 
> Thanks.
> 
> -Daniel
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users





More information about the sr-users mailing list