<br><br>
<div><span class="gmail_quote">On 11/2/07, <b class="gmail_sendername">Edgar Guadamuz</b> &lt;<a href="mailto:eguadamuz@gmail.com">eguadamuz@gmail.com</a>&gt; 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&nbsp;&nbsp;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(&quot;dispatcher.so&quot;)<br><br>...<br><br>if ( method==&quot;INVITE&quot; ) {<br># dst_select( &quot;GROUP&quot;, &quot;HASH METHOD&quot;)
<br>dst_select(&quot;1&quot;,&quot;4&quot;);<br>sl_send_reply(&quot;100&quot;,&quot;Trying&quot;);<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>&nbsp;</div>
<div>Hi</div>
<div>&nbsp;</div>
<div>the recomendations are DNS SRV records or</div>
<div>do in round robin basic.</div>
<div>&nbsp;</div>
<div>Like failover routes from OpenSER</div>
<div>&nbsp;</div>
<div><a href="http://gearsofvoip.com/index.htm">http://gearsofvoip.com/index.htm</a></div>
<div>&nbsp;</div>
<div>ram</div></div><br>