[Users] Failure routes
Sam Lee
sam.lee at super.net.sg
Mon Mar 19 09:18:58 CET 2007
Good one. That should solve my problem.
Thanks for the help Klaus!
Sam
-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at]
Sent: Monday, March 19, 2007 4:17 PM
To: Sam Lee
Cc: users at openser.org
Subject: Re: [Users] Failure routes
Sam Lee wrote:
> Hey guys ,
>
> I noticed that only 1 failure routes is valid for a t_relay .
By design you can only activate a single failure route. In your example
you can either:
- make a third failure route which is activated if (A && B) and handle
both situations.
- set flags which are queried in the failure route:
If condition A {
setflag(1)
t_on_failure("1")
}
If condition B {
setflag(2)
T_on_failure("1")
}
failure_route[1] {
if (isflagset(1)) {
....
}
if (isflagset(2)) {
....
}
regards
klaus
>
> Is that true or i've done wrong with my config.
>
> What i did was :
>
> If condition A {
> t_on_failure("1")
> }
>
> If condition B {
> T_on_failure("2")
> }
>
> t_relay
>
> If it can't be done , how am i suppose to do condition A or B ?
>
> Regards,
> Sam
>
>
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
--
Klaus Darilion
nic.at
More information about the sr-users
mailing list