<div dir="ltr"><br><div>Thanks, I went for the permission + dispatcher, and so far it looks good.</div><div><br></div><div>One last thing.... I need the kamailio server to explicitly register to a provider. Googling the archive, I could only find an old reference to use sipsak. Does that mean that sipsak (or any other sip crafting tool like sipsak) should send a register request to Kamailio, which in turn will forward it to the voip provider ?</div><div><br></div><div>Here is the message: <a href="https://lists.kamailio.org/pipermail/sr-users/2004-November/041304.html">https://lists.kamailio.org/pipermail/sr-users/2004-November/041304.html</a></div><div><br></div><div>Rgds</div><div>J</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 13, 2017 at 3:01 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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><div><div class="h5">
    <br>
    <div class="m_-6947872845521214411moz-cite-prefix">On 12.06.17 21:21, Jean Cérien wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <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="m_-6947872845521214411mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_-6947872845521214411moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_-6947872845521214411moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre class="m_-6947872845521214411moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_-6947872845521214411moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-6947872845521214411moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="m_-6947872845521214411moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - <a class="m_-6947872845521214411moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>