<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>I typically blend several modules to achieve your routing needs:</p>
    <p>  - permissions module with address table to detect if calls are
      coming from providers or asterisk farm</p>
    <p>  - based on result use load balancer to send out to asterisk
      farm</p>
    <p>  - or use pdt (if each provider has one gateway) or
      mtree+dispatcher (mtree to translate from a prefix to a dispatcher
      set id of the provider with many gateways) to send out to
      providers</p>
    <p>If least cost routing is needed towards providers, then you can
      decide to use one of next modules:</p>
    <p>   - lcr</p>
    <p>   - carrierroute</p>
    <p>   - drouting</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 12.06.17 21:21, Jean Cérien wrote:<br>
    </div>
    <blockquote
cite="mid:CAL_ph0JhzmxagDvUiWv2gf1+VEviHQXqr2XjvGUwGPepbtL_+A@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div>Hello</div>
        <div><br>
        </div>
        <div>I am looking at the following configuration: </div>
        <div><br>
        </div>
        <div>1/ voip providers, with different external sip servers,
          will send calls to kamailio, that will dispatch them to
          asterisk servers, with load balancing & failover. The IP
          of the asterisk servers are known and fixed.</div>
        <div><br>
        </div>
        <div>2/ the asterisk servers will also place calls, going
          through kamailio, that will dispatch them to the voip provider
          sip servers, based on R-URI / Prefix.</div>
        <div><br>
        </div>
        <div>I've achieved #1 with dispatcher module, I've seen
          carrierroute module that can achieve #2, but I dont really
          grasp how to put the two together.</div>
        <div><br>
        </div>
        <div>I have the feeling that #1 can also be done with
          carrierroute, and that I only need to check if the 'from'
          domain is one my asterisk, and chose a different routing
          table, but I dont see how to do that</div>
        <div><br>
        </div>
        <div>is that a valid approch ? where should I look to do that ?</div>
        <div><br>
        </div>
        <div>thanks</div>
        <div><br>
        </div>
        <div>J.</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>