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
Hmmm......have you took a look to this: http://www.openser.org/docs/modules/1.2.x/dispatcher.html#AEN177
it might be what you are looking for....
regards, bogdan
Klaus Darilion wrote:
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
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
On Thu, February 8, 2007 18:18, Bogdan-Andrei Iancu said:
Hmmm......have you took a look to this: http://www.openser.org/docs/modules/1.2.x/dispatcher.html#AEN177
it might be what you are looking for....
oh my good - I was so blind....
thanks a lot klaus
regards, bogdan
Klaus Darilion wrote:
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
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
On Thu, February 8, 2007 18:18, Bogdan-Andrei Iancu said:
Hmmm......have you took a look to this: http://www.openser.org/docs/modules/1.2.x/dispatcher.html#AEN177
it might be what you are looking for....
oh my god - I was so blind....
thanks a lot klaus
regards, bogdan
Klaus Darilion wrote:
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
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hello,
off topic of initial question, but ... On 02/08/07 17:26, Klaus Darilion wrote:
[...]
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?
with 1.2.0, the above instructions translates in:
$avp(i:666)=$rU; ds_select_dst(...); $ru = $du; $rU = $avp(i:666);
... so a bit nicer if not easier ;-)
Cheers, Daniel