Hello,

Here is a nice tutorial about how to do load-balacing between several gateways :
    http://www.opensips.org/Resources/DocsTutLoadbalancing

You can force sequential requests to take the same path as the original INVITE message by using the Record-Route mechanism. So basically you will load-balance just the initial requests ( INVITE ), and let the sequential requests within the dialog follow the same path.

Regards,

Vlad Paiu
OpenSIPS Developer


On 09/28/2011 08:11 PM, Alejandro Recarey wrote:
Hello all,

I was reading the documentation on the dispatcher module and it says:

"Is dispatcher dialog stateful?

No. Dispatcher is stateless, although some distribution algorithms are
designed to select same destination for subsequent requests of the
same dialog (e.g., hashing the call-id)."

I am trying to load balance calls between different asterisk gateways,
and I think the round-robin algorithm would be ideal (I would like the
option of having a weighted round robin, but that is beside the
point). I don't understand the use of the dispatcher module if, for
example, the CANCEL request from the originating caller is sent to a
different asterisk box than the one that had the INVITE request. As
far as I can read into the module, there is no guarantee that the
requests in the same dialog will go to the same box.

How can I setup the dispatcher to load balance between asterisk gateways?

Regards,

Alex

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to