[Users] Dispatcher failure route

Benjamin Lawetz blawetz at teliphone.ca
Fri May 26 14:54:40 CEST 2006


Well, that's just too beautiful not to upgrade :-)

thanks 

-----Original Message-----
From: Daniel-Constantin Mierla [mailto:daniel at voice-system.ro] 
Sent: May 25, 2006 5:04 PM
To: Benjamin Lawetz
Cc: users at openser.org
Subject: Re: [Users] Dispatcher failure route

Hello,

On 05/24/06 23:41, Benjamin Lawetz wrote:
> Hello all,
>
> I'm setting up a load balancer using openser. The load balancing works 
> great and I'm now trying to work out the redundancy side of it.
>
> In my route I have:
>                         if (method=="INVITE")
>                         {
>                                 record_route();
>                                 ds_select_dst("1", "0");
>                                 t_on_failure("1");
>                                 t_relay();
>                         }
>
> This works fine in that if the selected server is not up or takes too 
> long to answer, the call is route to failure_route[1] And here's where 
> I'm scratching my head. I would like the INVITE to be tried on another 
> server from the server farm. But how. Is there a way to send it back 
> to ds_select_dst and make sure it doesn't get sent back to the same 
> server?
>
>   
if you use the development version, yes, it is possible to try the next
address in the list, see the readme of the dispatcher module. You have to
set the id of the avp to store the other addresses and then use in failure
route the ds_next_dst() function:

http://openser.org/docs/modules/1.1.x/dispatcher.html
http://openser.org/docs/modules/1.1.x/dispatcher.html#AEN105
http://openser.org/docs/modules/1.1.x/dispatcher.html#AEN184

Cheers,
Daniel

> thanks
>
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>   







More information about the sr-users mailing list