<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div><span><b>Hi Khue,</b></span></div><div><span><br></span></div><div><span>What will that script do in my scenario, will you please a little explain to me.</span></div><div><span><br></span></div><div><span><br></span></div><div>&nbsp;</div><div>Warmest Regards,<br><br></div><div><b>Faisal Rehman</b><br><div style="font-size: 10pt; font-family: tahoma, 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> nguyen khue &lt;minhkhue49da@yahoo.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Faisal Rehman &lt;faisal.rehman22@yahoo.com&gt;; "users@lists.opensips.org" &lt;users@lists.opensips.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Friday, September
 30, 2011 12:41 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [OpenSIPS-Users] (no subject)<br></font><br>
<div id="yiv1334642901"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: times, serif; "><span>Hi Faisal,</span></div><div style="font-size: 12pt; font-family: times, serif; "><span><br></span></div><div style="font-size: 12pt; font-family: times, serif; "><span>I don't sure about your error. But, you can try add some lines into block</span></div><div style="font-size: 12pt; font-family: times, serif; "><span><br></span></div><div style="font-size: 12pt; font-family: times, serif; "><span>if (has_totag()){</span></div><div style="font-size: 12pt; font-family: times, serif; "><span><span class="yiv1334642901Apple-tab-span" style="white-space:pre;">        </span>if (loose_route()){</span></div><div style="font-size: 12pt; font-family: times, serif; "><span><span class="yiv1334642901Apple-tab-span" style="white-space:pre;">        
        </span>//add this lines</span></div><div style="font-size: 12pt; font-family: times, serif; "><span><span class="yiv1334642901Apple-tab-span" style="white-space:pre;">                </span><i>if (is_method("ACK")){</i></span></div><div><i><span style="font-size: 12pt; font-family: times, serif; "><span class="yiv1334642901Apple-tab-span" style="white-space:pre;">                        </span></span>if (t_check_trans()){&nbsp;</i></div><div><i><span class="yiv1334642901Apple-tab-span" style="white-space:pre;">                                </span>t_relay();&nbsp;</i></div><div><i><span class="yiv1334642901Apple-tab-span" style="white-space:pre;">                        </span>&nbsp;}</i></div><div style="font-size: 12pt; font-family: times, serif; "><span><i><span class="yiv1334642901Apple-tab-span" style="white-space:pre;">                </span>}</i></span></div><div style="font-size: 12pt; font-family: times, serif; "><span><span class="yiv1334642901Apple-tab-span" style="white-space:pre;">        </span>}</span></div><div style="font-size: 12pt;
 font-family: times, serif; "><span>}</span></div><div style="font-size: 12pt; font-family: times, serif; "><span><br></span></div><div style="font-size: 12pt; font-family: times, serif; "><span>Best regards</span></div><div style="font-size: 12pt; font-family: times, serif; "><span>Khue Nguyen.</span></div><div style="font-size: 12pt; font-family: times, serif; "><br></div><div style="font-size: 12pt; font-family: times, serif; "><div style="font-size: 12pt; font-family: times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Faisal Rehman &lt;faisal.rehman22@yahoo.com&gt;<br><b><span style="font-weight:bold;">To:</span></b> nguyen khue &lt;minhkhue49da@yahoo.com&gt;; "users@lists.opensips.org" &lt;users@lists.opensips.org&gt;<br><b><span style="font-weight:bold;">Sent:</span></b> Friday, September 30, 2011 2:01 PM<br><b><span style="font-weight:bold;">Subject:</span></b> Re: [OpenSIPS-Users] (no
 subject)<br></font><br>
