-----Original Message-----
From: Douglas Garstang
Sent: Tuesday, June 06, 2006 10:09 AM
To: Carsten Bock
Cc: Users(a)openser.org
Subject: RE: [Users] Openser 1.1 and Dispatacher Failover
Thanks Carsten.
What does ds_next_domain() do? Is failure_route[1] supposed
to be calling itself? Why don't you call ds_next_dst() instead?
Douglas.
-----Original Message-----
From: Carsten Bock [mailto:openser-list@qbiz.de]
Sent: Tuesday, June 06, 2006 9:47 AM
To: Douglas Garstang
Cc: Users(a)openser.org
Subject: Re: [Users] Openser 1.1 and Dispatacher Failover
Hi Douglas,
It's quite simple. Here an except from a possible Main-Route:
[...]
# Choose a Proxy (Round-Robin, PSTN-Gateways)
ds_select_domain("2", "4");
# On Failure: Choose next Proxy
t_on_failure("1");
# Relay to the Proxy
if (!t_relay()) {
sl_reply_error();
}
[...]
And here the corresponding failure-route:
failure_route[1] {
# Choose another gateway
if (t_check_status("408")) {
if (ds_next_domain()) {
# On Failure: Choose next Proxy
t_on_failure("1");
# Relay to Proxy
t_relay();
} else {
t_reply("503", "Service not available");
return;
}
}
}
And here the modparam for the dispatcher:
# Dispatcher: Enable Failover-Support
modparam("dispatcher", "flags", 2)
That's it.
Carsten
Douglas Garstang schrieb:
Carston.
Thanks for the info. Unfortunately, none of this stuff is
documented. I really
don't have a clue how to implement any of this.
>
> Douglas.
>
>
>> -----Original Message-----
>> From: Carsten Bock [mailto:openser-list@qbiz.de]
>> Sent: Tuesday, June 06, 2006 9:34 AM
>> To: Douglas Garstang
>> Cc: Users(a)openser.org
>> Subject: Re: [Users] Openser 1.1 and Dispatacher Failover
>>
>>
>> Hi Douglas,
>>
>> Yes you're right, it does. You just cannot do a simple
_______________________________________________
Users mailing list
Users(a)openser.org