<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 2.3  (Unix)">
        
        
        <style type="text/css">
        <!--
                @page { size: 8.5in 11in; margin: 0.79in }
                P { margin-bottom: 0.08in }
        -->
        </style>

<p style="margin-bottom: 0in;">Hello,</p>
<p style="margin-bottom: 0in;">I am using Opensips and Asterisk for my
call flow.</p>
<p style="margin-bottom: 0in;">I am using 3 Asterisks for call
forwarding. Opensips&#39;s dispatcher module is doing the task of load
balancing among all 3 Asterisk servers in a round robin fashion. i.
e. 
</p>
<p style="margin-bottom: 0in;">1<sup>st</sup> call to 1<sup>st</sup>
Asterisk<br>2<sup>nd</sup> call to 2<sup>nd</sup> Asterisk<br>3<sup>rd</sup>
call to 3<sup>rd</sup> Asterisk</p>
<p style="margin-bottom: 0in;">If any 1 of the Asterisk goes down,(i.e
fail to respond), then dispatcher stops sending calls to that
particular Asterisk. Its working fine.</p>
<p style="margin-bottom: 0in;">But again when that Asterisk comes up(
i.e comes to network or become live) , the dispatcher should start
sending calls to that Asterisk server. Can u please suggest me how
can I achieve this ?</p>
<p style="margin-bottom: 0in;">Following is my opensips.cfg
file<br>----------------------------------------</p>
<p style="margin-bottom: 0in;">loadmodule &quot;dispatcher.so&quot;</p>
<p style="margin-bottom: 0in;">modparam(&quot;dispatcher&quot;,
&quot;list_file&quot;, &quot;/usr/local/etc/opensips/dispatcher.list&quot;)</p>
<p style="margin-bottom: 0in;">modparam(&quot;dispatcher&quot;,
&quot;flags&quot;, 2)<br>modparam(&quot;dispatcher&quot;, &quot;dst_avp&quot;,
&quot;$avp(i:271)&quot;)<br>modparam(&quot;dispatcher&quot;,
&quot;grp_avp&quot;, &quot;$avp(i:272)&quot;)<br>modparam(&quot;dispatcher&quot;,
&quot;cnt_avp&quot;, &quot;$avp(i:273)&quot;)</p>
<p style="margin-bottom: 0in;">modparam(&quot;dispatcher&quot;,
&quot;ds_ping_method&quot;, &quot;INFO&quot;)<br>modparam(&quot;dispatcher&quot;,
&quot;ds_ping_interval&quot;, 1)<br>modparam(&quot;dispatcher&quot;,
&quot;ds_probing_mode&quot;, 1) 
</p>
<p style="margin-bottom: 0in;">route{</p><p style="margin-bottom: 0in;">if
(is_method(&quot;INVITE&quot;))<br>{<br>             
if (nat_uac_test(&quot;16&quot;))<br>             
{<br>                 
fix_nated_contact();<br>                 
force_rport();<br>};</p>





<p style="margin-bottom: 0in;"> <br>ds_select_dst(&quot;1&quot;, &quot;0&quot;);<br>t_on_reply(&quot;1&quot;);<br>t_on_failure(&quot;1&quot;);<br>forward();<br>exit;</p>
<p style="margin-bottom: 0in;">}</p>
<p style="margin-bottom: 0in;">
</p>


<p style="margin-bottom: 0in;">----------------------------------------<br>Dispatcher.cfg<br>
</p>


<p style="margin-bottom: 0in;">1 sip:<a href="http://192.168.1.1:5060">192.168.1.1:5060</a> #Asterisk-1<br>1 sip:<a href="http://192.168.1.1:5061">192.168.1.1:5061</a> #Asterisk-2<br>1 sip:<a href="http://192.168.1.1:5062">192.168.1.1:5062</a> #Asterisk-3</p>

<p style="margin-bottom: 0in;">----------------------------------------</p>
<p style="margin-bottom: 0in;">
</p>
<p style="margin-bottom: 0in;">Thanks for your attention.</p>
<br><p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;">-Urmi</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p><br><br>
</p>
<p><br><br>
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"><br>
</p>