<br><br>
<div><span class="gmail_quote">On 11/2/07, <b class="gmail_sendername">Edgar Guadamuz</b> <<a href="mailto:eguadamuz@gmail.com">eguadamuz@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi, guys<br><br>Iīve just seen thta OpenSER can be coupled with Asterisk for load<br>balance, with the dispatcher module, something like this:
<br><br>dispatcher.cfg file<br><br># group sip addresses of your * units<br>1 sip:<a href="http://10.1.2.3:5060">10.1.2.3:5060</a><br>1 sip:<a href="http://10.1.2.4:5060">10.1.2.4:5060</a><br>1 sip:<a href="http://10.1.2.5:5060">
10.1.2.5:5060</a><br><br>the basic openser.cfg should be like:<br><br>loadmodule("dispatcher.so")<br><br>...<br><br>if ( method=="INVITE" ) {<br># dst_select( "GROUP", "HASH METHOD")
<br>dst_select("1","4");<br>sl_send_reply("100","Trying");<br>forward(uri:host, uri:port);<br>exit();<br>}<br><br>Thatīs OK, but what about failover, I mean, if a Asterisk box crashes,
<br>the dispatcher module will continue sending requests for that IP and<br>in this case something like heartbeat had to be implemented to take<br>the failed IP, but it would be more efficient if we could have OpenSER<br>
monitoring the Asterisk servers health, anyone knows how?</blockquote>
<div> </div>
<div>Hi</div>
<div> </div>
<div>the recomendations are DNS SRV records or</div>
<div>do in round robin basic.</div>
<div> </div>
<div>Like failover routes from OpenSER</div>
<div> </div>
<div><a href="http://gearsofvoip.com/index.htm">http://gearsofvoip.com/index.htm</a></div>
<div> </div>
<div>ram</div></div><br>