<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 10/25/2011 03:28 PM, Uri Shacked wrote:
    <blockquote
cite="mid:CAMMbDhTbXSxcv-2141W2NbZWrsXGQjdxeYtEdDkt-o8PeUb4+g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
              size="3"><font face="Calibri">Hi,</font></font></p>
          <p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
              face="Calibri" size="3"> </font></p>
          <p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
              size="3"><font face="Calibri">I am using kamailio (only
                one) as routing engine. I have 2 gateways. Both of them
                sending calls to kamailio.</font></font></p>
          <p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
              size="3"><font face="Calibri">When i use the carrierroute
                module i need to change (and succeed) the user ($rU).
                But, i need to send the call (the invite) back to the
                gateway that sent me the call from the beginning (it can
                be either one of those 2). So, my problem is that i
                don’t want to rewrite the host in carrierroute, just the
                user. If i leave the rewrite_host field empty, it is
                considered to be "black list" and drops the call. If i
                rewrite the host, i can send the call to the second
                gateway that was not the one that sent the call, and the
                call drops as well.</font></font></p>
        </div>
      </div>
    </blockquote>
    <br>
    Hello, <br>
    <br>
    after cr_route() that sets the RURI set $du (pseudovar .... needs
    pv.so afaik ) to either of the 2 balancers (or to a domain that
    resolves to both of the two balancers - for load balancing). $du
    will set the destination uri of the package without modifying the
    RURI (which is set by cr_route()), so the balancer will route the
    message to the client.<br>
    <br>
    Cheers<br>
    Mraius<br>
    <br>
    <br>
    <blockquote
cite="mid:CAMMbDhTbXSxcv-2141W2NbZWrsXGQjdxeYtEdDkt-o8PeUb4+g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
              face="Calibri" size="3"> </font></p>
          <p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
              size="3"><font face="Calibri">any ideas how to use
                carrierroute for changing user only and send the invite
                back to the gateway that originally sent the call?</font></font></p>
          <p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
              face="Calibri" size="3"> </font></p>
          <p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
              size="3"><font face="Calibri">Thanks,</font></font></p>
          <p style="margin: 0cm 0cm 10pt;" class="MsoNormal"><font
              size="3"><font face="Calibri">Uri</font></font></p>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Zbihlei Marius

Head of
Linux Development Services Romania

1&amp;1 Internet Development srl    Tel KA: 754-9512
Str Mircea Eliade 18            Tel RO: +40-31-223-9512
Sect 1, Bucuresti               mailto: <a class="moz-txt-link-abbreviated" href="mailto:marius.zbihlei@1and1.ro">marius.zbihlei@1and1.ro</a>
71295, Romania
</pre>
  </body>
</html>