<div dir="ltr">Hi Guys,<div><br></div><div>Our Load Balancer configuration is as below:</div><div><br></div><div><div>route{</div><div><span class="" style="white-space:pre">        </span>if (!mf_process_maxfwd_header(&quot;3&quot;)) {</div><div><span class="" style="white-space:pre">                </span>send_reply(&quot;483&quot;,&quot;looping&quot;);</div><div><span class="" style="white-space:pre">                </span>exit;</div><div><span class="" style="white-space:pre">        </span>}</div><div><br></div><div><br></div><div><span class="" style="white-space:pre">        </span>if ( has_totag() ) {</div><div><span class="" style="white-space:pre">                </span># sequential request -&gt; obey Route indication</div><div><span class="" style="white-space:pre">                </span>loose_route();</div><div>                t_relay();</div><div>                exit;</div><div>        }</div><div><br></div><div>        # handle cancel and re-transmissions</div><div><span class="" style="white-space:pre">        </span>if ( is_method(&quot;CANCEL&quot;) ) {</div><div><span class="" style="white-space:pre">                </span>if ( t_check_trans() )</div><div><span class="" style="white-space:pre">                        </span>t_relay();</div><div><span class="" style="white-space:pre">                </span>exit;</div><div><span class="" style="white-space:pre">        </span>}</div><div><br></div><div><br></div><div>        # from now on we have only the initial requests</div><div>        if (!is_method(&quot;INVITE&quot;)) {</div><div>                send_reply(&quot;405&quot;,&quot;Method Not Allowed&quot;);</div><div>                exit;</div><div>        }</div><div><br></div><div>        # initial request</div><div><span class="" style="white-space:pre">        </span>record_route();</div><div><span class="" style="white-space:pre">        </span># LB function returns negative if no suitable destination (for requested resources) is found,</div><div>        # or if all destinations are full</div><div>        if ( !load_balance(&quot;1&quot;,&quot;channel&quot;) ) {</div><div>             send_reply(&quot;500&quot;,&quot;Service full&quot;);</div><div>             exit;</div><div>        }</div><div><span class="" style="white-space:pre">        </span>t_on_reply(&quot;test&quot;);</div><div>        # arm a failure route for be able to catch a failure event and to do </div><div>        # failover to the next available destination</div><div>        t_on_failure(&quot;LB_failed&quot;);</div><div><br></div><div>        # send it out</div><div><span class="" style="white-space:pre">        </span>if (!t_relay()) {</div><div><span class="" style="white-space:pre">                </span>sl_reply_error();</div><div><span class="" style="white-space:pre">        </span>}</div><div><br></div><div>}</div></div><div><br></div><div><div>onreply_route[test] {</div><div><span class="" style="white-space:pre">        </span>xlog(&quot;Reply $rs received from $si for the call $avp(iurl)&quot;);</div><div>}</div></div><div><br></div><div>In the opensips.log file, for some of the calls I see the reply 200 logged 4 times. And whenever that happens, the same is not sent back to the originator of the call.</div><div><br></div><div>At the end of the day some calls are ending up in ambiguous result codes as they don&#39;t receive 200 OK. And all the calls in this category, we see the reply 200 logged 4 times in the log.</div><div><br></div><div>Any clue on what could be the issue?</div><div><br></div><div><br></div><div>Regards,</div><div>Chandan</div></div>