Bogdan, i would completely agree with you. I don&#39;t see the RURI being changed in the INVITE request.below is the script snippet for load_balance. please let me know is there any thing to be corrected. <div><br></div><div>
<div> if (!load_balance(&quot;1&quot;,&quot;calls&quot;)) {</div><div>                        send_reply(&quot;503&quot;,&quot;Service Unavailable&quot;);</div><div>                        exit;</div><div>                }</div>
<div>                else{</div><div>                  # dst URI points to the new destination</div><div>                  xlog(&quot;sending call to $du\n&quot;);</div><div>                 # t_relay();</div><div>                 t_relay();</div>
<div>               }</div><div><br></div><br><div class="gmail_quote">On Mon, Jun 11, 2012 at 4:13 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    <tt>Pleas keep the list CC&#39;ed to this discussion !<br>
      <br>
      The LB function changes only the RURI part from INVITE - it does
      not change TO headers. Normally there is no reason to change it at
      all, as routing is done based on RURI only.<br>
      <br>
      Regards,<br>
    </tt><div class="im">
    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
    <br></div><div><div class="h5">
    On 06/11/2012 01:40 PM, dileep r wrote:
    <blockquote type="cite">Hi Bogdan, i did use t_relay() previously and the SIP
      requested was routed to the destination URI . but the RURI and
      &#39;To&#39; header did not change as the destination URI in the INVITE
      request. I&#39;m i doing any thing wrong here?
      <div>
        <br>
      </div>
      <div>Thanks</div>
      <div>Dileep<br>
        <br>
        <div class="gmail_quote">On Mon, Jun 11, 2012 at 3:32 PM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div bgcolor="#ffffff" text="#000000"> <tt>The LB function
                does not send out the INVITE, just sets the RURI to a
                one of the destinations (from LB set) - after doing LB,
                you need to do standard relay from script (via t_relay()
                ).<br>
                <br>
                Regards,<br>
              </tt>
              <div>
                <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                <br>
              </div>
              <div>
                <div> On 06/11/2012 12:45 PM, dileep r wrote:
                  <blockquote type="cite">Hi Bogdan, is there any
                    logging mechanism to check why the load_balance() ,
                    API not routing the INVITE request to destination
                    URI.<br>
                    <br>
                    <div class="gmail_quote">On Mon, Jun 11, 2012 at
                      3:08 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                        <div bgcolor="#ffffff" text="#000000"> <tt>Hi
                            Dileep,<br>
                            <br>
                            Check some working examples:<br>
                            <br>
                              - LB tutorial - <a href="http://www.opensips.org/Resources/DocsTutLoadbalancing" target="_blank">http://www.opensips.org/Resources/DocsTutLoadbalancing</a><br>
                              - use &quot;menuconfig&quot; to generate a script
                            for LB scenario - <a href="http://www.opensips.org/Resources/GettingStartedTut" target="_blank">http://www.opensips.org/Resources/GettingStartedTut</a><br>
                            <br>
                            Regards,<br>
                            Bogdan<br>
                          </tt>
                          <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                          <div>
                            <div> <br>
                              On 06/11/2012 10:50 AM, dileep r wrote: </div>
                          </div>
                          <blockquote type="cite">
                            <div>
                              <div>HI all,
                                <div>  I&#39;m trying to set up openSips
                                  with LB module enabled. I have done
                                  the all the required configuration for
                                  LB. The load_balance() API returns
                                  success, but i&#39;m not receiving the
                                  INVITE request to my destination
                                  server as configured in the DB. If any
                                  one has faced similar problems or know
                                  why this might be happening,please let
                                  me know ?</div>
                                <div><br>
                                </div>
                                <div><br>
                                </div>
                                <div>Thanks</div>
                                <div>Dileep</div>
                              </div>
                            </div>
                            <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                          </blockquote>
                        </div>
                      </blockquote>
                    </div>
                    <br>
                  </blockquote>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </div></div></div>

</blockquote></div><br></div>