<div id="yiv1334642901"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: tahoma, times, serif; "><div style="font-size: 10pt; font-family: tahoma, times, serif; "><span><b>Hi Khue,</b></span></div><div style="font-size: 10pt; font-family: tahoma, times, serif; "><span><br></span></div><div style="font-size: 10pt; font-family: tahoma, times, serif; "><span>Please find the necessary configuration that I have done for Load Balancing work, the calls are going and Load balance is also working but the problem is that I am getting much packets of ACK &amp; 200OK, please see the configuration as:</span></div><div style="font-size: 10pt; font-family: tahoma, times, serif; "><span><br></span></div><div><span><font class="yiv1334642901Apple-style-span" size="2"><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp;# the method used is
 different for
 invite/register requests</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; # unknown methods are rejected here</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; if (is_method("INVITE")) {</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!load_balance("1","pstn","1")) {</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; send_reply("503","Service Unavailable");</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace,
 sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; exit;</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; else if (is_method("REGISTER")) {</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!ds_select_dst("1", "0")) {</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 send_reply("503","Service Unavailable");</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; else {</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; send_reply("405","Method Not
 Allowed");</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp; &nbsp; exit;</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif"><br></font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; # route the request</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; if (!t_relay()) {</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_reply_error();</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace,
 sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">}</font></div><div><font class="yiv1334642901Apple-style-span" face="'Courier New', courier, monaco, monospace, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font>&nbsp; &nbsp; &nbsp; &nbsp;</div></font></span></div><div style="font-size: 10pt; font-family: tahoma, times, serif; ">&nbsp;</div><div style="font-size: 10pt; font-family: tahoma, times, serif; ">Warmest Regards,<br><br></div><div style="font-size: 10pt; font-family: tahoma, times, serif; "><b>Faisal Rehman</b><br><div style="font-size: 10pt; font-family: tahoma, times, serif; "><div style="font-size: 12pt; font-family: times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> nguyen khue
 &lt;minhkhue49da@yahoo.com&gt;<br><b><span style="font-weight:bold;">To:</span></b> Faisal Rehman &lt;faisal.rehman22@yahoo.com&gt;; "users@lists.opensips.org" &lt;users@lists.opensips.org&gt;<br><b><span style="font-weight:bold;">Sent:</span></b> Thursday, September 29, 2011 7:56 PM<br><b><span style="font-weight:bold;">Subject:</span></b> Re: [OpenSIPS-Users] (no subject)<br></font><br>
<div id="yiv1334642901"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: times, serif; "><div><span>Hi Faisal,</span></div><div><span><br></span></div><div><span>Please post your config file.</span></div><div><span><br></span></div><div><span>Best regards,</span></div><div><span>Khue Nguyen.</span></div><div><br></div><div style="font-size: 12pt; font-family: times, serif; "><div style="font-size: 12pt; font-family: times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Faisal Rehman &lt;faisal.rehman22@yahoo.com&gt;<br><b><span style="font-weight:bold;">To:</span></b> "users@lists.opensips.org" &lt;users@lists.opensips.org&gt;<br><b><span style="font-weight:bold;">Sent:</span></b> Thursday, September 29, 2011 8:39 PM<br><b><span style="font-weight:bold;">Subject:</span></b> [OpenSIPS-Users] (no
 subject)<br></font><br><div id="yiv1334642901"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: tahoma, times, serif; "><div><span class="yiv1334642901Apple-style-span" style="color: rgb(69, 69, 69); font-size: 12px; font-family: Arial, Helvetica, sans-serif; "><div class="yiv1334642901msg-body yiv1334642901inner  yiv1334642901undoreset" style="margin-top:25px;margin-right:24px;margin-bottom:22px;margin-left:29px;"><div id="yiv1334642901"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: courier, monaco, monospace, sans-serif; "><div><span><font class="yiv1334642901Apple-style-span" face="tahoma, 'new york', times, serif"><b>Hi Everyone,</b></font></span></div><div><span><font class="yiv1334642901Apple-style-span" face="tahoma, 'new york', times, serif"><br></font></span></div><div><span><font class="yiv1334642901Apple-style-span" face="tahoma, 'new
 york', times, serif">I am just testing calls
 from OpenSIPS to Free-Switch but I am facing a problem that too many ACK &amp; 200OK packets are being generated by OpenSIPS, so how can I remove this problem.</font></span></div><div><span><font class="yiv1334642901Apple-style-span" face="tahoma, 'new york', times, serif"><br></font></span></div><div><font class="yiv1334642901Apple-style-span" face="tahoma, 'new york', times, serif">&nbsp;</font></div><div><font class="yiv1334642901Apple-style-span" face="tahoma, 'new york', times, serif">With Best Regards,<br><br></font></div><div><font class="yiv1334642901Apple-style-span" face="tahoma, 'new york', times, serif"><b>Faisal Rehman</b></font></div><div><font class="yiv1334642901Apple-style-span" face="tahoma, 'new york', times, serif"><b><br></b></font></div></div></div></div></span></div></div></div><br>_______________________________________________<br>Users mailing list<br><a rel="nofollow" ymailto="mailto:Users@lists.opensips.org" target="_blank"
 href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br><br><br></div></div></div></div><br><br></div></div></div></div></div><br><br></div></div></div></div><br><br></div></div></div></div></body></html>