<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'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 "dispatcher.so"</p>
<p style="margin-bottom: 0in;">modparam("dispatcher",
"list_file", "/usr/local/etc/opensips/dispatcher.list")</p>
<p style="margin-bottom: 0in;">modparam("dispatcher",
"flags", 2)<br>modparam("dispatcher", "dst_avp",
"$avp(i:271)")<br>modparam("dispatcher",
"grp_avp", "$avp(i:272)")<br>modparam("dispatcher",
"cnt_avp", "$avp(i:273)")</p>
<p style="margin-bottom: 0in;">modparam("dispatcher",
"ds_ping_method", "INFO")<br>modparam("dispatcher",
"ds_ping_interval", 1)<br>modparam("dispatcher",
"ds_probing_mode", 1)
</p>
<p style="margin-bottom: 0in;">route{</p><p style="margin-bottom: 0in;">if
(is_method("INVITE"))<br>{<br>
if (nat_uac_test("16"))<br>
{<br>
fix_nated_contact();<br>
force_rport();<br>};</p>
<p style="margin-bottom: 0in;"> <br>ds_select_dst("1", "0");<br>t_on_reply("1");<br>t_on_failure("1");<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>