[Users] set RURI with dispatcher module

Klaus Darilion klaus.mailinglists at pernau.at
Thu Feb 8 16:26:39 CET 2007


Hi!

I want to use the dispatcher module to use load-balancing/failover to
gateways. Thus, I also want to change the domainpart of the RURI to be the
IP address of the gateway - but dispatcher only sets the DURI.

Is there an easy way to set the RURI/domain too or do I have to use:

avp_write("$rU","$avp(i:666)");
ds_select_dst(...);
avp_pushto("$ru","$du");
avp_pushto("$ru/username","$avp(i:666)");

Is there a more easy way?

btw - I think above workaround would not work in failure_route as
ds_next_dst adds a new branch but avp_pushto works against branches[0] -
correct?

thanks
klaus







More information about the Users mailing list