Hello,

On 16/06/16 11:10, Amit Patkar wrote:
> Hi
>
> I have a scenario where dispatcher is used to balance calls.
> Assume there are 2 media servers M1 & M2. Call are routed using round
> robin algorithm.
> There is scenario where call is handed over to M1 but it is not
> answered in defined time period (say 5 seconds due to load on server
> or network congestion), I wish to send this call to M2.
> What are the options to achieve it?
you have to use a failure_route in this case to do re-routing. The
dispatcher module readme has a sample kamailio.cfg that shows how to use
such failure route:

  -
https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.ex.config

You should adjust the if block before the ds_next_dst() in failure_route
to match the situations when you want to do re-routing.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to