<div dir="ltr"><br><div>Thanks</div><div><br></div><div>I have the registration working, but when my kamailio receives an INVITE, I am a bit lost regarding what to do. in my route(AUTH), I am trying to check uac_reg_status, but no success.</div><div><br></div><div>my db: </div><div><div><div>kamailio:/etc/kamailio# kamcmd uac.reg_dump</div><div>{</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>l_uuid: 123</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>l_username: passgwada</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>l_domain: 192.168.2.228</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>r_username: passgwada</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>r_domain: 192.168.2.230</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>realm: xivo</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>auth_username: passgwada</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>auth_password: 1234</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>auth_proxy: sip:192.168.2.230</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>expires: 60</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>flags: 2</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>diff_expires: -1497475389</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>timer_expires: 0</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>reg_init: 1497475386</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>reg_delay: 5</div><div>}</div></div></div><div><br></div><div>and the invite arriving</div><div><div><font face="monospace, monospace">INVITE <a href="mailto:sip%3A1100@192.168.2.228">sip:1100@192.168.2.228</a> SIP/2.0</font></div><div><font face="monospace, monospace">Via: SIP/2.0/UDP 192.168.2.230:5060;branch=z9hG4bK17eeae32;rport</font></div><div><font face="monospace, monospace">Max-Forwards: 70</font></div><div><font face="monospace, monospace">From: "0512345678" <sip:</font><span style="font-family:monospace,monospace">0512345678</span><font face="monospace, monospace">@<a href="http://192.168.2.230">192.168.2.230</a>>;tag=as0541bcd3</font></div><div><font face="monospace, monospace">To: <<a href="mailto:sip%3A1100@192.168.2.228">sip:1100@192.168.2.228</a>></font></div><div><font face="monospace, monospace">Contact: <sip:</font><span style="font-family:monospace,monospace">0512345678</span><font face="monospace, monospace">@<a href="http://192.168.2.230:5060">192.168.2.230:5060</a>></font></div><div><font face="monospace, monospace">Call-ID: <a href="http://0bf6e5ac4fe10a0e3478a6dc1c70d40d@192.168.2.230:5060">0bf6e5ac4fe10a0e3478a6dc1c70d40d@192.168.2.230:5060</a></font></div><div><font face="monospace, monospace">CSeq: 102 INVITE</font></div><div><font face="monospace, monospace">User-Agent: XiVO PBX</font></div><div><font face="monospace, monospace">Date: Wed, 14 Jun 2017 21:09:29 GMT</font></div><div><font face="monospace, monospace">Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE</font></div><div><font face="monospace, monospace">Supported: replaces, timer</font></div><div><font face="monospace, monospace">Content-Type: application/sdp</font></div><div><font face="monospace, monospace">Content-Length: 300</font></div></div><div>......</div><div><br></div><div><br></div><div>Any help will be greatly appreciated</div><div><br></div><div>J.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 14, 2017 at 12:45 PM, 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>Sipsak or other tool pointing via Contact header to Kamailio is
still an option, but you can use directly uac module -- you have
to set the details for remote registrations inside uac_reg
database table and configure uac module, some details also at:</p>
<p> -
<a class="m_5125799538142982636moz-txt-link-freetext" href="https://kamailio.org/docs/modules/5.0.x/modules/uac.html#idp38102932" target="_blank">https://kamailio.org/docs/<wbr>modules/5.0.x/modules/uac.<wbr>html#idp38102932</a></p>
<p>Cheers,<br>
Daniel<br>
</p><div><div class="h5">
<br>
<div class="m_5125799538142982636moz-cite-prefix">On 14.06.17 18:17, Jean Cérien wrote:<br>
</div>
<blockquote type="cite">
<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" target="_blank">https://lists.<wbr>kamailio.org/pipermail/sr-<wbr>users/2004-November/041304.<wbr>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="m_5125799538142982636h5"> <br>
<div class="m_5125799538142982636m_-6947872845521214411moz-cite-prefix">On
12.06.17 21:21, Jean Cérien wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="m_5125799538142982636h5">
<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_5125799538142982636m_-6947872845521214411mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_5125799538142982636m_-6947872845521214411moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_5125799538142982636m_-6947872845521214411moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><span class="m_5125799538142982636HOEnZb"><font color="#888888">
</font></span></pre><span class="m_5125799538142982636HOEnZb"><font color="#888888">
</font></span></blockquote><span class="m_5125799538142982636HOEnZb"><font color="#888888">
<pre class="m_5125799538142982636m_-6947872845521214411moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_5125799538142982636m_-6947872845521214411moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_5125799538142982636m_-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_5125799538142982636m_-6947872845521214411moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - <a class="m_5125799538142982636m_-6947872845521214411moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</font></span></div>
______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a>
</blockquote></div>
</div>
</blockquote>
<pre class="m_5125799538142982636moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_5125799538142982636moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_5125799538142982636moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="m_5125799538142982636moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - <a class="m_5125799538142982636moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre></div></div></div></blockquote></div><br></div>